The objective of this assignment is to practice basic HTML concepts by creating an HTML document that resembles a GitHub README file.
This assignment focuses on structure, semantics, and linking, not styling.
The following concepts were used in this assignment:
- HTML document structure
- Headings and paragraphs
- Lists and nested lists
- Anchor tags
- Anchoring to same page sections
- Linking to other files
- Basic formatting tags
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
Content goes here
</body>
</html>Important
<!DOCTYPE html> declares the document as HTML5.
<p>Paragraph</p>
<h1>Main Heading</h1><br />
<hr />
<img />Note
Self-closing tags do not contain content.
<ul>
<li>Item One</li>
<li>Item Two</li>
</ul><ul>
<li>Main Item
<ul>
<li>Sub Item</li>
</ul>
</li>
</ul><a href="#section-id">Go to Section</a>
<h2 id="section-id">Target Section</h2><a href="about-me.html">About Me</a>Important
href value must match the target id.
| Tool | Usage |
|---|---|
| Visual Studio Code | Writing HTML |
| Live Server | Local testing |
| Web Browser | Rendering HTML |
HTML file:
Tip
This document explains what and why. The actual code demonstrates how.