H1, H2, H3, H4, H5, H6 HTML - W3schools.blog
HTML <h1> to <h6> Tags
An HTML heading is a tag that is used to specify a title or a subtitle to be displayed on the webpage. They also help in indexing the structure of a web page. The text within the heading tags is displayed in bold format when executed. The HTML headings can be defined with the <h1> to <h6> tags, where the size of the text varies as per the number of headings. The highest level is h1. It can be used to represent the main heading. While h6 being the least level is used to define the least important heading. Heading elements are expected to be used for specifying the headings only, and not just to format any text to bold or big. Including Chrome, Internet Explorer, Opera, Safari, and Firefox, all the popular browsers support the HTML heading tags from h1 to h6.
Syntax:
<h1>Heading 1</h1> <h2>Heading 2</h2> <h3>Heading 3</h3> <h4>Heading 4</h4> <h5>Heading 5</h5> <h6>Heading 6</h6>Example:
<!DOCTYPE html> <html> <head> <title>Example</title> </head> <body> <h1>Topic 1</h1> <h2>Topic 2</h2> <h3>Topic 3</h3> <h4>Topic 4</h4> <h5>Topic 5</h4> <h6>Topic 6</h6> </body> </html>Explanation:
Here, we are checking the behavior of all the six heading tags of HTML. All the six heading tags of HTML can also be used with the nested elements.
Tag Specific Attributes:
Attribute | Value | Uses | |
align | left center right justify | Used to define the alignment of a heading. | Not supported in HTML 5. |
Global Attributes:
The HTML GLobal attributes are supported by the HTML <h1> to <h6> tags.
Event Attributes:
The HTML Event attributes are supported by the HTML <h1> to <h6> tags.
Supporting Browsers:
Chrome, IE, Firefox, Opera, and Safari.
HTML Tutorial- HTML introduction overview
- Text Editors in HTML
- Building blocks of HTML
- HTML Tags
- Attributes in HTML
- Formatting tags in HTML
- HTML Elements
- Paragraph tag in HTML
- Phrase tags in HTML
- Anchor tag in HTML
- Image tag in HTML
- Table tags in HTML
- List tags in HTML
- Ordered List in HTML
- Description List in HTML
- Form Tags in HTML
- HTML with CSS
- HTML Classes
- HTML ID Attribute
- HTML Javascript
- HTML Iframes
- HTML Comments
- HTML Head
- HTML File Path
- HTML Layouts
- HTML Layout Techniques
- HTML Responsive
- HTML Computer code
- HTML Entities
- HTML Symbols
- HTML Charset
- HTML URL Encode
- HTML Global Attributes
- HTML Event Attributes
- HTML Tags List
- DOCTYPE HTML
- Anchor HTML
- Abbreviation HTML
- Acronym HTML
- Address HTML
- Applet HTML
- Area HTML
- Article HTML
- Aside HTML
- Audio HTML
- Bold HTML
- Base HTML
- Basefont HTML
- BDI HTML
- BDO HTML
- BIG HTML
- Blockquote HTML
- Body HTML
- BR HTML
- Button HTML
- Canvas HTML
- Caption HTML
- Center HTML
- Cite HTML
- Code HTML
- Col HTML
- Colgroup HTML
- Data HTML
- Datalist HTML
- DD HTML
- Del HTML
- Details HTML
- DFN HTML
- Dialog HTML
- Dir HTML
- Div HTML
- DL HTML
- DT HTML
- EM HTML
- Embed HTML
- Fieldset HTML
- Figcaption HTML
- Figure HTML
- Font HTML
- Footer HTML
- Form HTML
- Frame HTML
- Frameset HTML
- h1, h2, h3, h4, h5, h6 HTML
- Head HTML
- Header HTML
- HR HTML
- Html tag in HTML
- i | Italic html
- iframe HTML
- img HTML
- Input HTML
- Ins HTML
- isindex HTML
- kbd HTML
- Label HTML
- Legend HTML
- li HTML
- link HTML
- Main HTML
- Map HTML
- Mark HTML
- Marquee HTML
- Menu HTML
- Meta HTML
- Meter HTML
- Nav HTML
- Noframes HTML
- Noscript HTML
- OL HTML
- Optgroup HTML
- Option HTML
- Output HTML
- P | paragraph HTML
- Object HTML
- Param HTML
- Picture HTML
- Svg HTML
- Table HTML
- Tbody HTML
- Tfoot HTML
- thead HTML
- td HTML
- th HTML
- tr HTML
- title HTML
- time HTML
- template HTML
- textarea HTML
- track HTML
- tt HTML
- u | underline HTML
- ul HTML
- var HTML
- video HTML
- wbr HTML
- User Manual HTML5
- HTML5 Tags
- HTML5 New Elements
- HTML Google Maps
- HTML5 Semantics
- HTML5 Migration
- HTML Drag and Drop
- HTML5 Geolocation
- HTML Web Storage
- HTML5 Web Workers
- HTML5 Server-Sent Event
- HTML Color Names
Từ khóa » H1 Vs H4 Html
-
HTML H1 To H6 Tag - W3Schools
-
–
: The HTML Section Heading Elements - MDN - Mozilla
-
Header Tags: A Simple (But Complete) Guide To H1, H2 And H3 Tags
-
HTML:
Tag - TechOnTheNet
-
HTML: The H1 To H6 Tags - Khan Academy
-
HTML Heading Tags: The SEO Guide For H1 - H6 - SE Ranking
-
HTML - Heading Elements H1, H2, H3, H4, H5 And H6.
-
H1 Vs. H2 Heading Tags: Here's The Difference
-
What Are H1, H2, H3, H4, H5, And H6 Tags And How Do They Affect ...
-
XHTML >> Tags >> H1, H2, H3, H4, H5, H6 | DevGuru
-
Heading Tags, What Are They And How To Use? | By Thiago Vaz
-
Counting With HTML5. Should H1, H2, H3, H4, H5 And H6 Be ...
-
What Is The H1 Tag And Why It Is Important For SEO - Reliablesoft
-
H1 Vs H2 Vs H3: What Are Heading Tags And How To Use Them?