Welcome to the HTML Reference Guide! This section provides detailed information on HTML elements, attributes, and syntax used in web development. Whether you are a beginner or an experienced developer, this guide will help you understand and utilize HTML effectively.
Common HTML Elements
Here is a list of some common HTML elements:
<html>
: The root element of an HTML document.<head>
: Contains meta-information about the document.<body>
: Contains the content of the document.<title>
: Specifies the title of the document.<h1>
to<h6>
: Define heading levels.<p>
: Defines a paragraph.<a>
: Defines a hyperlink.<img>
: Defines an image.<div>
: Defines a division or section in a document.<span>
: Defines a span of text.
Attributes
HTML attributes provide additional information about elements. Here are some commonly used attributes:
class
: Specifies a class name for the element.id
: Specifies a unique identifier for the element.style
: Specifies CSS styles for the element.href
: Specifies the URL of the link for the<a>
element.src
: Specifies the source of the image for the<img>
element.
Example
Below is a simple HTML example that demonstrates the usage of some elements and attributes:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example Page</title>
</head>
<body>
<h1>Welcome to My Website</h1>
<p>This is a paragraph.</p>
<a href="/Documentation/en/Explore/Developer/HTML_Reference">Learn more about HTML</a>
<img src="https://cloud-image.ullrai.com/q/ExampleImage/" alt="Example Image"/>
</body>
</html>
For more comprehensive examples and information, please visit our HTML Tutorials.
Note: This guide is for educational purposes only. Always ensure that your HTML code is valid and follows best practices.