Comprehensive Guide to PHP Elements
Uncategorized |
2025-02-19 12:49:08
HTML (HyperText Markup Language) is the backbone of web development, providing the structure and layout of web pages. Below is a detailed explanation of all major HTML elements, categorized for better understanding.
These elements define the essential structure of an HTML document.
<!DOCTYPE html><html><!DOCTYPE html>
<html lang="en">
</html>
<head><meta><meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A guide to HTML elements">
<title><title>My First Webpage</title>
<link><link rel="stylesheet" href="styles.css">
<script><script src="script.js"></script>
<body><body>
<h1>Welcome to My Website</h1>
</body>
<h1> to <h6> (Headings)h1) to least (h6).<h1>Main Heading</h1>
<h2>Subheading</h2>
<p> (Paragraph)<p>This is a paragraph of text.</p>
<br> (Line Break)Line one.<br>Line two.
<hr> (Horizontal Rule)<hr>
<strong> & <b><strong>: Defines important text (bold, with semantic meaning).<b>: Bold text without semantic importance.<strong>Important text</strong> and <b>just bold text</b>.
<em> & <i><em>: Emphasized text (italic with semantic meaning).<i>: Italicized text without semantic meaning.<em>Emphasized text</em> and <i>just italic text</i>.
<mark><p>This is <mark>highlighted</mark> text.</p>
<small><small>Copyright © 2025</small>
<blockquote><blockquote>“This is a famous quote.”</blockquote>
<cite><cite>The Great Gatsby</cite>
<code><code>print("Hello, World!")</code>
<ol>)<ol>
<li>First item</li>
<li>Second item</li>
</ol>
<ul>)<ul>
<li>Item A</li>
<li>Item B</li>
</ul>
<table>)<table border="1">
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>Alice</td>
<td>25</td>
</tr>
</table>
<form><form action="/submit" method="post">
<input type="text" name="username">
<button type="submit">Submit</button>
</form>
<input>text, password, email, checkbox, radio, submit.<input type="email" placeholder="Enter your email">
<textarea><textarea rows="4" cols="50"></textarea>
<button><button>Click Me</button>
<img><img src="image.jpg" alt="Description">
<audio><audio controls>
<source src="sound.mp3" type="audio/mpeg">
</audio>
<video><video controls>
<source src="video.mp4" type="video/mp4">
</video>
<a> (Anchor)<a href="https://example.com">Visit Example</a>
<nav><nav>
<a href="#home">Home</a>
<a href="#about">About</a>
</nav>
<header><section><article><aside><footer>This guide covers the most commonly used HTML elements, ensuring a solid foundation for web development.