2. HTML Fundamentals Flashcards
In HTML, a(n) ____ indicates an element’s starting point in the document
opening tag
In HTML, a(n) ____ indicates an element’s ending point in the document
closing tag
A(n) ____ element is an element that only needs an opening tag.
void (e.g., <br>, <img>
According to WHATWG, what are the minimal parts of an HTML document?
<!DOCTYPE html>
<html>
<head>
<meta>
<title>
<body>
What HTML declaration instructs the browser about what type of document follows?
<!DOCTYPE html>
What does <html lang="en"> indicate?
That the document’s language is English
What element contains the document title, document metadata, and various other elements that are typically not displayed in the webpage
<head>
Which HTML element specifies metadata, which is data that describes the document’s data?
<meta>
What does <meta charset=”UTF-8”> mean?
It describes how characters are represented in the HTML document
Which HTML element specifies the document’s name?
<title>
Which HTML element encloses all elements and content to be rendered in the browser?
<body>
An element ____ provides additional information about the element and is included only in the opening tag.
attribute
____ mode is a browser rendering mode that renders a webpage using non-standard layout rules emulating older web browsers. A webpage with the DOCTYPE is rendered using ____ mode, which uses the HTML Living Standard.
Quirks, standards
Which HTML element creates a paragraph in an HTML document?
<p></p>
Which HTML element creates a line break in a paragraph, such that the content after the line break appears on a new line?
<br> (a void element)
**Use <br> when the line break is essential to the content, such as lines in a poem or mailing address, and not just to add spacing for formatting a webpage. CSS should be used for formatting a webpage.
Which HTML element indicates a group of related content in a document?
<section></section>
How many levels of section headers are there in HTML?
6: <h1>, <h2>, etc.
HTML header tags should match the document’s ____ and not be selected only for their font size.
hierarchical
Which HTML element indicates emphasized text, such as text having an emphasized pronunciation when spoken, and is italicized by default?
<em></em>
Which HTML element indicates text that has strong importance, and is bolded by default?
<strong></strong>
Which HTML element denotes a title, such as a book or song title, and is italicized by default?
<cite></cite>
Which HTML element denotes important content that should be semantically highlighted and is rendered with a yellow background by default?
<mark></mark>
Which HTML element indicates text that needs attention, like key words in a document abstract or product names in a review, and renders the text in bold?
<b></b>
Which HTML element indicates text in an alternative voice, such as a word or phrase in a foreign language, and is rendered using italics?
<i></i>
Which HTML element denotes text that should appear differently from normal text, such as misspelled words, and is underlined by default?
<u></u>
Which HTML element denotes a variable in a computer program?
<var></var>
Which HTML element indicates keyboard input?
<kbd></kbd>
Which HTML element indicates computer code?
<code></code>
Which HTML element indicates sample output from a computer?
<samp></samp>
How do you insert a comment in HTML?
<!– Comment –>