Inserting Heading Tags in HTML5

Inserting Heading Tags in HTML5

We can use heading Tags to help clarify information on a page, organize text, and create visual structure. We can choose from six heading levels for a document, ranging from heading level 1 <h1>. The largest to heading level 6 (<h6>), The smallest. Browser display headings as bold text on a web page with space above and below similar to paragraphs. On a basic web page with text content, you typically use a <h1> tag as the main title. The <h2> tag for subtitles and so on. We can customize the size, font, color, alignment, and other attributes of your headings using CSS style.

Insert a Heading Tags

Step 1: Type <h?> in the font of the text you want to turn into a heading. with the heading level number, you want to assign.

Step 2: Type </h?> at the end of the heading text replacing it with the corresponding heading level you assign.

Step 3: Type an additional heading tag for any other text that you want to emphasize on the page.

The heading appears in bold text in the web browser

Result Output

<!DOCTYPE html>
        <Title>Coding thai</Title>
        Type of Heading
        <h1>This is</h1>
        <h2>This is</h2>
        <h3>This is</h3>
        <h4>This is</h4>
        <h5>This is</h5>
        <h6>This is</h6>

Follow us on Social Media For More


Leave a Comment