2. <QUIZ> HTML Tags

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

All HTML code must be nested within which of the following tags? 1. <title> 2. <html> 3. <body> 4. <head>

2. <html>

Which of the following tags instructs the browser to expect a well-formed HTML document? 1. <body> 2. <!DOCTYPE html> 3. <div> 4. <head>

2. <!DOCTYPE html>

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> 1. The URL should include "new_window" at the end of it. 2. Add the target attribute, with its value set to _blank. 3. Wrap the <a> tag with a <window> tag. 4. Single quotation marks should be used instead of double quotation marks.

2. Add the target attribute, with its value set to _blank. The "_blank" value will trigger a new window when the link is clicked.

The contents of the `<title>` tag will appear where in a modern browser? 1. It does not appear anywhere. Its purpose is to inform search engines. 2. The browser's tab 3. The last line of the webpage 4. The first line of the web page

2. The browser's tab

What is the purpose of indentation and whitespace? 1. To change the display of elements in the browser. 2. To make code in an HTML file more readable. 3. To comment out code you don't need. 4. To make sure the browser correctly interprets nested elements in an HTML file.

2. To make code in an HTML file more readable.

Which of the following is the correct syntax for a comment in HTML? 1. # Comment, here 2. <-- I'm a comment --> 3. <!-- No, pretty sure I'm a comment --> 4. // I'm definitely a comment

3. <!-- No, pretty sure I'm a comment -->

The following HTML code should only exist within which of the following tags? <title>Codecademy</title> 1. <h1> 2. <!DOCTYPE html> 3. <head> 4. <body>

3. <head> The purpose of this tag is to encapsulate the metadata of a page, such as its title.

Which of the following is the current HTML standard? 1. HTML1 2. XHTML 3. HTML5 4. CSS

3. HTML5

Which of the following would create a link to a local HTML file called `aboutme.html`? 1. <a href="./aboutme.html" /> 2. <a href="https://www.aboutme.com/" /> 3. <a href="https://www.aboutme.com/">About Me</a> 4. <a href="./aboutme.html">About Me</a>

4. <a href="./aboutme.html">About Me</a> This is the proper syntax to link to a relative file.

Which of the following elements contains a web page's metadata? 1. <about> 2. <body> 3. <html> 4. <head>

4. <head>

The following code is supposed to create a link to another web page, but fails to do so. Why? <a>Codecademy</a> 1. The word "Codecademy" should be replaced with the URL to the Codecademy website. 2. The </a> closing tag should be removed. 3. The <a> element should be replaced with a <link> element. 4. The <a> element is missing the href attribute set to the URL of the Codecademy website.

4. The <a> element is missing the href attribute set to the URL of the Codecademy website.

Why should the document type declaration be included in all HTML documents? 1. Without it, the web page will not be allowed on the Internet. 2. Without it, any HTML code is invalid. 3. To specify what content will display in the browser 4. To specify the HTML standard being used in the content

4. To specify the HTML standard being used in the content


Kaugnay na mga set ng pag-aaral

Insurance Planning: Taxation of Insurance (Module 12)

View Set

Art Appreciation Ch. 13-16 Study Guide

View Set

Exam 2: Chapters 6, 8, 9, 10, & 13

View Set

Domain 4 - Information Systems Operations and Business Resilience

View Set

Accounting Statements of Cash Flow Test 4

View Set