3) Structure of HTML Code
i) HTML documents are structured into two parts; one is the HEAD, and another is the BODY.ii) Both of these are contained within the HTML tags.
iii) The HEAD contains TITLE.
iv) The BODY contains all the content.
v) Elements allowed inside the HEAD, such as TITLE, are not allowed inside the BODY.
The Format is
<HTML>
<HEAD>
.............
.............
</HEAD>
<BODY>
.............
.............
</BODY>
</HTML>
To create a HTML document the essential tags that are required are
<HTML>.............</HTML>
<HEAD>.............</HEAD>
<BODY>.............</BODY>
4) HTML Tag <HTML>
The <HTML> tag encloses all other HTML tags. You can create an HTML document without using the <HTML> tags, and your browser can still read and display it. But it is good practice to start with <HTML> and stop with </HTML> tags.The format is
<HTML>
</HTML>
5) HEAD Tag <HEAD>
<HEAD> tag comes after the HTML tag. It contains TITLE tag which is used to provide a title to a page that displays at the top of the browsers.The Format is
<HEAD>
<TITLE>
Desired title write here
</TITLE>
</HEAD>
0 comments:
Post a Comment