Shalini Tewari
Shalini Tewari

@maybeshalinii

2 Tweets 13 reads Oct 08, 2023
BASIC HTML TAGS YOU SHOULD DEFINITELY KNOW ABOUT
Document Structure:
<!DOCTYPE html>: Declaration of the HTML version.
<html>: Root element that encloses all content on the web page.
<head>: Contains meta-information about the document.
<title>: Sets the title of the web page.
<link>: Specifies external resources like stylesheets.
<style>: Includes CSS styles within the HTML document.
<script>: Embeds JavaScript code within the HTML document.
<base>: Specifies the base URL for relative URLs in the document.
Text Formatting:
<h1> to <h6>: Headings of different levels.
<p>: Paragraph.
<a>: Anchor/link.
<strong>: Strong text (usually bold).
<em>: Emphasized text (usually italic).
<br>: Line break.
<hr>: Horizontal line.
Lists:
<ul>: Unordered list.
<ol>: Ordered list.
<li>: List item.
Images and Multimedia:
<img>: Embeds images.
<audio>: Embeds audio content.
<video>: Embeds video content.
Forms and Input:
<form>: Defines an HTML form for user input.
<input>: Represents an input field (text, checkbox, radio button, etc.).
<textarea>: Defines a multiline text input.
<select>: Creates a dropdown list.
<button>: Defines a clickable button.
Tables:
<table>: Defines an HTML table.
<tr>: Defines a table row.
<td>: Defines a table cell (data).
<th>: Defines a table header cell.
Semantic Elements (HTML5):
<header>: Represents a container for introductory content or a set of navigational links.
<nav>: Defines a section of navigation links.
<main>: Represents the main content of the document.
<article>: Represents a self-contained composition within a document.
<section>: Defines a section of content.
<aside>: Represents content that is tangentially related to the content around it.
<footer>: Represents the footer of a section or page.
Comments:
<!-- Comment -->: Allows you to add comments to your HTML code.
I mean, how can we ever forget about HTML?! 💁‍♀️
Also, I am travelling tomorrow, so we will resume #20DaysOfReact from monday.

Loading suggestions...