Skip to content
UPEEC

HTML Core

Document structure, elements, text, links, media, tables and forms.

Beginner
Comments 0

This is an overview — pick a sub-topic below.

Sub-topics (25)

HTML Document Structure

Every page has a doctype, an `html` root, a `head` (metadata) and a `body` (visible content).

Beginner♥ 0🔖 0💬 0

Elements and Tags

An element is a start tag, content and end tag: `<p>Text</p>`. Some elements are void (no content or end tag): `<img>`, `<br>`, `<input>`.

Beginner♥ 0🔖 0💬 0

Attributes

Extra information on an element written as `name="value"` in the start tag.

Beginner♥ 0🔖 0💬 0

Text Semantics

Inline elements that give text meaning: `strong` (importance), `em` (emphasis), `code`, `abbr`, `time`, `mark`, `small`, `sub`, `sup`.

Beginner♥ 0🔖 0💬 0

Headings

`h1`–`h6` define the outline of a page.

Beginner♥ 0🔖 0💬 0

Paragraphs

`p` wraps a block of text; browsers add spacing and collapse extra whitespace.

Beginner♥ 0🔖 0💬 0

Links

`a` with `href` connects pages, sections, emails and files.

Beginner♥ 0🔖 0💬 0

Images

`img` embeds a picture; `alt` describes it for people who can't see it.

Beginner♥ 0🔖 0💬 0

Lists

Unordered (`ul`), ordered (`ol`) and description lists (`dl`), with items in `li` (or `dt`/`dd`).

Beginner♥ 0🔖 0💬 0

Tables

`table`, `thead`, `tbody`, `tr`, `th` and `td` present tabular data.

Easy♥ 0🔖 0💬 0

Forms

`form` collects user input and sends it to a server (`action`, `method`).

Easy♥ 0🔖 0💬 0

Input Types

`input type=` text, email, password, number, range, date, time, color, file, checkbox, radio, search, tel, url.

Beginner♥ 0🔖 0💬 0

Labels

`label` names a form control — clicking it focuses the control, and screen readers announce it.

Beginner♥ 0🔖 0💬 0

Buttons

`button` triggers actions; `type="submit"` (default in forms), `type="button"` or `type="reset"`.

Beginner♥ 0🔖 0💬 0

Select and Textarea

`select` with `option`s gives a dropdown; `textarea` accepts multi-line text.

Beginner♥ 0🔖 0💬 0

Audio

`audio` plays sound with optional controls.

Beginner♥ 0🔖 0💬 0

Video

`video` plays video files with controls, poster image and captions.

Beginner♥ 0🔖 0💬 0

Iframes

`iframe` embeds another page — maps, YouTube videos, demos.

Easy♥ 0🔖 0💬 0

Semantic HTML

Use elements that describe their role: `header`, `nav`, `main`, `article`, `section`, `aside`, `footer`, `figure`.

Beginner♥ 0🔖 0💬 0

Metadata

`head` elements describing the page: `title`, `meta` description, charset, viewport, `link` (stylesheets, icons, canonical URL).

Easy♥ 0🔖 0💬 0

Doctype

`<!doctype html>` on the first line tells browsers to use standards mode.

Beginner♥ 0🔖 0💬 0

HTML Entities

Codes for reserved or special characters: `&lt;` (<), `&gt;` (>), `&amp;` (&), `&nbsp;`, `&copy;`, `&Omega;`.

Beginner♥ 0🔖 0💬 0

Global Attributes

Attributes valid on any element: `id`, `class`, `style`, `title`, `lang`, `dir`, `hidden`, `tabindex`, `data-*`.

Beginner♥ 0🔖 0💬 0

Data Attributes

Custom `data-*` attributes store extra information for scripts and CSS.

Easy♥ 0🔖 0💬 0

HTML Validation

Check markup against the standard with the W3C Validator or editor linters.

Beginner♥ 0🔖 0💬 0

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.