All Html Codes List

6 min read Jul 03, 2024
All Html Codes List

All HTML Codes List

This article provides a comprehensive list of all HTML codes, including their functions and usage examples. HTML (HyperText Markup Language) is the foundation of all web pages. It defines the structure and content of a webpage, and it is interpreted by web browsers to display the webpage to users.

Basic HTML Tags

1. <html>: This tag defines the root of the HTML document. 2. <head>: Contains metadata about the HTML document, such as the title, style information, and links to external resources. 3. <title>: Specifies the title of the HTML document, which is displayed in the browser tab or window title bar. 4. <body>: Contains the visible content of the HTML document, including text, images, and other elements. 5. <h1> to <h6>: Defines headings of different levels, from the most important (h1) to the least important (h6). 6. <p>: Defines a paragraph of text. 7. <br>: Inserts a line break. 8. <hr>: Inserts a horizontal rule. 9. <b>: Defines bold text. 10. <strong>: Defines text that is important. 11. <i>: Defines italic text. 12. <em>: Defines emphasized text. 13. <a>: Defines a hyperlink. 14. <img>: Inserts an image. 15. <ul>: Defines an unordered list. 16. <ol>: Defines an ordered list. 17. <li>: Defines a list item. 18. <table>: Defines a table. 19. <tr>: Defines a table row. 20. <td>: Defines a table cell. 21. <th>: Defines a table header cell.

Advanced HTML Tags

1. <div>: Defines a division or a section of the HTML document. 2. <span>: Defines an inline element, used to group elements for styling or scripting purposes. 3. <form>: Defines a form for collecting user input. 4. <input>: Creates an input field, such as a text field, a checkbox, or a radio button. 5. <button>: Creates a button. 6. <select>: Creates a drop-down list. 7. <option>: Defines an option in a drop-down list. 8. <textarea>: Creates a multi-line text input field. 9. <iframe>: Inserts an inline frame, allowing you to embed content from other sources within your webpage. 10. <script>: Inserts a script (usually JavaScript). 11. <style>: Defines styles for the HTML document.

Attribute Examples

Most HTML tags can have attributes. Attributes provide additional information about the tag. Here are some common attributes:

1. href: Used with the <a> tag to define the URL of the hyperlink. 2. src: Used with the <img> tag to specify the source of the image. 3. alt: Used with the <img> tag to provide alternative text for the image if it cannot be displayed. 4. style: Used to define inline styles for an element. 5. id: Used to give a unique identifier to an element. 6. class: Used to group elements together for styling or scripting purposes.

Example




  HTML Codes List



  

HTML Codes List

This is an example of a paragraph.

  • Item 1
  • Item 2
Image description

This is just a small sample of the vast array of HTML codes available. The complete list can be found in the official HTML documentation. It is important to stay updated with the latest HTML standards and best practices to ensure your web pages are accessible, efficient, and perform well across different browsers and devices.

Related Post


Latest Posts


Featured Posts