HTML Tags with Examples

Tanumoy Ghosh
By -
0

 HTML Tags with Examples



1. <!DOCTYPE html>: Declares the HTML version.

2. <html>: Wraps the entire HTML document.

3. <head>: Contains metadata like title, character set, styles, and scripts.

4. <title>: Sets the document title.

5. <body>: Contains the main content of the HTML document.

6. <h1> to <h6>: Define headings, where <h1> is the largest and <h6> is the smallest.

7. <p>: Represents paragraphs of text.

8. <a>: Creates hyperlinks, linking to another document or resource.

9. <img>: Embeds images.

10. <ul> and <ol>: Define unordered and ordered lists.

11. <li>: Represents list items within <ul> or <ol>.

12. <div>: Groups content for styling or layout purposes.

13. <span>: Applies styles to inline elements.

14. <br>: Inserts a line break within text.

15. <hr>: Represents a horizontal rule or line.

16. <strong> and <em>: Emphasise text with strong and emphasised importance, respectively.

17. <input>: Creates input fields for forms.

18. <form>: Wraps form elements for user input.

19. <table>, <tr>, <td>, <th>: Constructs tables, rows, and cells for tabular data.

20. <iframe>: Embeds external content, like a webpage or video, within the current document.

Post a Comment

0Comments

Post a Comment (0)