Introduction to HTML
HTML (HyperText Markup Language) is the standard language used to create and structure web
pages. It is the foundation or 'skeleton' of any website.
Key Points:
1. HTML stands for HyperText Markup Language.
2. Purpose: Defines the structure of a web page (headings, paragraphs, images, links, etc.).
3. Works with tags like <p>, <h1>, <a> to tell the browser how to display content.
4. HTML is not a programming language – it is a markup language.
Basic Structure of an HTML Document:
<!DOCTYPE html>
<html>
<head>
<title>My First Page</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>This is my first webpage using HTML.</p>
</body>
</html>
Explanation:
- <!DOCTYPE html> → Defines the document as HTML5.
- <html> → Root element that contains everything.
- <head> → Contains metadata and page info.
- <title> → Page title that shows on browser tab.
- <body> → The visible content of the page.
- <h1> → Heading tag (largest heading).
- <p> → Paragraph tag (for normal text).
Note: HTML is for structure, CSS is for styling, and JavaScript is for interactivity.