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 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.
<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|
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.
There have been many versions of HTML: