What is HTML?HTML stands for Hyper Text Markup Language Hypertext refers to the way in which Web pages (HTML documents) are linked together. Thus, the link available on a webpage is called Hypertext. As its name suggests, HTML is a Markup Language which means you use HTML to simply "mark-up" a text document with tags that tell a Web browser how to structure it to display.
HTML describes the structure of Web pages using markup.
HTML elements are the building blocks of HTML pages.
HTML elements are represented by tags.
HTML tags label pieces of content such as "heading", "paragraph", "table", and so on.
Browsers do not display the HTML tags but use them to render the content of the page.
HTML TagsHTML is a markup language and makes use of various tags to format the content. These tags are enclosed within angle braces <Tag Name>. Except few tags, most of the tags have their corresponding closing tags.
<tagname>content goes here...</tagname>For example,has its closing tagandtag has its closing tagtag etc. Above example of HTML document uses the following tags
|<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>...</head> and document body which is represented by <body>...</body> tags.|
|<head>||This tag represents the document's header which can keep other HTML tags like <title>, <link> etc.|
|<title>||The <title> tag is used inside thetag to mention the document title.|
|<body>||This tag represents the document's body which keeps other HTML tags like <h1>, <div>, <p> etc.|
|<h1>||This tag represents the heading.|
|<p>||This tag represents a paragraph.|
HTML Document StructureA typical HTML document will have the following structure:
<html> <head> Document header related tags </head> <body> Document body related tags </body> </html>