HTML Web Design Test #1

Ace your homework & exams now with Quizwiz!

The correct syntax for a comment in HTML should look like which of these?

<!--Comment-->

Which of the following tags instructs the browser to expect a most current, well-formed HTML document?

<!DOCTYPE html>

Which of the following would create a link to a local HTML file called aboutme.html?

<a href="aboutme.html">About Me</a>

Which of the following tags would contain the HTML for a web page's visible content?

<body>

Which is a self-closing tag

<br/>

Which of the following elements will directly affect the vertical spacing in an HTML layout?

<br/>

What HTML code will most web browsers display as italics?

<em>Hello</em>

Which of the following best describes why HTML comments are important to web development?

clarifies code and make it easier to understand

The following HTML code results in no visible output in the browser. Why? <ol> </ol>

list items must be added

The following code is supposed to to create a link to another web page, but fails to do so. Why? <a>Codecademy</a>

missing the href attribute

What are the two components of HTML attributes?

name, value

How many different heading elements does HTML support?

6

According to the W3C recommendation, what's the appropriate way of indenting nested HTML elements?

2 spaces

The following HTML code should only exist within which one of the following tags? <title>Codecademy</title>

<head>

Which of the following tags contains metadata about the webpage?

<head>

All HTML code must be nested within which element?

<html>

Which tag should you use to indicate to the browser that a group of links is the navigation bar for the website?

<nav>

Which of the following elements can be used to add a paragraph to a web page?

<p>

What is the correct syntax for a paragraph element:

<p>Paragraph</p>

Which element should surround an entire table of data?

<table>

Which of the following tags is used to separate the body of the table from its headers and footers?

<tbody>

Which code snippet would allow a cell that extends across two columns?

<td colspan="2">Out of Town</td>

Which element adds information in cell of an HTML table?

<td>

Which of the following tags is used to separate the footer of the table from its body?

<tfoot>

Which of the following elements would be used for the cells of information in a table heading section?

<th>

Which of the following elements would be used to group heading content of a table?

<thead>

What element is used to start a new row in an HTML table?

<tr>

Which of the following is the current HTML standard?

HTML5

The following code creates a link to another page. Which of the following will cause the page to open in a new browser window? <a href="https://www.codecademy.com/">Codecademy</a>

add target attribute, which sets value to __blank.

What is the correct definition of an HTML element?

an html tag and the content that it contains or markups

The contents of the <title> tag will appear where in a modern browser?

browser's tab or title bar

What would the output code change if you changed a group of list items FROM being surround by <ul> and </ul> TO being surrounded by an <ol> and </ol>

bullet points in the outpoint would change to numbers

The acronym "HTML" stands for which of the following?

hypertext markup language

What needs to be added to the opening tag of an element to be able to use it as an anchor that links to a different section of the same page?

id="target"

Which of the following is the best way of improving the following code? <img src="https://www.codecademy.com/laptop.jpg" />

include an alt attribute and a description of the image

The following code is supposed to display an image, but fails to do so. Why? <img https://www.example.com/laptop.jpg />

the src attribute is missing and must be set equal to the image url, enclosed in double quotation marks

Why should the document type declaration be included in all HTML documents?

to let the browser know what version of html the page was written in

What is the purpose of indentation and whitespace?

to make code more readable


Related study sets

Social documentary, photojournalism, street photography

View Set

PMBOK 5th Ed. - Chapter 8 - Project Quality Management

View Set

nutrition chapter 1-3 quiz from book

View Set

Fundamentals of Neuroscience Exam 3

View Set