Curriculum
Course: HTML Basic
Login

Curriculum

HTML Basic

HTML Introduction

0/1

HTML Editors

0/1

HTML Elements

0/1

HTML Attributes

0/1

HTML Headings

0/1

HTML Paragraphs

0/1

HTML Styles

0/1

HTML Formatting

0/1

HTML Quotation

0/1

HTML Comments

0/1

HTML Colors

0/1

HTML Favicon

0/1

HTML Page Title

0/1

HTML Block and Inline

0/1

HTML Iframes

0/1

HTML Java Script

0/1

HTML File Paths

0/1

HTML - The Head Element

0/1

HTML Style Guide

0/1

HTML Entities

0/1

HTML Symbols

0/1
Text lesson

HTML Editors

Web pages can be created and edited using professional HTML editors.

However, for learning HTML, we recommend using a simple text editor like Notepad (PC) or TextEdit (Mac).

We believe that using a basic text editor is an effective way to learn HTML.

Follow the steps below to create your first web page with Notepad or TextEdit.

Step 1: Open Notepad (windows)

For Windows 8 or newer versions:

Open the Start Screen (the window symbol at the bottom left on your screen). Type Notepad.

For Windows 7 or older versions:

Open Start > Programs > Accessories > Notepad

Step 1: Open TextEdit (Mac)

Open Finder > Applications > TextEdit

Also change some preferences to get the application to save files correctly. In Preferences > Format >choose “Plain Text”

Within the “Open and Save” section, enable the option “Display HTML files as HTML code instead of formatted text.”

Finally, initiate a new document to start coding.

Step 2: Time to Write Some HTML

Enter or copy the following HTML code into Notepad:

<!DOCTYPE html>
<html>
<body>

<h1>My First Heading</h1>

<p>My first paragraph.</p>

</body>
</html>

IMG_3775

Step 3: Save the HTML Page

Save the file on your computer. Select File > Save as in the Notepad menu.

Title the file as “index.htm” and choose UTF-8 for the encoding, as it’s the recommended format for HTML documents.

IMG_3776

Tip: You can choose either .htm or .html as the file extension. There is no distinction; it’s your preference.

Step 4: View the HTML Page in Your Browser.

Open the saved HTML file in your favorite browser (double click on the file, or right-click – and choose “Open with”).

IMG_3777