|
|
HTML Code TutorialTutor Ebook Download The Header TagYou can Test Code in : HTML editor
Use header tags to introduce web pages and paragraphs. The words The Header Tag at the top of this page are an example of its use. One advantage to using the Header tag is that some search engines rate them higher than regular text, when indexing your site. They come in six default sizes. (Largest to smallest) <h1></h1> through <h6></h6>
Header tags should be used in their respective order of default size. That means following an h1 tag with an h2 for proper page structure. Don't put an h1 and an h4 on the same page with nothing in between. Try to include keywords in your header tags.
Font family, size, alignment, fore and background color can all be set using Style Sheets.
h1{ font-family: Arial Black, serif ;font-size : 18pt; font-weight : normal;text-align :center}Background ColorYou can make a header tag a little more interesting by adding color. Adding Background ColorThe code: You can even add borders: Heading TextThe code: To make the header appear the same in all browser types,be sure to include the width setting. |
Contents Table of ContentsIntroduction Page Structure Basic HTML PageDoctype The Body Tag The Header Tag The Division Tag Horizontal Rule Anchor Tag Anchor Tag - Intradocument Anchor Tag - Image Using Borders The ID Attribute Meta Tags Text Controls Style SheetsWorking With Fonts The Paragraph Tag Paragraphs-Images Using Lists The Pre Tag Line Break Tag Tables Basics of TablesColspan Forms Form BasicsCheck Boxes Text Boxes Selection Boxes Frames Basic FramesTarget and Scrolling Search Engines Miscellaneous Buttons with CSSUsing Color Color Chart Using Images Using Templates Uploading HTML pages. HTML-CSS Quizzes |
|
You can Test Code in : HTML editor
Check out our Free Frames Template Kit or try our Free Frames Kit Demo |
|
|
CGI Online |