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.<!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>
<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.<!DOCTYPE...>
- This tag defines the document type and HTML version.<html>
- This tag encloses the complete HTML document and mainly comprises of document header which is represented by <head> and document body which is represented by <body> tags.<head>
- This tag represents the document's header which can keep other HTML tags like <title>, <link> etc.<title>
- The tag is used inside the <head> tag to mention the document title.<body>
- This tag represents the document's body which keeps other HTML tags like <h1>, <div>, <p>, and so much more.<h1>
- The <h1> represents the heading, unlike the other headings <h2>, <h3>, <h4>, etc.<p>
- This tag represents a paragraph.W3C recommends to use lowercase tags starting from in HTML document.
<html>
<head> Document header related tags </head>
<body> Document body related tags </body>
</html>
<!DOCTYPE>
declaration<!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.