Web Development - Section 2

Ace your homework & exams now with Quizwiz!

Which of the following conditions must be met for scripting to be enabled in browsers? Select one or more options. A) The user has not disabled scripting for the current browser context B) An embedded object is used without the sandbox attribute C) The browser supports scripting D) The browser context has the sandboxed browsing context flag set

A) The user has not disabled scripting for the current browser context Correct Correct. Scripting must be enabled in the browser. Review the HTML scripting video. C) The browser supports scripting Correct Correct. The browser in question must support scripting. Review the HTML scripting video.

How are comments written in HTML? A) #This is a comment B) < !-- This is a comment -- > C) /*This is a comment*/ D) """This is a comment"""

B) < !-- This is a comment -- > Correct Correct. An example of this can be found in the HTML features video.

Which of the following is NOT an HTML tag? A) <p> B) <!DOCTYPE html> C) <article> D) <li>

B) <!DOCTYPE html> Correct Correct. The <!DOCTYPE> declaration is not an HTML tag. It is an instruction to the browser about what document type to expect. Review the HTML features video for a more detailed explanation of this.

Which tag CANNOT be used as a container for text? I.e. does not use both an opening <> and closing </> tag A) <body> B) <br> C) <p> D) <h1>

B) <br> Correct Correct. This is used as a single line break, and therefore does not need to enclose any data within it, making it able to be used without a closing tag. Review the "Common HTML Elements" reading for more practice with common HTML tags.

Which tag is used to create an ordered list? A) <orderedlist> B) <ol> C) <li> D) <ul>

B) <ol> Correct Correct. The <ol> tag stands for ordered list, and can be used to create a list with each item denoted with an <li> tag (list item). Review the "Common HTML Elements" reading for more review with this.

Which tag is used to denote a cell of data within a table? A) <th> B) <td> C) <tr> D) <tc>

B) <td> Correct Correct. This HTML tag stands for "table data" and is used to specify data within a table cell. Review the "Common HTML Elements" reading for further review on working with tables.

Which of the following statements embeds an image in an HTML document? A) <image>link_to_image</image> B) <figure src="image URL">image name</figure> C) <img src="image URL"> D) <img href="image URL">image name</img>

C) <img src="image URL"> Correct Correct. The <img> element is used for images, with the "src" attribute defining the location of the image. Review the "Common HTML Elements" reading for further review on HTML images.

Which of the following denotes the least important heading? A) <h1> B) <h10> C) <h5> D) <h6>

D) <h6> Correct Correct. HTML headings go from <h1> to <h6>, to represent a descending order of importance. Review the "Common HTML Elements" reading for further review about headings.

When defining a hyperlink (<a>), which attribute is used to specify the destination address? A) target B) ref C) src D) Href

D) Href Correct Correct. This attribute defines the destination address in a hyperlink. Review the "Common HTML Elements" reading for further review on hyperlinks.

What is the <br> tag used for? A) To make text bold B) To change the text color to brown C) To change the border D) To add a line break

D) To add a line break Correct Correct. The <br> tag is used to add a line break to your HTML content. Review the "Common HTML Elements" reading for further review about this.


Related study sets

B&S test Questions that I got wrong

View Set

Examen Final - Civilacion y Cultura

View Set

Physiology of Behavior Chapter 5: Recording and stimulating neural activity

View Set

Chapter 25: Growth and Development of Newborn and Infant

View Set

chapter 11. differential analysis: the key to decision making

View Set