More HTML Flashcards

1
Q

A blank is any part of a web document body that has opening and closing tags.

A

container

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A blank is the container in which another element resides.

A

parent container

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Container for introductory content

A

<header>
</header>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Generic tag for creating inline containers

A

<span></span>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Generic tag for creating block containers

A

<div>
</div>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Container for content not directly related to the main topic of a document

A

<aside>
</aside>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Container for content relating to website navigation

A

<nav>
</nav>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Container for self-contained content that can be reused independently, such as a news article

A

<article>
</article>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Container for distinct parts of a document, such as a chapter

A

<section>
</section>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Container for the document’s primary content

A

<main>
</main>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Container for person’s or organization’s contact information

A

<address>
</address>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Container for content descriptive information about the web page like author, copyright, or date modified

A

<footer>
</footer>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

HTML elements can be categorized as either blank or blank

A

block or inline

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

A blank (sometimes called a block-level element) fills the width of the element’s parent container and can contain other block elements, inline elements, and text.

A

block element

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Block elements include blank, blank and blank.

A

<h1>, <table>, and <p>
</p></table></h1>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Some block elements cannot be contained within certain blank when the semantics are unclear. Ex: The <p> element cannot contain another <p> element.

A

other block elements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

A blank element is a generic element for creating block containers to facilitate managing page content and is the only block element with no semantic meaning, unlike other block elements such as <p> and <table>.

A

<div>
</div>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

An blank fills the minimum space possible in the element’s parent container and can only contain text or other inline elements.

A

inline element

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

The blank element is an inline element that creates a hyperlink container as big as the link’s internal content; a hyperlink does not fill the width or height of the link’s parent paragraph.

A

<a></a>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

The blank element is the generic element for creating inline containers to facilitate managing content on the page. Unlike other inline elements, such as <a> and <em>, the blank element has no semantic meaning.</em></a>

A

<span></span>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

The blank tag allows the web browser to submit information from the user to the server.

A

<form>
</form>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

The <form> tag has what two primary attributes:

A

The action attribute

The method attribute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

The blank indicates the URL where the form data should be sent. Typically the URL uses HTTPS so the form data is encrypted.

A

action attribute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

The blank indicates the HTTP request type the browser will use to communicate with the server.

A

method attribute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

The method is either blank or blank. Blank is the default method if no method is specified.

A

GET or POST
GET

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

The blank is a technique used by a web browser to submit information to a web server by altering the URL of the HTTP request.

A

GET method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

When a user clicks the submit button in a form that uses the GET method, the browser performs what 4 following steps:

A

Collect all data from the form fields into a query string.

Create a URL with the server page and name=value pairs.

Use the newly created URL to create and send an HTTP GET request.

Display or update the web page using the HTTP response received from the server.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

The blank is a set of name=value pairs separated by the ampersand character (&). Each name is specified as an attribute of the HTML field, and the value is the user-entered data. Ex: The first and last field names and values in the animation below become the string: first=Rick&last=Deckard

A

query string

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

The URL is composed of the blank

A

action attribute specified in the form, the question mark character (?), and the query string. Ex: http://example.com/apply?first=Rick&last=Deckard

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

The GET method should not be used to submit blank like phone numbers, credit card information, etc.

A

private information

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

The blank is a technique used by a web browser to submit information to a web server by sending the information in the HTTP request body.

A

POST method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

When the user clicks the submit button in a form that uses the POST method, the browser performs what four steps

A

Create an HTTP POST request using the URL from the form’s action attribute.

Create a query string from the form data. Ex: first=Sarah&last=Connor

Place the the query string in the HTTP request message body and send the request.

Display or update the web page using the HTTP response received from the server.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

To accommodate binary data, a blank can be split into multiple parts.

A

a POST request

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

The <form> tag’s blank “multipart/form-data” indicates the web browser should split a POST request into multiple parts, where each input field is sent as a separate part of the HTTP request message.

A

enctype attribute value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

The &, ?, and = characters have special meaning in a query string. If a user enters characters like &, ?, =, or white space characters like space, newline, or tab, the characters must be blank, meaning the characters must be transformed into other representations.

A

escaped

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

The browser rules for escaping form data are what?

A

Space → +

All other reserved characters, newline, and tab → %XX where XX is the ASCII hex value of the character

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

The web server blank the form data to determine what the original values are.

A

unescapes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

A blank is an interactive component (usually graphical) that the browser uses to interact with a user. Ex: Buttons, drop-down menus, and data entry fields.

A

widget

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

The blank allows the user to enter information into a web page.

A

<input></input> tag

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

The <input></input> tag has what five primary attributes:

A

The type attribute

The name attribute

The id attribute

The placeholder attribute

The value attribute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

The blank specifies a default value for a widget.

A

value attribute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
41
Q

The blank specifies text that first appears in a text widget, typically for giving the user a hint as to the expected value.

A

placeholder attribute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
42
Q

The blank is used to give a widget a unique identifier.

A

id attribute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
43
Q

The blank names the widget and sends the widget’s value when the widget’s form is submitted.

A

name attribute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
44
Q

The blank indicates the widget type. Common types include text, password, submit, and button.

A

type attribute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
45
Q

A blank widget is an input element with the type attribute of “text” that allows users to enter a single line of text.

A

text box

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
46
Q

The web browser displays a blank widget for an <input></input> tag with the type attribute of “submit”, which sends the associated form’s data to the server when clicked.

A

submit button

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
47
Q

The blank tag displays descriptive text associated with a specific widget. A label has a for attribute whose value should match the id attribute for the widget being labeled.

A

<label></label>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
48
Q

A blank widget is an input element specified by <textarea> opening and closing tags that allows users to enter multiple lines of text.</textarea>

A

text area

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
49
Q

A <textarea> tag has optional blank and blank attributes to specify the initial size of the text area.</textarea>

A

rows and cols

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
50
Q

An blank is a widget that allows the user to interactively pick a choice using a popup or other guided selection method.

A

input picker

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
51
Q

The blank is an input picker that allows the user to enter a date or choose a date from a calendar popup.

A

date picker

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
52
Q

The basic syntax for the date picker is blank.

A

<input></input>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
53
Q

Two common attributes for the date input are blank and blank.

A

min (the earliest date permitted)
max (the latest date permitted)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
54
Q

Clicking on the blank creates a color selector popup that helps the user explore and choose a color.

A

color picker

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
55
Q

The basic syntax for the color picker is blank.

A

<input></input>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
56
Q

The blank ensures user input is a valid number.

A

number input

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
57
Q

The basic syntax for the number input is blank

A

<input></input>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
58
Q

The blank and blank attributes are commonly used with the number input.

A

min
max

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
59
Q

The blank widget allows the user to select a value by dragging a sliding control along the length of a line.

A

range input

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
60
Q

The basic syntax for the range input is blank

A

<input></input>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
61
Q

Three commonly used attributes for the range input are blank, blank and blank

A

min, max, and value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
62
Q

A blank is the combination of a text box and drop-down menu into a single widget.

A

combo box

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
63
Q

A combo box is created with an blank element, which creates the text box, and a blank element, which provides the drop-down list options.

A

<input></input>

<datalist>
</datalist>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
64
Q

Four input types exist for entering specific types of text. Name them

A

url
tel
email
search

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
65
Q

For typing a URL

A

url

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
66
Q

For typing a telephone number

A

tel

67
Q

For typing an email address

A

email

68
Q

For typing search terms

A

search

69
Q

Sets the maximum number of input characters.

A

maxlength

70
Q

Sets the maximum value that the input can have.

A

max

71
Q

Sets the minimum value that the input can have.
<!-- Date may not be earlier than July 4, 1976 -->

A

min

72
Q

Provides a regular expression that the input must match.

A

pattern

73
Q

States that the input is required and must not be left empty.

A

required

74
Q

Sets the amount by which the value can change.

A

step

75
Q

A blank is a mechanism that allows a web page element to function correctly even if the browser does not support a particular element. Good practice is to implement a blank mechanism if a particular widget is not widely supported by browsers at the time.

A

fallback

76
Q

A blank is a fallback using JavaScript code that makes certain HTML features (Ex: the date picker) work on browsers that do not natively support those features. Developers often use a JavaScript library such as Modernizr to detect which features the browser does not support, and then load one or more blank to provide fallback mechanisms for the non-supported features.

A

polyfill

77
Q

The blank element plays an audio file in a web page.

A

<audio>
</audio>

78
Q

The blank element is used inside the <audio> tag to specify an audio file to play.</audio>

A

<source></source>

79
Q

Boolean attribute that makes the audio begin playing automatically.

A

autoplay

80
Q

Boolean attribute that displays audio controls for the user to play, pause, and control the volume.

A

controls

81
Q

Boolean attribute that replays the audio upon reaching the end of the audio.

A

loop

82
Q

Boolean attribute that initially mutes the audio.

A

muted

83
Q

A browser blank is software that can properly read and interpret a file format that the browser cannot.

A

plug-in

84
Q

Different web browsers support different audio formats, so multiple <source></source> tags can be used to supply alternate file formats. The blank and blank formats have wide browser support.

A

MP3
AAC

85
Q

Blank is designed to be the successor of the MP3 format with better sound quality.

A

AAC (Advanced Audio Coding) .aac

86
Q

The sound portion of an MPEG file. Most popular format for music players.

A

MP3 .mp3

87
Q

Open-source audio coding format developed by Xiph.Org Foundation.

A

Ogg Vorbis .ogg

88
Q

Developed by Microsoft and IBM, mainly for storing uncompressed audio on Windows.

A

Wave (Waveform Audio File Format) .wav

89
Q

The blank element displays a video in a web page.

A

<video>
</video>

90
Q

The blank element is used in a <video> tag to specify the name of the video file to play.</video>

A

<source></source>

91
Q

Boolean attribute that makes the video begin playing automatically.

A

autoplay

92
Q

Boolean attribute that displays video controls for the user to play, pause, and control the volume.

A

controls

93
Q

Boolean attribute that replays upon reaching the end of the video.

A

loop

94
Q

Boolean attribute that initially mutes the video.

A

muted

95
Q

Specifies the pixel width of the video’s display area.

A

width

96
Q

Some browsers will not autoplay a video unless the video is blank.

A

muted

97
Q

blank, blank, and blank are ideal video formats for playing video on the web.

A

MP4, WebM, and Ogg

98
Q

Developed by the Moving Pictures Expert Group. m4a is audio only, but mp4 may contain video.

A

MPEG-4 or MP4 .m4a
.mp4

99
Q

Open video compression format developed by Xiph.Org Foundation.

A

Ogg Theora
.ogg
.ogv
.ogm

100
Q

Open media format developed by Mozilla, Opera, Adobe, and Google for the web.

A

WebM .webm

101
Q

The audio and video elements can be controlled with blank. Ex: Blank can start and stop audio, change the volume, and jump to a specific location in a video.

A

JavaScript

102
Q

A YouTube video may be embedded in a web page with the blank element.

A

<iframe>
</iframe>

103
Q

The blank element allows a web page to be embedded in a rectangular area of the current web page.

A

<iframe>
</iframe>

104
Q

The <iframe> element uses the blank to specify the URL of the web page to display and the blank and blank attributes to define the width and height in pixels of the rectangular iframe.

A

src attribute
width and height

105
Q

The blank tag allows a web page to include executable code, which the browser assumes to be JavaScript unless indicated otherwise.

A
<script>

</script>
106
Q

The optional blank is used to indicate the content type when the content is not JavaScript.

A

type attribute

107
Q

The blank provides the URL of an external file containing JavaScript code.

A

src attribute

108
Q

If a

 tag does not have the src attribute, then the blank is contained directly within the tag.
A

JavaScript code

109
Q

A common error is to forget the blank tag when using the src attribute. Even when the JavaScript code is located in a separate external file, the blank tag must be included.

A

closing </script>

110
Q

Good practice is to use the src attribute to separate content and functionality and promote modularity. An blank file can be edited separately from an HTML file, which allows a web page’s interactive content to be updated even if the content is unchanged. A separate JavaScript file can also be reused on many web pages to provide the same functionality for different pieces of content. Additionally, when the JavaScript file is separate, a browser that doesn’t understand JavaScript, such as a screenreader for blind users, can avoid downloading the JavaScript file that will not be used.

A

external JavaScript

111
Q

The blank tag allows the web page to introduce presentational directives, usually CSS.

A

<style>

</style>
112
Q

A <style> tag is placed in an HTML document prior to the blank, because the style section is designed to describe the presentation of the entire document.</style>

A

<body> tag
</body>

113
Q

Although only needed for non-CSS content and rarely used, the <style> tag has an optional blank that describes the content inside the tag.</style>

A

type attribute

114
Q

For tags that have a closing tag, always use the blankl to mark the end of the tag content. Ex: Standard HTML does not require closing </p> tags because the web browser can infer the ending of a paragraph, but always including the </p> closing tag to end the paragraph explicitly is safer. A common error is to expect all web browsers to add a missing closing tag at the same location in the HTML.

A

closing tag

115
Q

A blank is an open tag that also closes by putting a forward slash at the end of the tag. Ex: <br></br>. Standard HTML does not require or promote using self-closing tags for void elements.

A

self-closing tag

116
Q

Always use blank around attribute values. Ex: Use value=”Start” instead of value=Start. While HTML does not require quotes around an attribute value that does not contain a space, a common error is forgetting the quotes for attribute values that contain spaces. Ex: value=Start animation is illegal and results in an error.

A

quotes

117
Q

Although either double or single quotes are acceptable around HTML attribute values, good practice is to use blank, which in general results in more readable HTML. Ex: Use value=”Start” instead of value=’Start’. Inconsistent use of quotes can also lead to problems when using some web development frameworks, which assume the developer uses double quotes.

A

double quotes

118
Q

If a double quote (“) needs to be placed within an attribute value, the internal double quote must be escaped. A special character such as the double quote can be escaped within an attribute value by placing the blank before the special character, causing that character to lose any special meaning. Ex: alt=”Dwight D. "Ike" Eisenhower”.

A

backslash character ()

119
Q

A blank is an attribute that is true when present and false when absent. Ex: The checked attribute for a checkbox widget is a boolean attribute. If the checked attribute is set, the checkbox is initially selected.

A

boolean attribute

120
Q

Older versions of HTML required all attributes to have values, so developers would use checked=”checked” to indicate the checked attribute was true. Browsers continue to support the older syntax, but good practice is to only use the attribute name for a boolean attribute without specifying a blank

A

value

121
Q

Good practice is to use blank for all tags and attributes. Ex: Use <p> and value=”Start” instead of <P> and VALUE=”Start”.

A

lowercase

122
Q

Each blank should start on a new line. Ex: A <p>, <table>, or <ol> element should always begin on a new line. To highlight the nature of block elements, inline elements should only start on a new line for readability purposes. Ex: A <a>, <span>, or <q> element may start anywhere on a line.</q></span></a>

A

block element

123
Q

Nested elements should be indented at least blank. Indentation should be consistent throughout a file.

A

two spaces

124
Q

Always provide blank and/or blank for widgets.

A

labels
placeholders

125
Q

Good practice is to not use blank or blank CSS and JavaScript.

A

embedded or inline

126
Q

CSS is designed for blank; blank are designed for holding tabular data. Good practice is to avoid using tables to manage page layout and to avoid using CSS to manage tabular data.

A

layout
tables

127
Q

Good practice is to validate HTML using an blank and revise the HTML to eliminate any errors or warnings. One of the big challenges in web development is to make sure that the web pages are processed correctly by as many browsers as possible.

A

HTML validator

128
Q

blank are elements that have meaning to both the developer as well as the web browser.

A

Semantic elements

129
Q

Examples of non-semantic elements:
blank and blank

A

<div> and <span>
</span></div>

130
Q

Examples of semantic elements: blank, blank and blank - Clearly defines its content.

A

<form>, <table>, and <article>
</article></table></form>

131
Q

The blank element defines a section in a document.

A

<section>
</section>

132
Q

Examples of where a blank element can be used:

Chapters
Introduction
News items
Contact information

A

<section>
</section>

133
Q

A web page could normally be split into sections for blank, blank, and blank.

A

introduction, content, and contact information

134
Q

The blank element specifies independent, self-contained content.

A

<article>
</article>

135
Q

An blank should make sense on its own, and it should be possible to distribute it independently from the rest of the web site.

A

article

136
Q

Examples of where the blank element can be used:

Forum posts
Blog posts
User comments
Product cards
Newspaper articles

A

<article>
</article>

137
Q

you will find HTML pages with blank elements containing blank elements, and blank elements containing blank elements.

A

<section>
<article>
<article>
<section>
</section></article></article></section>

138
Q

The blank element represents a container for introductory content or a set of navigational links.

A

<header>
</header>

139
Q

A blank element typically contains:

one or more heading elements (<h1> - <h6>)
logo or icon
authorship information

A

<header>
</header>

140
Q

You can have several <header> elements in one HTML document. However, <header> cannot be placed within a blank, blank or another blank element.

A

<footer>, <address> or <header>
</header></address></footer>

141
Q

The blank element defines a footer for a document or section.

A

<footer>
</footer>

142
Q

A blank element typically contains:

authorship information
copyright information
contact information
sitemap
back to top links
related documents

A

<footer>
</footer>

143
Q

You can have several <footer> elements in blank.

A

one document

144
Q

The blank element defines a set of navigation links.

A

<nav>
</nav>

145
Q

The blank element is intended only for major blocks of navigation links.

A

<nav>
</nav>

146
Q

The blank element defines some content aside from the content it is placed in (like a sidebar).

A

<aside>
</aside>

147
Q

The <aside> content should be blank related to the surrounding content.

A

indirectly

148
Q

The blank tag specifies self-contained content, like illustrations, diagrams, photos, code listings, etc.

A

<figure>
</figure>

149
Q

The blank tag defines a caption for a <figure> element.</figure>

A

<figcaption>
</figcaption>

150
Q

The <figcaption> element can be placed as the first or as the last child of a blank element.

A

<figure>
</figure>

151
Q

The blank element defines the actual image/illustration.

A

<img></img>

152
Q

According to the W3C: “A blank allows data to be shared and reused across applications, enterprises, and communities.”

A

semantic Web

153
Q

Defines independent, self-contained content

A

<article>
</article>

154
Q

Defines content aside from the page content

A

<aside>
</aside>

155
Q

Defines additional details that the user can view or hide

A

<details>
</details>

156
Q

Defines a caption for a <figure> element</figure>

A

<figcaption>
</figcaption>

157
Q

Specifies self-contained content, like illustrations, diagrams, photos, code listings, etc.

A

<figure>
</figure>

158
Q

Defines a footer for a document or section

A

<footer>
</footer>

159
Q

Specifies a header for a document or section

A

<header>
</header>

160
Q

Specifies the main content of a document

A

<main>
</main>

161
Q

Defines marked/highlighted text

A

<mark></mark>

162
Q

Defines navigation links

A

<nav>
</nav>

163
Q

Defines a section in a document

A

<section>
</section>

164
Q

Defines a visible heading for a <details> element</details>

A

<summary>
</summary>

165
Q

Defines a date/time

A

<time>
</time>