Tech html Exam Review

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

How do you select all p elements inside a div element? a. div p b. div + p c. div.p d. all of the above

a. div p

How do you add a background color for all <h1> elements? a. h1 {background-color:#FFFFFF;} b. h1.all {background-color:#FFFFFF;} c. all.h1 {background-color:#FFFFFF;} d. all of the above

a. h1 {background-color:#FFFFFF;}

What is the correct CSS syntax for making all the <p> elements bold? a. p {text-size:bold;} b. p {font-weight:bold;} c. <p style="text-size:bold;"> d. <p style="font-size:bold;">

b. p {font-weight:bold;}

What is the correct CSS syntax for making all the <span> elements bold? a. span {text-size: bold} b. span {font-weight: bold} c. <span style='font-size: bold'> d. <span style='text-size: bold'>

b. span {font-weight: bold}

A declaration is terminated by? a. . - period b. ! - exclamation mark c. ; - semi colon d. : - colon

c. ; - semi colon

Where in an HTML document is the correct place to refer to an external style sheet? a. At the end of the document b. In the <body> section c. In the <head> section d. none of the above

c. In the <head> section

What property is used to change the text color of an element? a. fontcolor: b. textcolor: c. color: d. font-color:

c. color:

What is the correct CSS syntax to change the font name? a. font-name: b. font: c. font-family: d. fontname:

c. font-family:

Which CSS property controls the text size? a. font-height b. text-size c. font-size d. text-style

c. font-size

When using the padding property, are you allowed to use negative values? a. Yes b. No

No

A line is a series of marks or points. True False

True

Which of the following would be used to create an ID called header which has a width of 750px, a height of 30px and the color of the text is black? a. #header { height: 30px; width: 750px; color: black; } b. .header { height: 30px; width: 750px; colour: black; } c. #header { height: 30px; width: 750px; text: black; } d. .header { height: 30px; width: 750px; color: black; }

a. #header { height: 30px; width: 750px; color: black; }

How do you add a comment in a CSS file? a. /* this is a comment */ b. // this is a comment // c. // this is a comment d. <!-- this is a comment-->

a. /* this is a comment */

Which property is used to change the background color? a. background-color: b. bg-color: c. bground: d. b-color:

a. background-color:

Which HTML attribute is used to define inline CSS styles? a. CSS b. Style c. ID d. Type

b. Style

How do you display hyperlinks without an underline? a. a {decoration: no underline} b. a {text-decoration: none} c. a {hyperlink: no underline} d. a {text-decoration: no underline}

b. a {text-decoration: none}

Which is the correct CSS syntax? a. {p:color=black(p} b. p {color: black;} c. {p;color:black} d. p:color=black

b. p {color: black;}

What is the correct CSS syntax for making all the <p> tags font size 14px? a. p {14px} b. p {font-size: 14px;} c. p {text-size: 14px;} d. p {font: 14px;}

b. p {font-size: 14px;}

An external style sheet is ideal when the style is applied to: a. single page b. few pages c. many pages d. none of the above

c. many pages

Which property is used to change the left margin of an element? a. indent b. padding-left c. margin-left d. none of the above

c. margin-left

The two types of alignment used in graphic design are: a. proper and improper b. mixed and stagnate c. proper and mixed d. none of the above

c. proper and mixed

What does CSS stand for? a. Custom Style Sheets b. Colorful Style Sheets c. Computer Style Sheets d. Cascading Style Sheets

d. Cascading Style Sheets

What does the following mean to the computer? div p {color: bright red;} a. Make text in all divs and all paragraphs in this document be bright red b. Make the background in all divs that are of the class "p" be bright red c. Make the text inside any divs inside of any paragraph be bright red d. Make the text inside any paragraph that is inside any div be bright red

d. Make the text inside any paragraph that is inside any div be bright red

The # symbol specifies that the selector is? a. class b. tag c. first d. id

d. id

How do you make a list not display bullet points? a. list-style-type: no-bullet b. list: none c. bulletpoints: none d. list-style-type: none

d. list-style-type: none

Which snippet of CSS is commonly used to center a website horizontally? a. site-align: center; b. margin: center; c. margin: auto 0; d. margin: 0 auto;

d. margin: 0 auto;

How do you insert padding so that it is: 10 pixels at the top, 15 pixels at the bottom, 5 pixels at the right, 10 pixels to the left? a. padding: 10px 15px 5px 10px; b. padding: 15px 5px 10px 10px; c. padding: 10px 5px 10px 15px; d. padding: 10px 5px 15px 10px;

d. padding: 10px 5px 15px 10px;


Kaugnay na mga set ng pag-aaral

Algebra 2: Modeling with Periodic Functions

View Set

Difference b/t softball baseball

View Set

Іспит міжнар відносини і світова політика

View Set

Immune and Hematologic Disorders

View Set

World History Chapter 3 Sections 1-3

View Set

Human Physiology Chapter 2 Part 2

View Set