HTML

HTML is the standard markup language for documents designed to be displayed in a web browser.

However, HTML was originally developed in 1993 with the intent of defining the structure of documents like headings, paragraphs, lists, and so forth to facilitate the sharing of scientific information between researchers.

Originally, HTML was developed with the intent of defining the structure of documents like headings, paragraphs, lists, and so forth to facilitate the sharing of scientific information between researchers.

Basic HTML Document

In its simplest form, following is an example of an HTML document:
<!DOCTYPE html>
  <html>
  
<head> <title>Example of a document title</title> <head>
<body> <h1>This is a heading</h1> <p>Document paragraph or sentence goes hereā€¦</p> <body>
</html>

HTML Tags

As told earlier, HTML is a markup language and makes use of various tags to format the content. These tags are enclosed within angle braces <tag>. Except few tags, most of the tags have their corresponding closing tags. For example, <html> has its closing tag </html> and <body> tag has its closing tag </body> tag etc.
Above example of HTML document uses the following tags: To learn HTML, you will need to study various tags and understand how they behave, while formatting a textual document. Learning HTML is simple as users have to learn the usage of different tags in order to format the text or images to make a beautiful webpage.

W3C recommends to use lowercase tags starting from in HTML document.

HTML Document Structure

A typical HTML document will have the following structure:
<html>
  
<head> Document header related tags </head>
<body> Document body related tags </body>
</html>

<!DOCTYPE> declaration

The <!DOCTYPE> declaration tag is used by the web browser to understand the version of the HTML used in the document. The current version of HTML is the fifth version and it makes use of the following declaration:
<!DOCTYPE>
There are many other declaration types which can be used in HTML document depending on what version of HTML is being used.