CSS Review

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

10. Which CSS property is used to change the text color of an element? text-color color fgcolor

B

15. Which property is used to change the font of an element? font-family Both font-family and font can be used font

B

18. Which property is used to change the left margin of an element? padding-left margin-left indent

B

20. How do you make a list that lists its items with squares? list-type: square; list-style-type: square; list: square;

B

6. Which is the correct CSS syntax? body:color=black; body {color: black;} {body:color=black;} {body;color:black;}

B

7. How do you insert a comment in a CSS file? ' this is a comment /* this is a comment */ // this is a comment // // this is a comment

B

13. How do you display hyperlinks without an underline? a {decoration:no-underline;} a {underline:none;} a {text-decoration:none;} a {text-decoration:no-underline;}

C

16. How do you make the text bold? style:bold; font:bold; font-weight:bold;

C

8. Which property is used to change the background color? bgcolor color background-color

C

4. Which HTML tag is used to define an internal style sheet? <style> <css> <script>

A

3. Where in an HTML document is the correct place to refer to an external style sheet? In the <body> section At the top of the document In the <head> section At the end of the document

C

9. How do you add a background color for all <h1> elements? h1.all {background-color:#FFFFFF;} all.h1 {background-color:#FFFFFF;} h1 {background-color:#FFFFFF;}

C

14. How do you make each word in a text start with a capital letter? text-transform:capitalize text-transform:uppercase You can't do that with CSS

A

19. When using the padding property; are you allowed to use negative values? Yes No

No

11. Which CSS property controls the text size? text-size text-style font-style font-size

D

5. Which HTML attribute is used to define inline styles? style class font styles

A

1. What does CSS stand for? Cascading Style Sheets Colorful Style Sheets Computer Style Sheets Creative Style Sheets

A

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

A

17. How do you display a border like this: The top border = 10 pixels The bottom border = 5 pixels The left border = 20 pixels The right border = 1pixel? border-width:10px 1px 5px 20px; border-width:10px 5px 20px 1px; border-width:10px 20px 5px 1px; border-width:5px 20px 10px 1px;

A

2. What is the correct HTML for referring to an external style sheet? <link rel="stylesheet" type="text/css" href="mystyle.css"> <style src="mystyle.css"> <stylesheet>mystyle.css</stylesheet>

A


Kaugnay na mga set ng pag-aaral

Money and Banking 2nd Midterm 13-25

View Set

Pathophysiology for Advanced Practice Nursing Study Guide

View Set

Communications Exam 1 Chapter 12

View Set

Into to A&P ( chp 1 ) assignment

View Set

ASP Exam - Domain 3 (Ergonomics)

View Set