1) <HTML></HTML>
- The HTML tag is the container that contains all other HTML elements.
- All other HTML elements are nested between the <html> and </html> tags.
- The HTML tag tells the browser that this is an HTML document.
- The html elements are the outermost element in HTML and XHTML documents.
- The html elements are also known as the root element.
2) <HEAD> </HEAD>
- The head tag comes next which contains all the header information of the web page or document like the title of the page and other miscellaneous information.
- These informations are enclosed within head tag which opens with <head> and ends with </head>.
- These tags <base> , <link> , <meta> , <script> , <style> and <title> can be added to the head section.
- The <title> tag is the only required element in the head section.
3) <BODY></BODY>
- The body tag contains the actual body of the page which will be visible to all the users.
- This opens with <body> and ends with </body>.
- The body tag is placed between the </head> and </html> tags.
- The body element contains all the contents of an HTML documents, such as text, hyperlink, images, tables, lists, etc.
a) Background: It is used to specify the source of an image to set as the documents background.
For example: <body background=”image path">
b) Bgcolor : It is used to specify the background color of page.
For example : <body bgcolor="color name” or bgcolor=”#hexa decimal number".
Default bgcolor is white.
c) Text: It is used to change the color of the text displayed in web page.
For example :<body text="color name" or text=”# hexa decimal number”.
Default color is black.
d) Link: it is used to specify the color to be used while displaying the hyperlink
For Example <body link="color name">
Default color is blue.
e) Vlink: It is used to specify color to be used when displaying hyperlinks that have
already been visited.
For example: <body vlink=”color name">
Default color is maroon.
f) Alink: it is used to specify the color to be used when displaying hyperlinks as they are selected.
4) <TITLE><TITLE>
- The HTML title tag is used for indicating the title of the HTML documents.
- The <title> tag is placed between the <head> and </head> tags.
- The title element defines a title in the browser toolbar.
- It provides a title for the page when it is added to favorites.
- It displays a title for the page in search-engine result.
5) <!-- -- >
- It is a comment tag.
- It is used to insert comment in the source code.
- A comment will be ignored by the browser.
- You can use comment to explain your code, which can help you when you edit the source code at a later date.
- You can also store program specific information inside comments.
- In this case they will not be visible for the user, but they are still available to Program.
0 Comments