1. <QUIZ> Introduction to HTML

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Which element is the parent of <p>My Paragraph</p>? <body> <p>Paragraph 1</p> <div> <a href="http://www.codecademy.com">Codecademy</a> <p>My Paragraph</p> </div> </body>

<div>

The abbreviation HTML stands for which of the following? 1. HyperText Markdown Language 2. HyperTransfer Markup Language 3. HyperTransfer Markdown Language 4. HyperText Markup Language

4. HyperText Markup Language

What is the correct definition of an HTML element? 1. The first, or opening, HTML tag. 2. HTML code that does not require opening or closing tags. 3. An HTML tag and the content that it contains or marks up. 4. The second, or closing, HTML tag. Closing tags have a forward slash (/) inside of them.

3. An HTML tag and the content that it contains or marks up.

Which of the following is the correct syntax for the paragraph HTML element? 1. <p>I am a paragraph</p> 2. <p>I am a paragraph<\p> 3. <p>I am a paragraph<p/> 4. <p/>I am a paragraph<p>

1. <p>I am a paragraph</p>

The following code results in no visible output to the browser. Why? <ol> </ol> 1. List items must be added to the list. 2. <ol> is not a valid HTML element. 3. The <ol> tag must be replaced with a <ul> tag. 4. The <ol> tag signifies "old" information, meaning the contents will never display.

1. List items must be added to the list.

Which of the following tags would contain the HTML for a web page's visible content? 1. <about> 2. <body> 3. <html> 4. <cont>

2. <body>

The following code is supposed to display an image, but fails to do so. Why? <img https://www.example.com/laptop.jpg /> 1. The <img> tag can only display .png or .svg image formats. 2. The src attribute is missing and must be set equal to the image URL, enclosed in double quotation marks. 3. The image URL should be all uppercase. 4. The <img> tag should be replaced with an <image> tag.

2. The src attribute is missing and must be set equal to the image URL, enclosed in double quotation marks.

What HTML code will most web browsers display as italics? 1. <strong>Hello</strong> 2. <p>Hello</p> 3. <em>Hello</em> 4. <div>Hello</div>

3. <em>Hello</em>

How many different heading elements does HTML support? 1. <h3> 2. <h1> 3. <h6> 4. <h9>

3. <h6>

How would the output of the code below change if <ul> and </ul> were changed to <ol> and </ol>, respectively? <ul> <li>Lorem</li> <li>Ipsum</li> <li>Horribilis</li> </ul> 1. The code would no longer output any visible content in the browser. 2. Numbers in the output would change to bullet points. 3. Bullet points in the output would change to numbers. 4. No changes to the output would occur.

3. Bullet points in the output would change to numbers.

Which of the following elements will directly affect the vertical spacing in an HTML layout? 1. <break> 2. <break /> 3. <b> 4. <br>

4. <br>

Why is the code below incorrect? <video src="myVid.mp4" controls >

The video element is not a self-closing tag. It should have an opening and a closing tag.


Ensembles d'études connexes

sherpath: informatics in nursing practice

View Set

Earth Science (Mechanism of Plate Movements)

View Set

C366- Elementary Reading and Literacy Methods NOTES

View Set

Chapter 18 SmartBook - MGMT 3000

View Set

8th Grade English Chapter 14-Syns

View Set

Chapter 36 Biology Review Questions

View Set

World History Module 21 Vocabulary

View Set