HTML (HyperText Markup Language)
HTML is the standard markup language used to create web pages. It provides the basic structure of a webpage by defining elements like headings, paragraphs, images, links, and more.
---
Key Features of HTML:
✔ Markup Language: HTML is not a programming language but a markup language that structures web content.
✔ Tag-Based: Uses tags (e.g., <h1>, <p>, <img>) to define elements.
✔ Platform-Independent: Works on all web browsers and devices.
✔ Forms the Web's Foundation: Works alongside CSS (for styling) and JavaScript (for interactivity).
---
Basic HTML Structure
A simple HTML document looks like this:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My First Webpage</title>
</head>
<body>
<h1>Welcome to My Website</h1>
<p>This is a paragraph of text.</p>
<a href="https://www.example.com">Visit Example</a>
<img src="image.jpg" alt="A sample image">
</body>
</html>
---
Common HTML Elements
* Headings: <h1> to <h6>
* Paragraphs: <p>
* Links: <a href="URL">Click here</a>
* Images: <img src="image.jpg" alt="Description">
* Lists: <ul> (unordered), <ol> (ordered), <li> (list items)
* Tables: <table>, <tr>, <td>
* Forms: <form>, <input>, <button>
---
Advanced Topics
- HTML5: Introduced semantic elements like <header>, <article>, and <footer>.
- Multimedia: Supports <audio> and <video> tags.
- SEO & Accessibility: Uses proper tags and attributes for better search engine ranking and usability.
.
ليست هناك تعليقات:
إرسال تعليق