HTML (Hypertext Markup Language) is the standard markup language for creating web pages. It defines the structure and content of a web page, including text, images, links, and other elements.
Basic HTML Structure:
HTML
<!DOCTYPE html>
<html>
<head>
<title>My Web Page</title>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
<a href="https://example.com">Link to another page</a>
</body>
</html>
Key HTML Elements:
<html>
: The root element of an HTML document.<head>
: Contains metadata about the page, such as the title and links to stylesheets and scripts.<title>
: Sets the title of the page, which appears in the browser’s tab.<body>
: Contains the visible content of the page.<h1>
to<h6>
: Heading elements, used for structuring the content.<p>
: Paragraph element.<a>
: Anchor element, used to create links.<img>
: Image element, used to insert images.<ul>
and<ol>
: Unordered and ordered list elements.
Additional HTML Elements:
<div>
: A generic container element.<span>
: An inline element used for grouping text.<header>
,<nav>
,<main>
,<footer>
: Semantic elements that define the structure of a web page.
For more information and examples, you can refer to online resources like W3Schools: https://www.w3schools.com/
Would you like to learn more about specific HTML elements or how to create a basic web page?
Leave a Reply