Introduction to HTML
What is HTML?
HTML (HyperText Markup Language) is the standard markup language used to create the structure of web pages.
It tells browsers how to display content and organize text, links, images, and more.
Why Use HTML?
HTML is the backbone of the web. Here’s why it's important:
- Universal Support: Works across all browsers.
- Simple Syntax: Easy for beginners to learn and understand.
- Works with CSS & JS: Powers modern, dynamic websites.
Benefits of HTML
- Widely Adopted: Used in all web projects globally.
- Scalable: For both small and large websites.
- Search Engine Friendly: Easy to index by Google & others.
- Responsive: Supports mobile-friendly design with HTML5.
- Open Standard: Maintained by the W3C.
Core HTML Elements
<h1> to <h6>
: Define headings
<p>
: Paragraph text
<a>
: Anchor link
<img>
: Image
<ul>
, <ol>
: Lists
<div>
, <span>
: Page structure
HTML in Modern Web Development
HTML5 has transformed how developers build websites. Key features include:
- Multimedia: Built-in support for video & audio
- Semantic Tags: Like
<header>
, <footer>
, <section>
- Geolocation API: Access device location
- Offline Support: With app caching
Basic HTML Example
<!DOCTYPE html>
<html>
<head>
<title>AIT Sample Page</title>
</head>
<body>
<h1>Welcome to AIT</h1>
<p>This is a sample paragraph.</p>
</body>
</html>