A Simple HTML Document
Example
Page Title
Example Explained
1.The declaration defines this document to be
2.HTML5The element is the root element of an HTML
3.pageThe element contains meta information about the
4.documentThe element specifies a title for the document
5.The element contains the visible page content
6.The element defines a large heading
Tip: The start tag is also called the opening tag, and the end tag the closing tag.
Example
My First Heading
My first paragraph.
Example Explained
1.The declaration defines this document to be
2.HTML5The element is the root element of an HTML
3.pageThe element contains meta information about the
4.documentThe
5.The
6.The
element defines a large heading
7.The
Element Defines a paragraph
---------------------------------------------------------------------------------
HTML Tags
HTML tags are element names surrounded by angle brackets:
HTML tags normally come in pairs like
and
The first tag in a pair is the start tag, the second tag is the end tagThe end tag is written like the start tag, but with a forward slash inserted before the tag nameTip: The start tag is also called the opening tag, and the end tag the closing tag.