What is the structure of HTML ?
The structure of HTML is just
like our body. Such as our head, body and foot. HEAD is the first tag of
HTML, where we keep styles, fonts, scripts etc. After that body
section, where we write all codes, which appear in the browser. But head don’t appear any codes in
the browser. It run in background. After that footer section.
For Example:
Code:
<!DOCTYPE html>
<html>
<head>
<html>
<head>
<!
--- we can write scripts here --->
<title>Page Title</title>
</head>
<body>
<! --- we can write all the codes here --->
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
<title>Page Title</title>
</head>
<body>
<! --- we can write all the codes here --->
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Diagram:
Comments
Post a Comment