Introduction to html
What is HTML?
HTML stands for HyperText Markup Language.
It is the standard markup language used to create web pages.
HTML combines hypertext (which defines links between web pages) and markup language (used
to define the structure of web pages).
Features of HTML:
Easy to Learn and Use: HTML is beginner-friendly.
Platform-Independent: Works across various devices and browsers.
Supports Multimedia: You can add images, videos, and audio.
Hypertext: Allows linking between pages.
Markup Language: Annotates text for machine understanding.
HTML Elements and Tags:
HTML elements consist of an opening tag, content, and a closing tag.
Always include closing tags (except for empty elements like <br>).
Examples: <h1>, <p>, <a>, etc.
Basic structure:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
The <head> contains meta information (not visible on the page).
The <body> contains visible content.
Web Browsers:
Browsers read HTML documents and display them correctly.
They interpret HTML tags to render the content.