Welcome Guest! (App Version 3.1)
IntroductionHTML Tutorial What is HTML? My First Program in HTML Doctype Types of Elements Block Elements Inline Elements
Box ModelWhat is Box Model Content in Box Model Padding in Box Model Border in Box Model Margin in Box Model
HTML TagsDiv Tags H1 to H6 Tags Paragraphs Tags Span Tags Bold Tags Italic Tags
HTML UtilitiesAdding Images Adding Hyperlinks Adding Comments Types of Lists Tables Iframes Breaking Lines Horizontal Line
FormsForms in HTML Text-Box Radio Checkbox Select and Option Text Area Button Submit
HTML 5What is new in HTML5 Syntax Changes New Elements & Properties Semantic Tags New Elements New Input Types Graphics Support Canvas SVG Media Support Audio Video Client Side Storage Local Storage Session Storage Indexed DB Web SQL [dep] Cookies API Support Web Worker Web Sockets Service Worker App Cache [dep] SSE Drag & Drop Geolocation
HTML QuizHTML Quiz 1
Header tags are simple Headings to the content. Whenever you write on a topic, you provide a subject title and then you write some paragraphs about the topic. Header tags are there to highlight the topic about which you are going to write.
Header tags are often written in conjunction with paragraphs, as every heading will have something after it to explain it. Header tags come in 6 varieties (H1 to H6). Each of these tags has its own assigned default font-size and other properties.
It is important to know that Header tags not only provide the heading highlighting but also provide good level of SEO. Your webpage must always have an H1 tag, after this if required, provide sub-heading with H2 and so on.
This is a good habit to provide highlighting to important topics and along with it provide good SEO to your page.
<body> <h1>This is Header 1.</h1> <h2>This is Header 2.</h2> <h3>This is Header 3.</h3> <h4>This is Header 4.</h4> <h5>This is Header 5.</h5> <h6>This is Header 6.</h6> </body>