CSS Practice Quiz

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

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

#demo

What does CSS stand for?

Cascading Style Sheets

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

In the <head> section

What is the default value of the position property?

static

Which HTML attribute is used to define inline styles?

style

How do you make each word in a text start with a Capital letter?

text-transforms:capitalize

Which property is used to change the background color?

background-color

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

margin-left

Which HTML tag is used to define an Internal style sheet?

<style>

How do you display hyperlinks without an underline?

a{text-decorations:none;}

Which CSS property controls the text size?

font-size

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

-color

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

.test

How do you insert a comment in a CSS file?

/* this is a comment */

What is the Correct HTML for referring to an external style sheet?

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

Which is the correct CSS syntax?

body {color: black;}

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=1 pixel?

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

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

both font-family and font can be used

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

div p

How do you make the text bold?

font-weight:bold;

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

h1 {background-color:#FFFFFF}

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

list-style-type: square;

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

no

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

p{font-weight:bold;}

How do you group selectors?

separate each selector with a comma


Ensembles d'études connexes

Chapter 5 and 6 Quiz Review for Nutrition

View Set

Principles of Management - C483 - Chapter 18

View Set

Chemistry chapter 8.1 HW assessment balancing equations

View Set

- Age of European Exploration: Name that Explorer -

View Set

Civics Unit 5 Board Game Question Cards

View Set

LAP 10 Basic Timer Control: On-Delay & Off-Delay

View Set

1-100 residential wireman test part 1

View Set