w3schools CSS quiz

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

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

<style>

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 5px 20px 1px; border-width:10px 20px 5px 1px; border-width:5px 20px 10px 1px; border-width:10px 1px 5px 20px;

border-width:10px 1px 5px 20px;

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

color

25. What is the default value of the position property? static absolute fixed relative

static

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

font-size

21. How do you select an element with id "demo"? #demo demo *demo .demo

#demo

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

Both font-family and font can be used

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

In the <head> section

24. How do you group selectors? Separate each selector with a comma Separate each selector with a space Separate each selector with a plus sign

Separate each selector with a comma

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

background-color

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

body {color: black;}

23. How do you select all p elements inside a div element? div + p div p div.p

div p

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

list-style-type: square;

22. How do you select elements with class name "test"? test *test #test .test

.test

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

/* this is a comment */

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

No

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

font-weight:bold;

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

h1 {background-color:#FFFFFF;}

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

style

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

margin-left

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>

<link rel="stylesheet" type="text/css" href="mystyle.css">

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

Cascading Style Sheets

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

a {text-decoration:none;}

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;}

p {font-weight:bold;}

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

text-transform:capitalize


Kaugnay na mga set ng pag-aaral

Geography (HISTORICAL PERSPECTIVES)

View Set

Critical Thinking Ch. 1-2 Study Guide

View Set

Chapter 14 LearnSmart - Bonds and Long-Term Notes

View Set

Psychology: Unit 5 Abnormal and Group Behavior TEST

View Set

Sociology - Chapter 12 - Gender and Sexuality

View Set

Insurance terms and related concepts - Ch. 1 Quiz

View Set