What is HTML?
HTML stands for HyperText Markup Language. It is the standard language used to create and design webpages.Who Developed HTML?
HTML (HyperText Markup Language) was developed by Tim Berners-Lee in 1991.
Key Points about HTML:
- HyperText refers to the links that connect web pages to one another.
- Markup Language means it uses tags to describe the structure of web content.
What HTML Does:
HTML structures the content on the web. It tells the browser what each part of a webpage is: headings, paragraphs, images, links, etc.
Basic Structure of an HTML Document:
htmlCopyEdit<!DOCTYPE html>
<html>
<head>
<title>My First Page</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>This is a paragraph.</p>
</body>
</html>
Common HTML Tags:
| Tag | Purpose |
|---|---|
<html> | Root of the HTML document |
<head> | Contains metadata/info |
<title> | Title in browser tab |
<body> | Main content of the webpage |
<h1>–<h6> | Headings |
<p> | Paragraph |
<a> | Link |
<img> | Image |
<ul>, <li> | Lists |
<div> | Container/section |
<span> | Inline container |
Basic Use of HTML
HTML (HyperText Markup Language) is used to create and structure content on the web.
✅ Main Uses of HTML:
| Purpose | Example |
|---|---|
| Structure a webpage | Headings, paragraphs, lists |
| Display content | Text, images, videos |
| Link between pages | Hyperlinks |
| Create forms | Login, contact, search boxes |
| Embed media | Audio, video, maps |
Basic HTML Example:
htmlCopyEdit<!DOCTYPE html>
<html>
<head>
<title>My First Page</title>
</head>
<body>
<h1>Welcome to My Website</h1>
<p>This is a paragraph of text.</p>
<a href="https://www.google.com">Visit Google</a>
</body>
</html>
What You Can Do with HTML:
- Create headings and paragraphs
- Add images
- Link to other websites or pages
- Embed audio or video
- Create forms and input fields
- Organize layout using
<div>or<section>