HTML Main Tags
HTML : It is the main tag or parent tag HTML element. The entire web page will be enclosed within this tag.
It has mainly two tags :
- Head
- Body
Head : The content in between the head tag does not appear on the web page, but the effect of content will appear in web page.
Sub tags in head tag :
- Tittle : Display the content on the browser tittle bar.
- Script : Implement the JS (java script),Jquary, AJAX and PHP.
- Style : It is used to implement the internal css.
- Frame sets : Arrange the HTML pages in column wise and row wise.
- Meta : Pass the information to SEO (search engine optimization).
- Base : Specify the base URL to webpage.
- Link : Include the external css files.
NOTE : Tittle , script, style, frame sets are container tags and meta, base, link are empty tags.
Body Tag : It is called document of the webpage. The information in between the body tag will appear on web page.
Attributes of body tag :
- text : Applying the color to text in entire body tag , use color name or color code.
- bgcolor : It written background color to body tag.
- background : It written body background as a image.
- leftmargin : Left margin to body tag.
- topmargin : It written the top margin to body tag .
- link : Applying color to non visited link.
- vlink : Applying color to visited links.
- alink : Applying color to active link.
syntax : <body align=”center” bgcolor=”red”></body>
No comments:
Post a Comment