Docsity

WGU D276Test HTML and Accessibility with Complete Solutions, Exams of Advanced Education

Toggle sidebar
bg1
WGU D276Test: HTML and Accessibility
with Complete Solutions
1.
Use the given text to answer the following
question: The weather is hot.
Which code snippets can be used to increase the weight of the text's font
to indicate that it is important?
Choose 2 answers.
•<p><strong>The weather is hot.</strong></p>
•<p><em>The weather is hot.</em></p>
•<p><i>The weather is hot.</i></p>
•<p><mark>The weather is hot.</mark></p>
•<p><b>The weather is hot.</b></p>
2.
Use the given text to answer the following
question: I love you.
Which code snippet can be used to style the word "love" in bold?
•<p>I <strong>love</strong> you.</p>
•<p>I <em>love</em> you.</p>
•<p>I <mark>love</mark> you.</p>
•<p>I <span>love</span> you.</p>
3.
Use the given text to answer the following
question: The mother told her child, “Get ready
for school.”
Which code snippet should be used to create this content?
•<p>The mother told her child, <q>Get ready for school.</q></p>
•<p>The mother told her child, <b>Get ready for school.</b></p>
•<p>The mother told her child, <mark>Get ready for school.</mark></p>
•<p>The mother told her child, <cite>Get ready for school.</cite></p>
4.
Use the given text to answer the following question:
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f

Partial preview of the text

Download WGU D276Test HTML and Accessibility with Complete Solutions and more Exams Advanced Education in PDF only on Docsity!

WGU D276Test: HTML and Accessibility

with Complete Solutions

1. Use the given text to answer the following question: The weather is hot. Which code snippets can be used to increase the weight of the text's font to indicate that it is important? Choose 2 answers. -

The weather is hot.

-

The weather is hot.

-

The weather is hot.

-

The weather is hot.

-

The weather is hot.

2. Use the given text to answer the following question: I love you. Which code snippet can be used to style the word "love" in bold? -

I love you.

-

I love you.

-

I love you.

-

I love you.

3. Use the given text to answer the following question: The mother told her child, “Get ready for school.” Which code snippet should be used to create this content? -

The mother told her child, Get ready for school.

-

The mother told her child, Get ready for school.

-

The mother told her child, Get ready for school.

-

The mother told her child, Get ready for school.

4. Use the given text to answer the following question:

The Empire State Building 20 W 34th St New York, NY 10001 Which code snippet should be used to create this content?

  • -

    The Empire State Building 20 W 34th St New York, NY 10001

    -

    The Empire State Building 20 W 34th St New York, NY 10001

    -

    The Empire State Building 20 W 34th St New York, NY 10001

    -

    The Empire State Building

    20 W 34th St New York, NY 10001

    **5.** Use the given text to answer the following question: An article about html It explains how headings work! Which code snippet should be used to create this content?

An article about html

It explains how headings work!

An article about html

It explains how headings work!

An article about html

An article about html

It explains how headings work!

▪ banana ▪ cherry ▪ date

8. Use the given code snippet to answer the following question:

**<p>What is your favorite fruit?</p>** **** **Apple<br />** **** **Banana<br />** **** **Cherry** **<p></p>

How will this code be displayed in a browser?** o apple o banana o cherry o Click Me ▪ apple ▪ banana ▪ cherry ▪ Click Me o apple o banana o cherry o Submit ▪ apple ▪ banana ▪ cherry

▪ Submit

9. Which set of form elements allows the selection of only one item from the group?

1 2 3 1 2 3 1 2 3

10. Use the given code to answer the following question: ** ** Title ****

  1. Numbered List
  2. A form with three radio buttons for fruit choices and a Click Me button.
  3. A.
  4. The text "What is my color?" will be purple. HTML Test Questions
  5. Use the given HTML document to answer the following question:

Title

The border-radius property defines the radius of the element's corners.

How will this code be displayed in a browser?

  1. Use the given code snippet to answer the following question:

Please subscribe to our fun Monthly Newsletter!

How will this code be displayed in a browser? Please subscribe to our **fun Monthly Newsletter!** Please **subscribe** to our fun **Monthly Newsletter!** Please subscribeto our **fun Monthly Newsletter!** Please _subscribe_ to our fun **Monthly Newsletter!** 13. Which attribute is used by all form fields? valu e href nam e src 14. Use the given code snippet to answer the following question:

text text

text text

  1. Where will a browser find a file named index.html in the URL path of ../products/product_1.html? In a directory that begins one level higher than the current page In a directory that begins at the same level as the current page In the root directory In the subdirectory
  2. Which image file format supports transparency? JPEG TIFF BMP PNG
  3. Which tag is optional when creating an HTML table?
  1. Which two attributes should be used within an image tag? (Choose 2 answers) title

alt Checkmark Checkmark align src Checkmark Checkmark float

  1. Which HTML5 markup creates a table with three columns and two rows?

We Sell Fruit

Apples Oranges

We Sell Fruit

Apples Oranges Bananas Pears

45 55 65 75

45

We Sell Fruit

Apples Oranges

45 55

HTML, CSS, and XML Test Questions

  1. Which pair of characteristics is true of XML? a) Case sensitive and allows errors b) Case sensitive and disallows errors c) Case insensitive and allows errors d) Case insensitive and disallows errors

  2. Which pair of characteristics differentiate HTML from XML? a) HTML is dynamic; XML is extensible. b) HTML is static; XML is extensible. c) HTML is static; XML has a limited number of tags. d) HTML is dynamic; XML has a limited number of tags.

  3. Which file type is used by businesses to interchange website data with many different types of applications? a) XML b) HTML c) CSS d) SQL

  4. What is an example of a semantic element? a) b) c) d) a) b) c) d)

  5. Which HTML tag should contain introductory content? a) b) c) d)

  6. Which HTML block demonstrates the correct use of semantic elements? a)

Welcome to my site

We are the Welcome Council.

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Vivamus tincidunt erat eleifend mi elementum varius.

Our projects

Project 1

Lorem ipsum dolor sit amet, consectetur adipiscing elit

Project 2

Lorem ipsum dolor sit amet, consectetur adipiscing elit

b)

Welcome to my site

We are the Welcome Council.

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Vivamus tincidunt erat eleifend mi elementum varius.

Project 1

Lorem ipsum dolor sit amet, consectetur adipiscing elit

Project 2

  1. Which CSS implementation technique allows element style updates to multiple pages from a single location? a) External CSS b) Internal CSS c) Inline CSS d) Embedded CSS
  2. Which technique for implementing CSS in an HTML file is used for page-level style declarations? a) Internal CSS b) External CSS c) Style attribute d) Link tag Answers
  3. Correct Answer : b) Case sensitive and disallows errors
  4. Correct Answer : b) HTML is static; XML is extensible.
  5. Correct Answer : a) XML
  6. Correct Answer : c)
  7. Correct Answer : d)
  8. Correct Answer : a)
  9. Correct Answer : a) (The first HTML block)
  10. Correct Answer : b) Linking to a specific location on the same page
  11. Correct Answer : a) External CSS
  12. Correct Answer : a) Internal CSS HTML and CSS Test Questions
  13. Which tag is used to reference an external CSS sheet within an HTML document? a) b) c)
  14. Use the given code snippet to answer the following question:

Which code should be used to display the text in yellow? a) This should be yellow b) This should be yellow c) This should be yellow d) This should be yellow

  1. Which CSS selector styles the first character of a sentence differently? a) ::first-line b) :first-child c) :first-of-type d) ::first-letter
  2. Which CSS selector represents the first-child pseudo-class selector? a) .first-child b) #first-child c) :first-child d) ::first-child
  3. Use the given code snippet to answer the following question:

Pay attention!

How will this code be displayed on a 1200px monitor? a) Red background and red border b) Blue text and red border c) Blue text and blue border d) Red text and blue border 37. What is a unit of absolute size? a) px b) em c) rem d) vw
  1. Use the given code snippet to answer the following question: div { width: 400px; padding: 10px; border: 5px solid gray; margin: 0; } What is the total width of the element? a) 430px b) 415px c) 410px d) 400px
  2. A company needs the following content to display on its website: A website developer has created the following code:

Page Title

one two ten

Which style rules should the developer include in their code so the content displays as shown? a) #one { float: left; } #two { clear: both; } #ten { float: right; } b) #one { float: left; } #two { float: none; } #ten { float: right; } c) #one { left: 100px; } #two { float: none; } #ten { right: 100px; } d) #one { left: 100px; } #two { clear: none; } #ten { right: 100px; }

  1. A website developer uses the following code to build a table:

First Name Last Name

John Smith

Which editor should the developer use to create this content? a) WYSIWYG b) Text c) GUI d) Page

  1. Use the given code snippet to answer the following question: p { padding: 5px 10px 15px; height: 20px; width: 60px; border: 5px solid #000000; } What is the total width and total height of the paragraph element? a) width = 90px and height = 50px b) width = 80px and height = 40px c) width = 85px and height = 45px d) width = 75px and height = 55px
  2. Use the given code snippet to answer the following question: div { display: block; overflow: hidden; margin: 10px 15px; padding: 5px 15px 15px 0px; border: 20px solid blue; height: 20px; width: 60px; } Which side of the box model, including padding, border, and margin values, is thickest? a) Right b) Top c) Bottom d) Left
  3. Which code snippet represents valid HTML syntax? a)

    b) p::before { content: "child"; } c) Boss d) alert("hello world");
  4. Which feature helps the user find content throughout a website? a) Sitemap b) Image map