0% found this document useful (0 votes)
301 views

Week 2

The document contains questions about HTML and web accessibility. It tests knowledge of topics like DOM, HTML structure and elements, links and URLs, headings, lists, comments, images, and alternative text. Correct answers are provided for multiple choice questions about tags, attributes, and best practices for accessible content.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
301 views

Week 2

The document contains questions about HTML and web accessibility. It tests knowledge of topics like DOM, HTML structure and elements, links and URLs, headings, lists, comments, images, and alternative text. Correct answers are provided for multiple choice questions about tags, attributes, and best practices for accessible content.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

1.

Question 1
DOM stands for:
1 point

Data oriented model

Document oriented model

Data object model

Document object model


2.
Question 2
HTML is organized into what type of structure?
1 point

tree

stack

graph

queue
3.
Question 3
There can be only one <body> element in a document.
1 point

True

False
4.
Question 4
Which two visual elements appear in the <head> section of the HTML?
1 point

title and heading

title and favicon

title and h1

main and footer


5.
Question 5
You can choose to validate your code at https://validator.w3.org/ by uploading files or by providing a
URL.
1 point

True

False
6.
Question 6
HTML5 headings come in how many different rankings?
1 point

6
7.
Question 7
All HTML elements can have attributes.
1 point

True

False
8.
Question 8
Which special entity would you use to insert an extra blank space (not blank line) into your
webpage?
1 point

&space;

&copy;

&nbsp

<br>

<space>;
9.
Question 9
Which element creates a bulleted list?
1 point

li

ul
bl

ol
10.
Question 10
You can add comments to your HTML source by using the following syntax:
1 point

<!-- Write your comments here →

# Write your comments here

# Write your comments here #

/* Write your comments here*/


11.
Question 11
Which semantic tag is used to identify a section that contains info such as copyright data, related
documents, and links to social media?
1 point

main

footer

nav

header
12.
Question 12
Which semantic tag specifies independent, self-contained content?
1 point

main

section

article

summary
13.
Question 13
What is the correct HTML for inserting an image?
1 point

<image src="images/logo.gif" alt="logo">


<img alt="logo">logo.gif</img>

<img href="images/logo.gif" alt="logo">

<img src="images/logo.gif" alt="logo">


14.
Question 14
Which HTML attribute specifies descriptive text for an image if the image cannot be displayed?
(Select all that apply.)
1 point

source

title

None of the answers are correct

alt

desc
15.
Question 15
The img tag has how many required attributes to display an accessible image?
1 point

3
16.
Question 16
It is better to skip the alt attribute altogether than include an empty alt attribute (alt = “”).
1 point

True

False
17.
Question 17
A screen reader will automatically provide a visual description of emojis.
1 point

True

False
18.
Question 18
Which of the following are sources that were recommended in the Finding Usable Materials reading?

(Note, you must select all correct answers to get full credit)
1 point

Freepik

Google Image Search

Openverse

Pexels

Everypixel
19.
Question 19
What is a potential issue when using both a height and width attribute on an image?
1 point

It is incorrect to include a height and a width, you can only include one.

It is incorrect to include a height or a width, you should never include size as an attribute.

The image may appear skewed if the change in the height isn’t proportional to the change in the
width
20.
Question 20
Which attribute on an <a> element specifies whether a hyperlink should be opened in the same
window or a new one?
1 point

window

target

src

href
21.
Question 21
You can create an on-page link by first setting which attribute on the element you wish to link to?
1 point

href

id
class

src
22.
Question 22
All links should be in the <nav> element.
1 point

True

False
23.
Question 23
The line break element requires only an opening tag and must not have a closing tag.
1 point

True

False
24.
Question 24
What is the lowest level HTML heading element?
1 point

h1

h4

h5

h6
25.
Question 25
Which attribute references the location of new content in an anchor tag?
1 point

http

href

dest

src
26.
Question 26
A local link (a link to a page within the same website) is specified with a relative URL, i.e without any
"https://www" at the front.
1 point

True

False
27.
Question 27
A relative URL can link to which of the following:
1 point

a local file in the same folder

a local file in a different folder

a different location in the same file.


28.
Question 28
Have you been typing in the code as we go along?
1 point

Have you been typing in the cod

Your answer cannot be more than 10000 characters.


29.
Question 29
Can you think of other reasons that alternative text is important in your code?
1 point
Accessibility,User Experience,S

Your answer cannot be more than 10000 characters.


--
8.
Question 8
Whitespace added to an HTML document between span-level elements will generally be ignored by
the browser and are not added to increase spacing on the rendered HTML page.
1 point

True

False
9.
Question 9
Which element creates a numbered list?
1 point
li

ul

bl

ol
5.
Question 15
It is good practice to start all of your alt text with “Image of a …” followed by a description.
1 point

True

False
16.
Question 16
When setting an alt attribute for a non-essential image you should:
1 point

remove the alt attribute

None of the answers are valid.

use the empty string

remove from all but the large screen view


17.
Question 17
A screen reader will automatically provide a visual description of icons.
1 point

True

False

21.
Question 21
The anchor element <a> can create hyperlinks to different parts of the same HTML document.
1 point

True

False

Question 26
An absolute reference includes the URL protocol in the href.
1 point

True

False
7.
Question 7
Attributes consist of a name and a value connected by which symbol(s)?
1 point

“”

;
11.
Question 11
Which semantic tag is used to identify a section of the page that links to other pages or to parts
within the page?
1 point

main

nav

footer

header

21.
Question 21
You can create an on-page link by first setting which attribute on the element you wish to link to?
1 point

id

href

class

src
24.
Question 24
When deciding between using an h2 heading or an h3 heading you should base your decision on
how big you want the text to be. You may need to review earlier Week 1 material about HTML5
Tags.
1 point

True

False
26.
Question 26
A relative reference includes the URL protocol in the href.
1 point

True

False

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy