Basic HTML 30 Tags for Begginers
List of 30 basic HTML tags along with brief explanations for each:
<!DOCTYPE html>: Defines the document type and version of HTML being used.
<html>: Represents the root element of an HTML document.
<head>: Contains meta-information about the document, such as the title and links to external resources.
<title>: Sets the title of the web page, displayed in the browser's title bar or tab.
<meta>: Provides metadata about the HTML document, like character encoding and author information.
<link>: Specifies external resources like stylesheets.
<style>: Contains CSS (Cascading Style Sheets) for styling HTML elements.
<script>: Defines client-side JavaScript or links to an external JavaScript file.
<body>: Represents the main content of the HTML document that is visible to users.
<h1> to <h6>: Headings with different levels, where
<h1>
is the highest and<h6>
is the lowest.<p>: Represents a paragraph of text.
<a>: Creates a hyperlink to another web page or resource.
<ul>: Defines an unordered (bulleted) list.
<ol>: Defines an ordered (numbered) list.
<li>: Represents a list item within
<ul>
or<ol>
.<img>: Embeds an image in the document.
<br>: Creates a line break within text.
<hr>: Creates a thematic break or horizontal rule.
<em>: Marks text as emphasized (typically displayed in italics).
<strong>: Indicates strong importance (typically displayed in bold).
<u>: Underlines text.
<h1> to <h6>: Headings of various levels.
<blockquote>: Indicates a block of quoted content.
<pre>: Represents preformatted text, preserving whitespace.
<code>: Represents a fragment of computer code.
<iframe>: Embeds another HTML page within the current page.
<table>: Defines a table.
<tr>: Represents a table row.
<td>: Defines a table cell.
<th>: Defines a header cell in a table.
These are some of the fundamental HTML tags that you'll encounter when creating web pages. Each tag serves a specific purpose in structuring and presenting content on the web. As you learn more, you'll discover additional tags and attributes that enhance the capabilities of HTML.