Doctype: Defines the document type and version of HTML. Example: <!DOCTYPE html>.
HTML Element: The root element (<html>) that contains the entire document.
Head Section: Includes metadata, title, and links to stylesheets or scripts.
Body Section: Contains the content to be displayed on the webpage.
2. Common HTML Tags
Headings: <h1> to <h6> for different levels of headings.
Paragraph: <p> for paragraphs.
Links: <a> for hyperlinks.
Images: <img> for embedding images.
Lists: <ul> for unordered lists, <ol> for ordered lists, and <li> for list items.
Tables: <table>, <tr>, <td>, <th> for creating tables.
Forms: <form>, <input>, <button>, <select>, etc., for creating forms.
3. Attributes
Class: Specifies one or more class names for an element (class="classname").
ID: Defines a unique ID for an element (id="uniqueid").
Src: Specifies the source of an image (src="image.jpg").
Href: Specifies the URL of a link (href="https://example.com").
Alt: Provides alternative text for images (alt="description").
4. Meta Tags
Meta Tag: Provides metadata about the HTML document, which is used by browsers and search engines. Meta tags are placed inside the <head> section.
Viewport: Controls the layout on mobile browsers.
Description: Provides a summary of the page content for search engines. This is useful for search engine optimization.
Keywords: Lists keywords relevant to the page for search engines. This is useful for search engine optimization.
Author: Specifies the author of the document.
5. Charset and Encoding
Charset: Specifies the character encoding used in the document. UTF-8 is the most commonly used encoding, supporting a wide range of characters.
UTF-8: A universal character set that includes almost all characters from all languages. The charset is specified using the meta tag (<meta charset="UTF-8">).
6. Unicode Encoding
Unicode: A universal character encoding standard that assigns a unique number (code point) to every character in every language, symbol, or script. It aims to cover all the writing systems of the world.
UTF-8: A variable-length character encoding for Unicode, capable of encoding all possible characters (code points) in Unicode. It's backward compatible with ASCII and is widely used on the web.
UTF-16: Another Unicode encoding capable of encoding over a million characters. It uses one or two 16-bit code units to encode characters.
7. Comments
HTML Comments: Used to add notes or explanations in the code that are not displayed in the browser. They help in documenting the code (<!-- This is a comment -->).
8. Semantic HTML
Semantic Elements: Tags that convey meaning about the content inside them, improving accessibility and SEO.