W3Schools CSS Quiz

¡Supera tus tareas y exámenes ahora con Quizwiz!

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

a {text-decoration:none;}

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

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

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

margin-left

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

static

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

#demo

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

.test

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

Both font-family and font can be used

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

color

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

p {font-weight:bold;}

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

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

h1 {background-color:#FFFFFF;}

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 */

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

<link rel="stylesheet" type="text/css"

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

background-color

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

body {color: black;}

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

div p

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

list-style-type: square;

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

text-transform:capitalize

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

Cascading Style Sheets

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

In the <head> section

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

No

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

font-weight:bold;

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

style

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

font-size

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

<style>


Conjuntos de estudio relacionados

Chapter 26: Children and Adolescents

View Set

Supply Chain: Everything After Exam 1

View Set

AP Chemistry Practice Test Questions: Kinetics & Thermochemistry

View Set

Module 12: Textbook reading quiz

View Set

Chapter 38 - Thrombocytopenia and Thrombocytosis

View Set

SS.7.C.3.5: Constitutional Amendment Process

View Set

Chapter 07: Cellular Respiration, Fermentation, and Secondary Metabolism

View Set

Management 494 | Exam 3 Study Guide (Chapters 8-11)

View Set

Module 1: Anatomy Intro LS (Ch: 1) SB

View Set