HTML Tags - Web4U

Explore HTML Tags

Table of Contents

Paragraph - <p>

Defines a paragraph of text.

<p>This is a paragraph of text.</p>
        
Paragraph Example

More info: W3C <p> tag

Link - <a>

Creates a hyperlink to another page or location.

<a href="https://www.example.com">Visit Example</a>
        
Link Example

More info: W3C <a> tag

Image - <img>

Embeds an image in the page. Always include an alt attribute for accessibility.

<img src="images/example.jpg" alt="Example Image">
        
Image Example

More info: W3C <img> tag

Table - <table>

Displays tabular data.

<table border="1">
    <tr>
        <th>Name</th>
        <th>Age</th>
    </tr>
    <tr>
        <td>Alice</td>
        <td>25</td>
    </tr>
</table>
        
Table Example

More info: W3C <table> tag

Form - <form>

Collects user input.

<form action="/submit" method="post">
    <label for="name">Name:</label>
    <input type="text" id="name" name="name">
    <input type="submit" value="Submit">
</form>
        
Form Example

More info: W3C <form> tag