Basic HTML tags

 Here are some basic HTML tags and their descriptions:

<html>: Defines the root element of an HTML document.

<head>: Contains meta-information about the HTML document, such as the title and links to external resources like stylesheets and scripts.

<title>: Sets the title of the HTML document, which appears in the browser's title bar or tab.

<meta>: Provides metadata about the HTML document, such as character encoding and author information.

<link>: Specifies external resources like stylesheets to be used in the HTML document.

<script>: Defines client-side JavaScript code or links to an external JavaScript file.

<style>: Contains CSS (Cascading Style Sheets) rules to define the document's visual presentation.

<body>: Contains the visible content of the HTML document, including text, images, links, and other elements.

<h1>, <h2>, <h3>, <h4>, <h5>, <h6>: Headings of different levels, with <h1> being the highest (most important) and <h6> being the lowest. They are used to structure content hierarchically.

<p>: Defines a paragraph of text.

<a>: Creates hyperlinks to other web pages or resources. The href attribute specifies the link target.

<img>: Embeds an image in the document. The src attribute specifies the image source.

<ul>: Defines an unordered (bulleted) list. Contains <li> (list item) elements.

<ol>: Defines an ordered (numbered) list. Contains <li> elements.

<li>: Represents a list item within <ul> or <ol> lists.

<br>: Inserts a line break within text or content.

<hr>: Creates a horizontal line, often used to separate content sections.

<div>: Defines a generic container for grouping and styling purposes.

<span>: Defines an inline container for styling or scripting a portion of text.

<em>: Emphasizes text, typically displayed in italics.

<strong>: Represents strongly emphasized text, typically displayed in bold.

<blockquote>: Indicates a block of quoted text, often with indentation.

<pre>: Renders preformatted text, preserving white spaces and line breaks.

<code>: Represents a snippet of code within text.

<table>: Defines a table for organizing tabular data.

<tr>: Defines a table row.

<th>: Defines a table header cell.

<td>: Defines a table data cell.

<caption>: Provides a title or caption for a table.

<iframe>: Embeds an external web page or media within the current document.

These are some of the most commonly used HTML tags. HTML allows you to create structured and well-formatted documents by using a combination of these elements. You can also apply CSS styles and JavaScript functionality to enhance the appearance and interactivity of your web pages.

Comments

Popular posts from this blog

Dynamic shopping cart in PHP

Rating system in PHP with MYSQL

Dependency Management: Using tools like Composer to manage dependencies in PHP projects.

How to connect to a URL in PHP?

HTML Comments: Adding comments to your HTML code