HTML Master Set

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/124

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:24 PM on 10/8/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

125 Terms

1
New cards

<!DOCTYPE html>

Not an element, but it goes first on every page. Tells the browser to use modern standards mode instead of old, inconsistent quirks mode.

2
New cards

The root element that wraps the whole page. Put lang='en' on it so screen readers pronounce things correctly and translation tools know the language.

<html>

3
New cards

Holds information about the page that isn't displayed: the title, meta tags, and links to stylesheets and scripts.

4
New cards

Holds everything that's actually displayed on the page. One per document.

5
New cards

The page's name, shown in the browser tab and in search results. Make it descriptive, not just 'Page'. Goes in .

6
New cards

Page metadata with no other element. Common uses: charset='utf-8' for character encoding, and the viewport tag so the page behaves on phones. No closing tag.

7
New cards

Connects the page to an outside resource, most often a stylesheet (rel='stylesheet') or a favicon. Goes in . No closing tag.

8
New cards

Embeds or links JavaScript. Use src='' for an external file, and add defer so it runs after the page is parsed.

9
New cards

Holds CSS written directly in the page. Usually goes in .

10
New cards

Introductory content for the page or a section, usually a logo, site title, and nav. Not the same as (page info) or (table header).

11
New cards

A block of major navigation links. Screen readers can jump straight to it. Not every group of links needs one, just the main ones.

12
New cards

The page's primary content. One per page. Lets screen reader users skip past the header and nav straight to the content.

13
New cards

Closing content for the page or a section: copyright, contact info, related links.

14
New cards

to


Headings, from most to least important. Use them as an outline: one

, then

, and don't skip levels. Control size with CSS, not by picking a smaller heading.


15
New cards


A paragraph of text. Don't use empty ones for spacing; that's CSS's job.

16
New cards

A generic block container with no meaning. Use it for layout and styling only, when no semantic element fits.

17
New cards

A generic inline container with no meaning. Use it to style or target a piece of text within a line.

18
New cards

A hyperlink. href='' sets where it goes. Link text should describe the destination, never just 'click here'.

19
New cards

An image. alt is required: describe the image, or leave it empty (alt='') if it's purely decorative. If the image is the only thing in a link, the alt should say where the link goes. No closing tag.

20
New cards

    An unordered (bulleted) list, for items where order doesn't matter. Its children are

  • .
  • 21
    New cards

      An ordered (numbered) list, for steps or rankings. Supports start, reversed, and type attributes.

      22
      New cards
    1. A list item. Lives inside

        ,
          , or .

      23
      New cards

      A clickable button. Gets keyboard focus, Enter and Space, and the button role for free, unlike a div with onclick. Inside a form it defaults to type='submit', so use type='button' for buttons that shouldn't submit.

      24
      New cards

      Wraps inputs that get submitted together. action='' says where the data goes; method='' says how (get or post).

      25
      New cards

      A form field. type='' decides what kind: text, email, password, number, checkbox, radio, date, file, and more. Most types need a

      26
      New cards

      Names a form control. Connect it with for='' matching the input's id, or wrap the input inside it. Clicking the label focuses the input.

      27
      New cards

      Strong importance, seriousness, or urgency. Usually shown bold. Use it instead of when the importance is the point.

      28
      New cards

      Stress emphasis that changes the meaning of a sentence, like emphasis in speech. Usually shown italic.

      29
      New cards

      A line break inside text, like in a poem or a postal address. Not for spacing between blocks. No closing tag.

      30
      New cards

      A thematic break between paragraphs or sections, shown as a horizontal line by default. Use it instead of a divider image. No closing tag.

      31
      New cards

      A thematic grouping of content, usually with its own heading. Use it when a

      would really be a meaningful chapter of the page.

      32
      New cards

      Self-contained content that would make sense on its own: a blog post, news story, comment, or product card.

      33
      New cards

      Content related to but separate from the main content: sidebars, callouts, pull quotes.

      34
      New cards

      Tabular data in rows and columns. For data only, never for page layout.

      35
      New cards

      A table row. Contains and cells.

      36
      New cards

      A standard table data cell.

      37
      New cards

      A table header cell. Screen readers announce it with each data cell, like 'Price, $8.00'. Use scope='col' or scope='row'. Bold cells are not a substitute.

      38
      New cards

      A multi-line text field, for comments or messages.

      39
      New cards

      A dropdown list of choices. Contains .

      40
      New cards

      One choice inside a .

      41
      New cards

      Groups the header rows of a table. The cells inside still need to be .

      42
      New cards

      Groups the main body rows of a table.

      43
      New cards

      Groups the footer rows of a table, like totals.

      44
      New cards

      The title of a table. Goes right after the opening

      tag. Helps everyone, especially screen reader users.

      45
      New cards

      Groups related form controls, like a set of radio buttons. Its first child should be a .

      46
      New cards

      The caption for a

      . Screen readers announce it along with each control in the group.

      47
      New cards

      Self-contained content like an image, chart, or code sample, usually with a caption.

      48
      New cards

      The caption for a

      . Goes first or last inside it.

      49
      New cards

      A longer quotation set apart from the main text. Use cite='' for the source URL.

      50
      New cards

      Preformatted text: spaces and line breaks show exactly as written. Often wraps for code blocks.

      51
      New cards

      A fragment of computer code shown inline. Wrap it in

       for multi-line blocks.

      52
      New cards

      Embeds another web page inside this one, like a video player or a map. Give it a title='' describing what it is.

      53
      New cards

      Embeds a video. Add the controls attribute so users can play and pause, and a for captions.

      54
      New cards

      Embeds sound. Add the controls attribute so users can play, pause, and adjust volume.

      55
      New cards

      An alternative media file inside ,

      56
      New cards

      Wraps several options plus one , so the browser can pick the best format or size for the screen.

      57
      New cards

      Side comments and fine print, like copyright notices or legal text. Not just 'smaller text'.

      58
      New cards

      A date or time, with a machine-readable datetime='' attribute. Helps search engines, calendars, and scripts.

      59
      New cards

      An abbreviation or acronym. You can put the full form in title='', but spelling it out in the text the first time works better for everyone.

      60
      New cards

      Draws attention to text without adding importance, like keywords or product names. Purely stylistic. If it's important, use ; if it's a header, use a real heading or .

      61
      New cards

      Text in an alternate voice or mood: foreign words, technical terms, thoughts, ship names. Not for emphasis; that's .

      62
      New cards

      Highlighted text that's relevant in context, like search-term matches. Yellow by default.

      63
      New cards

      A disclosure widget that opens and closes with no JavaScript needed. Good for FAQs.

      64
      New cards

      The always-visible label of a

      element. Clicking it opens and closes the content.

      65
      New cards

      A dialog box or modal. Open it with showModal() in JavaScript for proper focus handling.

      66
      New cards

      Embeds scalable vector graphics directly in the page. Stays sharp at any size.

      67
      New cards

      A drawing surface you paint on with JavaScript, for graphics, charts, or games. Put fallback text inside, since screen readers can't see what's drawn.

      68
      New cards

      Content shown only when JavaScript is turned off or unavailable.

      69
      New cards

      A description list: pairs of terms and descriptions, like a glossary. Contains

      and
      .

      70
      New cards

      A term in a description list. Followed by one or more

      .

      71
      New cards

      The description for the

      before it.

      72
      New cards

      Subscript, like the 2 in H2O.

      73
      New cards

      Superscript, like exponents or footnote markers.

      74
      New cards

      A short inline quotation. The browser adds the quotation marks for you.

      75
      New cards

      The title of a creative work, like a book, film, or song. Not the person's name.

      76
      New cards

      Captions, subtitles, or descriptions for

      77
      New cards

      Groups related

      78
      New cards

      A list of suggested values for an , connected with list=''. Users can still type anything they want.

      79
      New cards

      A progress bar showing how far along a task is, like a file upload.

      80
      New cards

      A measurement within a known range, like disk usage or password strength. For progress, use instead.

      81
      New cards

      Shows the result of a calculation or user action, like a running total.

      82
      New cards

      Contact information for the person or organization behind the page or an article. Not for any random postal address.

      83
      New cards

      Wraps a search form or search feature so assistive tech can find it. A newer landmark element.

      84
      New cards

      Keyboard input or a key the user presses, like Ctrl+C.

      85
      New cards

      Sample output from a computer program.

      86
      New cards

      A variable in math or programming.

      87
      New cards

      The defining instance of a term: the spot where it's actually being defined.

      88
      New cards

      Ties content to a machine-readable value with value=''. Like

      89
      New cards

      Text that's no longer accurate or relevant, shown struck through. For tracked edits, use .

      90
      New cards

      Marks text with a non-textual annotation, like a spelling error. Avoid it for plain styling, since underlines look like links.

      91
      New cards

      Text that was added to a document. Pairs with for showing edits.

      92
      New cards

      Text that was removed from a document, shown struck through. Pairs with .

      93
      New cards

      A word-break opportunity: a spot where the browser may break a long word or URL if it needs to. No closing tag.

      94
      New cards

      Isolates text whose direction might differ from its surroundings, like a username in Arabic or Hebrew inside English text.

      95
      New cards

      Forces a text direction with dir='ltr' or dir='rtl'.

      96
      New cards

      Ruby annotation: small pronunciation text shown above characters, common in Japanese and Chinese. Contains and .

      97
      New cards

      The pronunciation text inside a .

      98
      New cards

      Fallback parentheses around , shown only by browsers that don't support ruby.

      99
      New cards

      Groups table columns so you can style them together. Contains .

      100
      New cards

      One column, or several with span='', inside a . No closing tag.