Here is a list of commonly used HTML tags in bullet point format, grouped by their purpose:
Basic Structure Tags
-
<!DOCTYPE html>
– Declares the document as HTML5. -
<html>
– Root element of the HTML document. -
<head>
– Contains metadata (not displayed on the page). -
<title>
– Sets the title of the page (appears in browser tab). -
<body>
– Contains all the visible content on the page.
Text Formatting Tags
-
<h1>
to<h6>
– Headings (h1 is the largest, h6 the smallest). -
<p>
– Paragraph. -
<br>
– Line break. -
<hr>
– Horizontal rule (line). -
<b>
– Bold text. -
<i>
– Italic text. -
<u>
– Underlined text. -
<strong>
– Important (bold). -
<em>
– Emphasized (italic).
Links and Media
-
<a href="URL">
– Hyperlink. -
<img src="image.jpg" alt="description">
– Image. -
<video>
– Embed video. -
<audio>
– Embed audio.
Grouping & Layout Tags
-
<div>
– Block-level container. -
<span>
– Inline container. -
<section>
– Section of a page. -
<header>
– Top section (usually contains logo, nav). -
<footer>
– Bottom section. -
<main>
– Main content of the page. -
<nav>
– Navigation links. -
<article>
– Standalone content. -
<aside>
– Sidebar or related content.
List Tags
-
<ul>
– Unordered list (bullets). -
<ol>
– Ordered list (numbers). -
<li>
– List item.
Table Tags
-
<table>
– Table element. -
<tr>
– Table row. -
<td>
– Table data/cell. -
<th>
– Table header. -
<thead>
,<tbody>
,<tfoot>
– Table sections.
Form Tags
-
<form>
– Form container. -
<input>
– Input field (text, checkbox, etc.). -
<textarea>
– Multi-line input. -
<label>
– Label for inputs. -
<select>
– Dropdown menu. -
<option>
– Option in a dropdown. -
<button>
– Clickable button.
Top comments (0)
Some comments may only be visible to logged-in visitors. Sign in to view all comments.