HTML | What is HTML
HTML is a web language that stands for HyperText Markup Language. It was created by Berners-Lee in late 1991. HTML is the standard markup language for creating web pages that are displayed by a web browser. Html page made up of HTML tags and tag contains. Browsers do not display the HTML tags but use them to render the content of the page.
HTML Tags
HTML tags are the name of the HTML element which is surrounded by angle brackets. It normally comes in pairs like <p> and </p>. The first tag is known as the start tag and the second which starts with a forward slash is known as the end tag.
Syntax
<tagname>content goes here...</tagname>
HTML Document Structure
A Simple HTML Document has the following structure:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>Page Heading</h1>
<p>Simple paragraph.</p>
</body>
</html>
The tag used in the above example:
<!DOCTYPE html> | Define this document is to be HTML5 |
<html> | Root element of an HTML page |
<head> | Contains meta information about the page |
<title> | Specifies title of the pages |
<body> | Contain the page contents display on the browser |
<h1> | Defines large heading |
<p> | Defines paragraph |
The <!DOCTYPE> Declaration
The <!DOCTYPE> represents the document type. Web browsers use this to identify the version of HTML. It is the first line on the HTML page and must appear once.
<!DOCTYPE html>
HTML Versions
There have been many versions of HTML:
Version |
Year |
---|---|
HTML | 1991 |
HTML 2.0 | 1995 |
HTML 3.2 | 1997 |
HTML 4.01 | 1999 |
XHTML | 2000 |
HTML5 | 2014 |