<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>Heading</h1> <p>paragraph.</p> </body> </html> |
<!DOCTYPE html>
declaration indicates that the document adheres to HTML5 standards.<html>
tag acts as the foundational element of an HTML document.<head>
tag.<title>
tag.<body>
tag serves as the container for all visible content on the page, including text, images, links, and more.<h1>
tag.<p>
tag.An HTML element consists of an opening tag, content, and a closing tag.
<tagname> Content goes here… </tagname> |
An HTML element encompasses everything from the opening tag to the closing tag.
<h1>Header Name</h1> |
<p>My first paragraph.</p> |
tart tag |
Element content |
End tag |
<h1> |
Heading Name |
</h1> |
<p> |
My first paragraph. |
</p> |
<br> |
none |
none |
Note: Some HTML elements, such as the <br> element, contain no content. These are known as empty elements and do not have a closing tag. |
The purpose of a web browser (such as Chrome, Edge, Firefox, and Safari) is to read HTML documents and render them accurately.
A browser does not show the HTML tags; instead, it uses them to decide how to present the content.
Here is a visualization of the structure of an HTML page:
Note: The content within the <body> section will be displayed in a browser. The content within the <title> element will appear in the browser’s title bar or on the page’s tab. |
Since the inception of the World Wide Web, numerous versions of HTML have been released:
HTML Version |
Release Year |
HTML 1.0 |
1993 |
HTML 2.0 |
1995 |
HTML 3.2 |
1997 |
HTML 4.01 |
1999 |
HTML 1.0 |
2000 |
HTML 1.1 |
2001 |
HTML 5 |
2014 |
HTML 5.1 |
2016 |
HTML 5.2 |
2017 |
HTML 5.3 |
2018 |