HTML Program Structure

An HTML document Structure has two main area:

<html>
<head> 
<!-- Head Area -->
</head>
<body>
<!-- Body Area -->
</body>
</html>

Head : Head contain title,styles , script & meta data of a web document.
Body : The body contains display content on a web page.

Example

<html>
<head> 
<!-- Basic HTML Example -->
<title>AhirLabs  WebPage</title>
</head>
<body>
<!-- Simple Web Page in HTML -->
HTML Web Page Content
</body>
</html>

HTML 5

<!DOCTYPE html> Tag

Its Define The Web Document in HTML5

<meta charset=”UTF-8″> Tag 
character encoding tells the computer how to interpret raw zeroes and ones into real characters. It usually does this by pairing numbers with characters.The charset attribute specifies the character encoding for the HTML document.

<title> Tag

Its defines Title of the document

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Title of the document</title>
</head>
<body>
Display Content of the document
</body>
</html>

Head : Head contain title,styles , script & meta data of a web document.
Body : The body contains display content of the document or a web page.

(Visited 57 times, 1 visits today)
Share with Friends :
Written by:

Leave a Reply

Your email address will not be published. Required fields are marked *