HTML stands for HyperText Markup Language and is the standard markup
language for creating web pages. It defines the structure, content, and
meaning of web content, often used with CSS for styling and JavaScript for
interactivity.
Here's a breakdown of key concepts:
What is HTML?
• Markup Language:
HTML uses tags to mark up text and other elements, indicating how they
should be displayed in a web browser.
• Structure and Content:
It defines the structure of a web page, including headings, paragraphs,
lists, images, links, and more.
• Foundation of the Web:
HTML forms the foundation of the web, providing the basic structure for
all web pages.
Key Elements and Concepts:
• Tags:
HTML uses tags to define elements, such as <p> for paragraphs, <h1> for
headings, <a> for links, and <img> for images.
• Attributes:
Attributes provide additional information about HTML elements, like
the src attribute for the <img> tag (specifying the image source).
• Elements:
Elements are the building blocks of an HTML page, formed by opening and
closing tags (e.g., <p>This is a paragraph.</p>).
• Document Structure:
A typical HTML document includes a <!DOCTYPE html> declaration,
a <html> root element, a <head> section (for metadata), and a <body> section
(for the visible content).
Common HTML Tags:
<html>: Root of an HTML page
<head>: Contains metadata about the document
<body>: Contains the visible content of the document
<h1> to <h6>: Headings of different levels
<p>: Paragraph
<a>: Hyperlink
<img>: Image
<ol>: Ordered list
<ul>: Unordered list
<li>: List item
<table>: Table
<tr>: Table row
<td>: Table data cell
HTML5:
The latest version of HTML, introducing new features and elements for multimedia, forms,
and more.
Example:
Code
<!DOCTYPE html>
<html>
<head>
<title>My First HTML Page</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>This is a paragraph of text.</p>
<img src=”[Link]” alt=”An image”>
</body>
</html>