Some of Basic HTML TAGS for beginers by santhosh kumar Athaluri

Jul 8, 2023 - 22:45

certainly! HTML tags are an essential part of HTML markup. They define the structure and content of a web page. Let's explore some commonly used HTML tags:

  1. Heading Tags: HTML provides six levels of headings, from <h1> to <h6>. The <h1> tag represents the highest level heading, typically used for the main title of a page, while <h2> to <h6> represent lower-level headings.

    <h1>This is a Heading Level 1</h1> <h2>This is a Heading Level 2</h2> <!-- ...and so on up to h6 -->
  2. Paragraph Tags: The <p> tag is used to define paragraphs of text. It represents a block of text.

    HTML <p>This is a paragraph of text.</p>
  3. Anchor Tags (Links): The <a> (anchor) tag is used to create links. The href attribute specifies the URL the link points to.

    <a href="">Visit Example</a>
  4. Image Tags: The <img> tag is used to display images on a web page. The src attribute specifies the path to the image file, and the alt attribute provides alternative text for the image.

    <img src="image.jpg" alt="Description of the image">
  5. List Tags: HTML provides three types of list tags:

    • <ul> (Unordered List): Represents an unordered list, typically rendered with bullet points.
    • <ol> (Ordered List): Represents an ordered list, typically rendered with numbers or letters.
    • <li> (List Item): Represents an individual item in a list.
    <ul> <li>Item 1</li> <li>Item 2</li> </ul> <ol> <li>Item 1</li> <li>Item 2</li> </ol>
  6. Division Tags: The <div> tag is a versatile container that allows you to group and style content. It doesn't have any semantic meaning on its own.

    <div> <h3>Section Heading</h3> <p>Some content here.</p> </div>
  7. Span Tags: The <span> tag is similar to the <div> tag but is used to apply styles or manipulate individual parts of text within a larger block of content.

    <p>This is a <span style="color: red;">red</span> word.</p>
  8. Table Tags: Tables are created using the <table> tag, with additional tags like <tr> (table row), <th> (table header), and <td> (table data) to structure the table.

    <table> <tr> <th>Header 1</th> <th>Header 2</th> </tr> <tr> <td>Data 1</td> <td>Data 2</td> </tr> </table>

These are just a few examples of HTML tags. HTML offers a wide range of tags to represent various types of content and structure on a web page. As you continue learning, you'll discover more tags and their specific uses. Remember to always use tags appropriately and follow HTML syntax guidelines.

What's Your Reaction?