HTML Introduction
What is HTML?
-
Hypertext Markup Language is the standard markup language for documents designed to be displayed in a web browser
-
HTML describes the structure of a Web page
-
HTML consists of a series of elements
-
HTML elements tell the browser how to display the content
-
You can build HTML website with the help of tags, attributes, css and so on.....
-
Browsers do not display the HTML tags, attributes, css....but use them to render the content of the page
A simple structure of HTML document:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
<!DOCTYPE html> : DOCTYPE that means this is document type. <!DOCTYPE html> that means this is HTML5 document.
<html> : This tag is the root element of an HTML page.
<head> : This HTML tag Contains meta information of the document.
<title> : This HTML tag defines a title of the website.
<body>: This HTML tag define a visible part of the websites.
<h1> : This HTML tag define a headline level ( Total level is six ).
<p> : This HTML tag define a paragraph of the website.
Look at the image of Element and Tag difference:
Don't worry, We will learning about more tags in upcoming lessons.