CS 102 CSS Practice Test

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

font-weight:bold;

How do you make the text bold?

div p

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

#demo

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

Both font-family and font can be used

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

margin-left

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

h1 {background-color:#FFFFFF;}

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

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

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?]

a {text-decoration:none;}

How do you display hyperlinks without an underline?

Separate each selector with a comma

How do you group selectors?

/* this is a comment */

How do you insert a comment in a CSS file?

list-style-type: square;

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

text-transform:capitalize

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

.test

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

Cascading Style Sheets

What does CSS stand for?

p {font-weight:bold;}

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

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

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

static

What is the default value of the position property?

No

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

In the <head> section

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

font-size

Which CSS property controls the text size?

color

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

style

Which HTML attribute is used to define inline styles?

<style>

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

body {color: black;}

Which is the correct CSS syntax?

background-color

Which property is used to change the background color?


Kaugnay na mga set ng pag-aaral

Macro 1001 Final Exam Review - HW #3,4 and Quiz 2

View Set

Chapter 25: Substance Use Disorders

View Set

structures of human eye and their functions (kssm form 3)

View Set

Child Development 252 - Chapter 6

View Set

EN 221H: Thomas Paine, Common Sense

View Set

ADN 420 Test 1 (Development & Mobility)

View Set

Geometry Unit 2: Lesson 4, 5, 6, and 7

View Set

Gestalt Principles Cognitive Psychology

View Set