HTML (HyperText Markup Language) is the standard language used to create webpages.
It
structures the content and layout of a page using various elements (tags). Below are some
fundamental aspects of HTML:
1. <!DOCTYPE html>: Declares the document type and HTML version.
2. <html>: Root element of an HTML document.
3. <head>: Contains meta-information about the HTML document.
4. <title>: Sets the title of the HTML document (displayed in the browser tab).
5. <body>: Contains the content of the HTML document like text, images, and other media.
6. <h1> to <h6>: Header tags, where <h1> is the highest and <h6> the lowest level heading.
7. <p>: Paragraph tag, used for blocks of text.
8. <a href="url">: Anchor tag used to create hyperlinks.
9. <img src="url" alt="text">: Embeds an image in the document.
10. <br>: Inserts a single line break.
11. <hr>: Inserts a horizontal rule (line).
12. <ul>, <ol>, <li>: Unordered list, ordered list, and list item respectively.
13. <div>: Generic container for content, useful for layout/design.
14. <span>: Inline container used to style small parts of text.
15. <form>: Used to collect user input.
16. <input>: Input field within a form.
17. <button>: Button element for clickable actions.
18. <table>: Defines a table.
19. <tr>, <td>, <th>: Table row, table data, and table header.
20. <link>: Links external resources like CSS files.
21. <meta>: Provides metadata like charset, author, description.
22. <style>: Internal CSS styles can be written here.
23. <script>: Embeds JavaScript in the HTML document.
24. <iframe>: Embeds another HTML page within the current one.
25. <article>, <section>, <nav>, <header>, <footer>, <aside>: Semantic HTML5 tags.
HTML is not case-sensitive but lowercase is recommended. Modern HTML (HTML5) supports
multimedia, graphics (with <canvas> and <svg>), and APIs.
This is the foundation of web development and is often combined with CSS and JavaScript.