Introduction
What is HTML?
HTML (HyperText Markup Language) is the standard language used to create web pages. It is the basic building block of all websites and is used to structure web content.
HTML defines how content like text, images, videos, and links are arranged and displayed in a web browser.
What is HyperText Markup Language?
HyperText Markup Language (HTML) is the standard language used to create and structure web pages.
It is called:
HyperText β This refers to text that contains links to other text or web pages. It allows users to move from one document to another by clicking on links, making web pages interconnected.
Markup Language β This refers to the use of special tags that define how content is structured and displayed in a web browser. These tags organize elements like headings, paragraphs, images, and links.
Language β This means HTML is a system of instructions that browsers can understand and use to display web content correctly. It is not a programming language, but a structured way to describe webpage content.
Basic Structure of an HTML Document
<!DOCTYPE html>
<html>
<head>
<title>My First Page</title>
</head>
<body>
<h1>Welcome</h1>
<p>This is a simple HTML document.</p>
</body>
</html>
HTML Tags Usage
| Tag | How it is used in real code |
|---|---|
| <!DOCTYPE html> Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β | Written once at the top to activate HTML5 Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β |
| <html> | Starts the webpage and wraps everything |
| <head> | Contains hidden information like title |
| <title> | Must be inside and contains page name |
| <body> | Contains all visible content |
| <h1> | Used inside body to show main heading |
| <p> | Used inside body to show paragraph text |
HTML History
- HTML stands for HyperText Markup Language
- It was created by Tim Berners-Lee in 1991
- The purpose was to help people create and share web pages on the internet
- HTML was improved multiple times to meet new web development needs
- These improvements led to the development of HTML5
- HTML5 introduced modern features such as:
- Audio playback support
- Video playback support
- Better graphics handling
- Support for responsive websites
- Support for interactive web applications on different devices