FlashKeepers

Web Development · College · College and University

HTML I: Elements and Semantic Markup

HTML document structure, headings, links, lists, tables, media, semantic elements and metadata.

About this set

40 basic cards for College Web Development. Set 1 of 2 in HTML. It opens with "What element wraps the entire HTML document?" and "What element contains metadata and other invisible content?". Study it alongside the other College sets below.

40 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone

Opens in your browser, no account. Get the iPhone and iPad app · Android app

What element wraps the entire HTML document?
Show answer<html>
What element contains metadata and other invisible content?
Show answer<head>
What element contains all visible page content?
Show answer<body>
What does the DOCTYPE declaration specify?
Show answerThe version of HTML used in the document
What attribute sets the character encoding in an HTML5 document?
Show answercharset (typically <meta charset='utf-8'>)
What is the purpose of the <title> element?
Show answerTo set the text shown in the browser tab and search engine results
What is the semantic difference between h1 and h2?
Show answerh1 is the top-level heading; h2 is a subheading below it
How many h1 elements should typically appear on a single page?
Show answerOne, representing the main topic of the page
What makes a proper heading hierarchy?
Show answerh1 is the main heading, followed by h2, h3, etc., without skipping levels
Why should headings be chosen by semantic level rather than visual appearance?
Show answerFor accessibility to screen readers and to preserve document structure
What does the <a> element stand for?
Show answerAnchor; it creates a hyperlink
What attribute specifies the destination URL of a link?
Show answerhref
What does target='_blank' do?
Show answerOpens the linked page in a new browser tab or window
What is the difference between /page and ./page in an href attribute?
Show answer/page is an absolute path from the root; ./page is relative to the current directory
What is a fragment identifier in a URL?
Show answerA hash (#) followed by an element id, used to jump to a specific part of a page

25 more cards in the app

Study this set free