Free Online Flashcard Deck

2 HTML Structure and Semantics Free Online FlashCards

Study 2 HTML Structure and Semantics with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.

12 cards
01
Front

What does HTML define on a webpage?

Back

HTML describes the structure and meaning of web content; CSS controls presentation, and JavaScript can add behavior.

02
Front

What makes HTML semantic?

Back

Semantic HTML uses elements for their intended purposes, giving content meaningful structure and often useful browser and accessibility behavior by default.

03
Front

What belongs in the head element?

Back

The head contains document information such as character encoding and the title shown in the browser tab.

04
Front

Why set the page's lang attribute?

Back

The lang attribute identifies the page's language, helping assistive technology pronounce its content appropriately.

05
Front

What does the body element contain?

Back

The body contains the webpage's content.

06
Front

What do header, nav, main, and footer describe?

Back

Elements such as header, nav, main, and footer identify common regions of a page.

07
Front

How do article, section, and div differ?

Back

An article is for self-contained content; a section groups related content, usually under a heading. Use a div when no more meaningful element fits.

08
Front

How should heading levels organize a page?

Back

Use heading levels to show content hierarchy: a main topic commonly uses h1, major sections h2, and subsections h3. Headings also let readers, including screen-reader users, navigate by section.

09
Front

What creates a link in HTML?

Back

An anchor element with an href attribute creates a link to a destination.

10
Front

What makes link text descriptive?

Back

Link text should make the destination or action understandable, even when read outside its surrounding paragraph.

11
Front

How does a link target a location on the same page?

Back

A link to a location on the same page uses a fragment identifier that matches the destination element's id.

12
Front

When should you use a link rather than a button?

Back

Links navigate to destinations; buttons perform actions. Choose the element that matches the task to get appropriate built-in browser behavior.