CIW Lesson 2 Test
Which statement accurately explains best practices regarding the case of characters in HTML documents?
All tags except <!DOCTYPE> should be typed in lowercase letters.
How will the words Administrators, Programmers, Designers and Writers appear on a Webpage when displayed in a browser?
As a list of bulleted items
How will the names James, Jacob, Joel and Joseph appear on a Webpage when displayed in a browser?
As a list of numbered items
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
This code failed validation. Why?
Because there should be <!DOCTYPE html> instead of <!DOCTYPE html5>
Which HTML element can be used to create a primitive table on a Webpage using tabbed data?
The <pre> tag
Which HTML element will make Webpage text appear in bold type when displayed in a browser?
The <strong> element
Which of the following does the HTML <head> tag contain?
The <title> tag
You are developing pages using HTML5 for a small business' new Website. Which HTML validator is best for you to perform a final check before you publish the site?
The W3C validator at https://validator.w3.org
Selena needs to insert a comment in a Webpage's code to ensure that other Web team members who work with the page code understand the nature of her changes. She wants to insert a comment that reads as follows: Selena wants this page to validate as HTML5 without any warnings or errors. She does not want the comment to appear to users when the page is displayed in a browser. Which line of code will achieve these two goals, assuming no other errors exist on the page?
<!-- Modified by Selena Ramirez - for HTML compliance -->
Jose is working on a Webpage for his company's intranet. He wants to insert an HTML comment within the page to let other developers know that the page validates as HTML5 and that he is the page author. Which line of code will insert the comment that Jose requires?
<!--Jose Shmoe, 2/14/2013. This code validates to HTML5-->
Roberto is creating a Webpage using HTML5. He wants to indent a quote on the page. Which element should he use to accomplish this?
<blockquote>
Which of these HTML elements is considered a text-level element?
<br>
Which HTML element will make Webpage text appear in italic type when displayed in a browser?
<em>
You are developing a Webpage using HTML5 and CSS. You want to align a paragraph of text to the right side of the page using inline CSS. Which code uses the correct syntax for this style?
<p style="text-align: right">This text will align to the right</p>
Which of the following is a block-level element in HTML?
<p>
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> uCorp produces world class audio experiences. </p>
Which code example demonstrates a valid container or non-empty tag in HTML?
<p></p>
Which of the following is an HTML phrase element that formats text in a fixed-width font?
<samp>
Your company has been getting complaints from its suppliers saying that its extranet site does not render correctly in all their employees' browsers. The suppliers want the extranet site to be fixed so that everyone can access it, regardless of browser type. When examining this problem, your Web Development manager finds that the many developers who worked on the site all used whatever HTML code version they knew best. What can the Web development team do to resolve this?
Edit the code so that it follows a single W3C HTML standard.
Which choice lists the proper terms for the HTML components that appear in this tag?
Element, attribute, value
You are assigned to modify an existing Webpage by adding several tables that contain precise wording. The Webpage had several developers working on it, each of whom was given strict instructions about text wording. All the developers belong to your team and will probably be working on the same page again after you finish your tasks. Which strategy represents a good coding practice in this situation?
Insert hidden comments to identify the nature and date of your changes.
What does the <!DOCTYPE> tag provides for a Web browser?
It informs the browser about the HTML version to use.
While reviewing some Webpage code, you notice that the HTML is written in all lowercase letters. You are not sure which version of markup language was used to create the page. Which part of the page's code can you check to verify the HTML version?
The <!DOCTYPE> tag
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 Webpage.
What is the purpose of the <link> tag in an HTML document?
To create a link to a style sheet
Mia is a Web developer working on a Web team that is currently coding some new pages for their company's site. As she creates each page, Mia adds comments to her code. Why?
To explain the purpose of code sections to other developers
What change would be necessary to make this code validate as HTML5?
Use CSS instead of the bgcolor attribute.
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.
Tags that format text as bold or italic are known as:
text-level elements.