Advertisement

HTML Introduction

Previous Lesson 2 of 114 Next
Advertisement
Lesson Overview: Understand how HTML elements describe document structure to web browsers.

What Does HTML Stand For?

HTML stands for HyperText Markup Language. It describes the semantic structure of a web page through nested elements and attributes.

Tag Meaning
<!DOCTYPE html> Declares HTML5 document mode
<html> Root wrapper of the document
<head> Metadata, title, styles & scripts
<body> Visible page content rendered to users
<h1> Primary heading
<p> Paragraph of text

Anatomy of an HTML Element

An HTML element typically consists of a start tag, inner content, and an end tag: <tagname>Content</tagname>. Void elements like <br>, <hr>, and <img> do not wrap content and have no closing tag.

Document Anatomy Example (Editable — type & Run)

Advertisement

Test Yourself With Exercises

Add the HTML5 document declaration at the top of a page:

\n<html>\n<body><p>Hello</p></body>\n</html>
Pro Tip: HTML tags are not case-sensitive, though lowercase tags are strongly recommended in modern HTML5.
Advertisement