CIW Lesson 2 Questions

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

How many heading styles are defined for HTML?

6

Roberto is creating a Web page using HTML5. He wants to indent a quote on the page. Which element should he use to accomplish this?

<blockquote>

Which HTML element will make Web page text appear in italic type when displayed in a browser?

<em>

Samantha is creating a Web page using HTML5. The page uses image-based navigation buttons. To help ensure accessibility, Samantha wants to add text-based navigation to the page. Which HTML5 element should she use to accomplish this?

<footer>

Which code example demonstrates a valid container or non-empty tag in HTML?

<meta/>

Consider the following line from an HTML document: <title> Site Development Associate </title> This code shows an example of:

A Container Tag

The <br/> tag defines:

A Line Break

The opening <p> and closing </p> tags define:

A Paragraph

Consider the following line from an HTML document: &#60;title/&#62;Site Development Associate This code shows an example of:

A stand-alone non-empty tag.

Where is the slash ( / ) character placed in a stand-alone non-empty HTML tag?

After the element name (before the closing wicket).

The opening <body> and closing </body> tags encompass:

All content to be displayed on the page through the user agent.

Which statement accurately explains case sensitivity in HTML documents?

All tags except <!DOCTYPE> should be typed in lowercase letters.

Which of the following is required in an HTML tag?

An Element

HTML markup tags consist of:

An element, an attribute and a value. No comment.

HTML tags:

Are not case-sensitive but should always be typed in lowercase letters.

Why is it preferable to use <strong> in lieu of <b> to apply the bold text style?

Because <strong> can be used both to denote bold text when printed and strongly spoken text when output through an audio device.

Which of the following is an example of effective Web site file structure?

Creating a directory of HTML pages that contains subfolders with images and files used in each page.

Which HTML heading style renders text the same size as normal text?

Heading Level 4

The default or starting page of a Web site is called the:

Home Page

The smallest unit that a text-level element can affect is:

One Character

What automatically separates individual list items when you create an ordered or numbered list?

Single Line Breaks

Tags that format text as bold or italic are known as:

Text-Level Elements

Which of the following specifies the markup language and version used by your HTML file?

The <!DOCTYPE> Tag

Text surrounded by the <b> and <strong> tags both result in bold text. How do the tags differ?

The <b> element applies the bold font style, whereas <strong> applies a heavier weight to the text relative to the surrounding text.

Which of the following does the HTML <head> tag contain?

The <title> Tag

With which of the following should you specify the text that will appear when your Web page is bookmarked or added to a browser's Favorites folder?

The <title> Tag

Which of the following statements about HTML5 is true?

The DTD file is no longer required in HTML5.

Consider the following code: <h1>CIW Site Development Associate Skills </h1> <ul> <li>Project Management</li> <li>HTML Coding</li> <li>GUI Authoring</li> </ul> Which of the following statements about this code is true?

This code will create a bulleted list.

What is the purpose of the <link> tag in an HTML document?

To create a link to a style sheet.

In the HTML5 standard, what is the recommended way to center a paragraph of text?

Use an inline CSS style attribute in the paragraph tag.

What will happen if you neglect to include a <!DOCTYPE> tag in your HTML document?

Your page will not validate with a markup validator.

You are writing code that you want to validate to the HTML5 standard. Which of the following code examples can be used to ensure that a line of content will appear in the browser as standard body text?

p> Habitat for Humanity builds homes and hope around the world. </p>

Consider the following line from an HTML document: Site Development Associate<br> This code shows an example of:

An Empty Tag

A block-level element is a markup element that affects at least:

An Entire Paragraph

A numbered list is considered to be:

An Ordered List

A bulleted list is considered to be:

An Unordered List

Why should you avoid placing paragraph breaks around heading styles in your HTML code?

Because heading styles are automatically preceded and followed by paragraph breaks.

When you prepare your development environment to create Web page code, why should you set file preferences to view file name extensions?

Because you will be working with various file types that may have the same or similar names.

Consider the following HTML code: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <link rel="stylesheet" type="text/css" href="stylesheet.css" title="stylesheet"/> <title> This is an HTML5 document </title> </head> <body bgcolor="teal"> <p>Hello, world</p> </body> What change would be necessary to make this code validate as HTML5?

Close the <html> tag.

HTML tags that come in pairs are called:

Container Tags

Which HTML tag type consists of a pair of opening and closing tags?

Container Tags

You can use the <pre> tag to:

Display preformatted tabular data if you have no time to format it.

Which of the following is an example of correct HTML tag nesting?

<h1><em> Site Development Associate </em></h1>

You are developing a Web page using HTML5 and CSS. You want to align a paragraph of text to the right side of the page. Which code uses the correct syntax for this style?

<p style="text-align: right">This text will align to the right</p>

You are preparing to begin developing your Web page code. Which step will help you test your code in various environments?

Installing multiple browsers.

Which HTML tag should you use if you want to center and indent a block of text?

The <blockquote> Tag

Consider the following HTML5 code: <!DOCTYPE html> <html lang="en"> <head> <title>My Favorite Quotes</title> <link rel="stylesheet" href="css/styles.css"/> </head> <body/> <p> This Web site is devoted to my favorite quotes. These iconic quotes have been used time and again but will never lose their appeal. </p> <p> Hamlet, from his soliloquy in William Shakespeare's play "Hamlet" </p> <blockquote> "To be or not to be, that is the question." </blockquote> </html> This code does not validate as HTML5. Why?

The <body> tag is not properly closed.

A character set is the group of symbols used to render text on a page. In which of the following should you specify the character set for an HTML document?

The <meta> Tag

Consider the following HTML code: <h1>CIW Site Development Associate Skills </h1> <ul> <li>Project Management</li> <li>HTML Coding</li> <li>GUI Authoring</li> </ul> Which of the following statements about this code is true?

The line breaks between elements make the code easy to read, which is considered good coding practice.

Between which tags must all HTML code for a document reside?

The opening <html> and closing </html> tags.

What happens when you place text between the <!-- and --> tags in your HTML source code?

The text will be "commented out"and will not appear on the Web page.

For what should you use the <link> tag in the <head> section of your HTML document?

To reference a style sheet for the page.


Set pelajaran terkait

Maths, FactorsAndMultiples, class 6

View Set

CH. 21 : The Newborn at Risk: Congenital Disorders

View Set

Chapter 5: Flow control -sample exam questions

View Set

Personal Finance 1904 Book Quizzes

View Set