CET138 Full Stack Development โ Assignment 1 | Structure & Semantics
HTML is the structural foundation of every web page. It defines content hierarchy, embeds media, links resources, and creates interactive forms. This section demonstrates core HTML elements, semantic tags, and modern best practices.
<!DOCTYPE html> <html lang="en"> <head><meta charset="UTF-8"><title>Page</title></head> <body> <!-- content --> </body> </html>
Paragraphs with strong, emphasis, marked text, and <code> snippets.
| Attribute | Purpose | Example |
|---|---|---|
| id | Unique identifier | <div id="header"> |
| class | CSS/styling hook | <p class="highlight"> |
| href | Link destination | <a href="https://..."> |
| alt | Image description | <img src="photo.jpg" alt="description"> |
| Essential for accessibility & SEO | ||
โจ Showcases: text, email, select, radio, checkboxes, textarea, date, color picker, and form buttons.
๐ MDN HTML Documentation (external)
๐ Internal link: jump to top of page
<img src="..." alt="description">
<audio controls>
<video> with poster
๐ Note: audio/video sources are placeholders, but the elements showcase full HTML5 multimedia support.
Semantic elements improve accessibility, SEO, and readability:
<header> : introductory content / branding<nav> : navigation links<main> : dominant content of the page<article> : self-contained composition<section> : thematic grouping<aside> : sidebar / complementary info<footer> : footer section<figure> + <figcaption> : captioned mediaBlock-level: <div>, <p>, <h1>-<h6>, <section>, <ul> โ occupy full width.
Inline: <span>, <a>, <strong>, <em>, <img> โ stay within content flow.
Comment example: <!-- hidden note --> (invisible in rendered page).
Character entities: < = < , > = > , © = ยฉ , = non-breaking space.
๐ Example: 5 < 10 && 20 > 15 โ ยฉ 2025 HTML demo.
๐ก HTML provides the skeleton of every full stack application. All front-end frameworks ultimately render HTML/CSS/JS. This section demonstrates core tags, forms, semantics, and multimedia โ essential skills for full stack developers.
โฌ Back to top