What is HTML?
HTML | What is HTML
HTML is a web language stands for Hyper Text Markup Language. It was created by Berners-Lee in late 1991. HTML is the standard markup language for creating a web pages that is display by a web browser. Html page made up of HTML tags and tag's contains. Browsers do not display the HTML tags, but use them to render the content of the page.
HTML tags are name of HTML element which is surrounded by angle brackets. It normally comes in pairs like <p> and </p>. The first tag is known as start tag and the second which start with a forward slash is known as end tag.
<tagname>content goes here...</tagname>
HTML Document Structure
A Simple HTML Document have 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|
The <!DOCTYPE> Declaration
The <!DOCTYPE> represents the document type. Web browser use this to identify the version of HTML. It is the first line in the HTML page and must be appear once.
There have been many versions of HTML:
Important Interview Question