w3schools CSS quiz

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

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

.test

4. Which HTML tag is used to define an internal style sheet?

<style>

1. What does CSS stand for?

Cascading Style Sheets

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

color

3. Where in an HTML document is the correct place to refer to an external style sheet?

In the <head> section

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

No

24. How do you group selectors?

Separate each selector with a comma

13. How do you display hyperlinks without an underline?

a {text-decoration:none;}

6. Which is the correct CSS syntax?

body {color: black;}

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;

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

div p

11. Which CSS property controls the text size?

font-size

16. How do you make the text bold?

font-weight:bold;

9. How do you add a background color for all <h1> elements?

h1 {background-color:#FFFFFF;}

20. How do you make a list that lists its items with squares?

list-style-type: square;

25. What is the default value of the position property?

static

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

style

15. Which property is used to change the font of an element?

Both font-family and font can be used

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

#demo

12. What is the correct CSS syntax for making all the <p> elements bold?

p {font-weight:bold;}

7. How do you insert a comment in a CSS file?

/* this is a comment */

2. What is the correct HTML for referring to an external style sheet?

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

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

background-color

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

margin-left

14. How do you make each word in a text start with a capital letter?

text-transform:capitalize


Set pelajaran terkait

(PrepU) Chapter 41: Management of Patients with Intestinal and Rectal Disorders

View Set

Investigating Science - Module 7

View Set

Chapter 56 - Management of Patients with Dermatologic Disorders

View Set

Chapter 15.3-15.4 Connect Questions

View Set