Welcome to the HTML Guide! This section provides you with essential information about HTML, the standard markup language for creating web pages.

Basic Structure

Every HTML document starts with a basic structure. Here's an example:

<!DOCTYPE html>
<html>
<head>
  <title>Page Title</title>
</head>
<body>

  <h1>This is a Heading</h1>
  <p>This is a paragraph.</p>

</body>
</html>

Elements and Tags

HTML uses elements and tags to structure content. Here's a list of some common elements:

  • <h1> to <h6>: Define headings
  • <p>: Defines a paragraph
  • <a>: Defines a hyperlink
  • <img>: Defines an image

Links

To create a link, use the <a> tag with the href attribute:

<a href="https://www.example.com">This is a link</a>

Images

To insert an image, use the <img> tag with the src attribute:

<img src="image.jpg" alt="Description">

You can also align images using CSS:

<img src="image.jpg" alt="Description" style="float: right;">

Further Reading

For more information on HTML, check out our comprehensive HTML Tutorial.

HTML