Today, we’ll create your first HTML page together! We’ll start with a bit of theory and then dive into practice.
To begin, you’ll need a simple text editor, such as Notepad. If you’re not sure where to find it, click on the “Start” button in the lower-left corner of your screen, select “All Programs” → “Accessories” → “Notepad.”
Creating Your First Page
<!DOCTYPE html>
<html>
<head>
<title>My First Page on overcod.net</title>
</head>
<body>
Hello, this is my first page on overcod.net
</body>
</html>
index.html. Then click “Save.”Now, open the folder and double-click the index.html file. Your first webpage should appear in the browser!
Understanding the HTML Code
<html> opens the HTML document.<head> sets the document’s header, which appears in the browser’s tab.<title> displays text in the browser tab.<body> contains visible text and page elements.Note: Most HTML tags are paired, like
<body>...</body>, where the first tag opens an element, and the second tag closes it. Some tags, like<br>, are self-closing and don’t need a closing tag.
Congratulations! You’ve created your first HTML page.
Knowledge Check: HTML Basics Test
63
HTML from Scratch: Adding Audio and Video to Your Website — For Beginners. Lesson #26
82
HTML from Scratch: The download Attribute in HTML5 (for downloading files). Lesson #25
149
HTML from Scratch: Commenting in HTML. Lesson #24
507
HTML from Scratch: The DOCTYPE Tag. Lesson #23
124
Leave a Reply