HTML (Hypertext Markup Language) is the standard language for creating web pages
and web applications.
1. Basic Structure of HTML:
- Doctype: Defines the document type and version of HTML.
- HTML Element: The root element that wraps all content.
- Head: Contains metadata like title and links to stylesheets or scripts.
- Body: Contains the visible content of the webpage.
2. Common HTML Tags:
- <h1>, <h2>, <h3>...<h6>: Headings.
- <p>: Paragraph.
- <a>: Anchor (links).
- <img>: Image.
- <ul>, <ol>: Unordered/Ordered List.
- <div>, <span>: Group elements.
3. HTML Forms:
- <form>: Defines the form.
- <input>: Specifies input fields.
- <label>: Defines a label for an input element.
- <button>: Defines a button.
4. HTML Semantics:
- <header>, <footer>: Define page header and footer.
- <article>, <section>: Define distinct content areas.
- <main>: Represents the main content of a document.