array(0) { }

Css Questions | count: 25

Questions Difficulty level Type Answer Options Tag(s)
What does CSS stand for?1multipleCascading Style Sheets
  • Creative Style Sheets
  • Computer Style Sheets
  • Cascading Style Sheets
  • Colorful Style Sheets
CSS
What is the correct HTML for referring to an external style sheet?1multiple<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">
CSS
Where in an HTML document is the correct place to refer to an external style sheet?1multipleIn the <head> section
  • At the end of the document
  • In the <body> section
  • In the <head> section
CSS
Which HTML tag is used to define an internal style sheet?1multiple<style>
  • <script>
  • <css>
  • <style>
CSS
Which HTML attribute is used to define inline styles?1multiplestyle
  • class
  • style
  • font
  • styles
CSS
Which is the correct CSS syntax?1multiplebody {color: black;}
  • body:color=black;
  • {body:color=black;}
  • body {color: black;}
  • {body;color:black;}
CSS
How do you insert a comment in a CSS file?1multiple/* this is a comment */
  • /* this is a comment */
  • // this is a comment //
  • // this is a comment
  • ' this is a comment
CSS
Which property is used to change the background color?1multiplebackground-color
  • background-color
  • bgcolor
  • color
CSS
How do you add a background color for all <h1> elements?1multipleh1 {background-color:#FFFFFF;}
  • h1 {background-color:#FFFFFF;}
  • h1.all {background-color:#FFFFFF;}
  • all.h1 {background-color:#FFFFFF;}
CSS
Which CSS property is used to change the text color of an element?1multiplecolor
  • color
  • text-color
  • fgcolor
CSS
Which CSS property controls the text size?1multiplefont-size
  • text-style
  • font-style
  • text-size
  • font-size
CSS
What is the correct CSS syntax for making all the <p> elements bold?1multiplep {font-weight:bold;}
  • <p style="text-size:bold;">
  • <p style="font-size:bold;">
  • p {font-weight:bold;}
  • p {text-size:bold;}
CSS
How do you display hyperlinks without an underline?1multiplea {text-decoration:none;}
  • a {underline:none;}
  • a {text-decoration:no-underline;}
  • a {decoration:no-underline;}
  • a {text-decoration:none;}
CSS
How do you make each word in a text start with a capital letter?1multipletext-transform:capitalize
  • transform:capitalize
  • text-style:capitalize
  • You can't do that with CSS
  • text-transform:capitalize
CSS
Which property is used to change the font of an element?1multiplefont-family
  • font-weight
  • font-style
  • font-family
CSS
How do you make the text bold?1multiplefont-weight:bold;
  • font:bold;
  • style:bold;
  • font-weight:bold;
CSS
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?1multipleborder-width:10px 1px 5px 20px;
  • border-width:10px 20px 5px 1px;
  • border-width:10px 5px 20px 1px;
  • border-width:10px 1px 5px 20px;
  • border-width:5px 20px 10px 1px;
CSS
Which property is used to change the left margin of an element?1multiplemargin-left
  • margin-left
  • padding-left
  • indent
CSS
When using the padding property; are you allowed to use negative values?1multipleNo
  • No
  • Yes
CSS
How do you make a list that lists its items with squares?1multiplelist-style-type: square;
  • list-style-type: square;
  • list: square;
  • list-type: square;
CSS
How do you select an element with id 'demo'?1multiple#demo
  • *demo
  • #demo
  • demo
  • .demo
CSS
How do you select elements with class name 'test'?1multiple.test
  • #test
  • .test
  • *test
  • test
CSS
How do you select all p elements inside a div element?1multiplediv p
  • div + p
  • div.p
  • div p
CSS
How do you group selectors?1multipleSeparate each selector with a comma
  • Separate each selector with a space
  • Separate each selector with a comma
  • Separate each selector with a plus sign
CSS
What is the default value of the position property?1multiplestatic
  • static
  • absolute
  • relative
  • fixed
CSS