Jul 1, 2024
<header>, <footer>, <main>, etc.) are used for segmenting a webpage for better SEO (Search Engine Optimization) and readability.<html>: Root element of an HTML document.<body>: Contains all the content of an HTML document, like text, images, tables, etc.<header>, <footer>, <main>: Define different sections of a web page.<p>: Defines a paragraph.<h1> to <h6>: Defines HTML headings.<ul>: Unordered list.<ol>: Ordered list.<li>: List item.<table>: Creates a table.<tr>: Defines a table row.<th>: Defines a table header.<td>: Defines a table cell.<a>: Defines a hyperlink. Attributes: href (URL of the link).<img>: Embeds an image. Attributes: src (image source URL), alt (alternative text).<form>: An HTML form for user input.<input>: Input field. Attributes: type (specifies the type of input), name (name of the input field), placeholder (short hint within the input field).<label>: Labels for the input elements.<textarea>: Multi-line input field.<select>: Drop-down list.<option>: Defines an option in a drop-down list.