HTML is the standard markup language that is used to create or describe the structure of web pages.
HTML is a markup language which uses several tags to describe the content of web page. HTML tags are element names enclosed within angle brackets.
The start tag is also known as opening tag, and the end tag as closing tag.
HTML code is written inside a text file having an extension of .html. As it is a text file so you will be able to create and edit it inside any text editor like Notepad, Notepad++ and Sublime Text etc.
<!DOCTYPE html>
<html>
<head>
<title>Document Title</title>
</head>
<body>
<h1>My first heading</h1>
<p>This is my first paragraph.</p>
</body>
</html>
A web browser (Chrome, Safari, Firefox, Internet Explorer, Edge) is a software that is used to read and understand HTML documents and then display them. Web browsers do not display the HTML tags on screen, but they use them to understand and then display the content of web document.
HTML page structure is the basic hierarchy of HTML elements that helps the browser in understanding the web page. All HTML web pages follows the same structure. Following is the visual representation of an HTML document structure:
<html>
<head>
<title>Document Title</title>
</head>
<body>
<h1>My first heading</h1>
<p>This is my first paragraph.</p>
<p>This is my second paragraph.</p>
</body>
</html>
The <!DOCTYPE> declaration defines the type or version of HTML used in the document. It helps the browsers to understand and display the web pages accurately. It is written only once at the top of the document before any other HTML tag. It is not case sensitive. In HTML5 the <!DOCTYPE> declaration is written as follow:
<!DOCTYPE html>
HTML is evolved since the early days of the World Wide Web. Hence it has multiple versions which are as follow:
Version | Year |
---|---|
HTML | 1991 |
HTML 2.0 | 1995 |
HTML 3.2 | 1997 |
HTML 4.0 | 1997 |
HTML 4.0 (reissued with minor edits without incrementing the version number) | 1998 |
HTML 4.01 | 1999 |
XHTML | 2000 |
HTML5 | 2014 |
HTML 5.1 | 2016 |
HTML 5.2 | 2017 |