Welcome to our quick guide on HTML for English speakers. HTML, or HyperText Markup Language, is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as CSS and JavaScript.
Basic Structure
Here is a simple example of an HTML document structure:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>This is a paragraph.</p>
<a href="/en/html/quick_guide">Read more about HTML</a>
</body>
</html>
In this example, the <html>
element is the root element of an HTML page, the <head>
element contains meta-information about the document, and the <body>
element contains the content of the document.
Elements
HTML elements are tags that define the structure of a webpage. For example:
<h1>
to<h6>
: Define headings.<p>
: Defines a paragraph.<a>
: Defines a hyperlink.
Attributes
Attributes provide additional information about HTML elements. For example, the href
attribute of the <a>
element specifies the URL of the link.
Images
To add an image to your HTML document, use the <img>
element:
<img src="image_url" alt="Image description">
You can use the following link to add an image of a Golden Retriever:
<center><img src="https://cloud-image.ullrai.com/q/Golden_Retriever/" alt="Golden Retriever"/></center>
Further Reading
For more information on HTML, you can visit our comprehensive guide at HTML Tutorial.
Conclusion
This quick guide should give you a basic understanding of HTML. Remember to always validate your HTML using a tool like the W3C Markup Validation Service. Happy coding!