HTML stands for Hyper Text Markup Language, its describes the structure of a Web page,and consists of a series of elements. HTML elements tell the browser how to display the content. 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.
Look at the a simple HTML CODE:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is Aware Hacker</h1>
<p>Learn basic HTML</p>
</body>
</html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is Aware Hacker</h1>
<p>Learn basic HTML</p>
</body>
</html>
Explanation:
<!DOCTYPE html>
It's define the document to be HTML5.<html>
It's stands for the root element of an HTML page.<head>
It's contain information about the document.<title>
Specifies a title for the document.<body>
Contains the visible page content.<h1>
Define a large heading.<p>
Defines a paragraph.- HTML tags normally come in pairs like
<h1>
and</h1>
Here <h1> is the start tag and </h1> is the end tag. - The end tag is written as like the start tag, but with a forward slash ( / ) inserted before the tag name.
The <!DOCTYPE> Declaration
The <!DOCTYPE> declaration represents the document type, and it helps browsers to display the web pages correctly. And it is not case sensitive.
HTML Editors Click Here
The <!DOCTYPE> declaration represents the document type, and it helps browsers to display the web pages correctly. And it is not case sensitive.
HTML Editors Click Here
0 Comments