CSS Quiz - 1
Test your knowledge of CSS fundamentals including syntax, properties, selectors, and the three methods of applying styles to web pages.
Questions
What does CSS stand for?
- Creative Style Sheets
- Computer Style Sheets
- Cascading Style Sheets
- Cascade Style Sheets
- Colorful Style Sheets
Where in an HTML document is the correct place to refer to an external style sheet?
- In the <body> section
- At the end of the document
- At the top of the document
- In the <head> section
- Between head and body
Which HTML tag is used to define an internal style sheet?
- css
- text/style
- style
- script
Which HTML attribute is used to define inline styles?
- font
- styles
- css
- text
- style
Which is the correct CSS syntax?
- body {color: black}
- body:color=black
- {body:color=black(body}
- {body;color:black}
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
Which property is used to change the background color?
- bgcolor:
- background-color:
- color:
How do you add a background color for all "
" elements?
- all.h1 {background-color:#FFFFFF}
- h1.all {background-color:#FFFFFF}
- h1 {background-color:#FFFFFF}
How do you change the text color of an element?
- text-color:
- color:
- text-color=
- font-color:
Which CSS property controls the text size?
- font-style
- text-style
- font-size
- text-size
How do you make each word in a text start with a capital letter?
- text-transform:capitalize
- ext-transform:uppercase
- You can't do that with CSS
How do you change the left margin of an element?
- left-margin:
- margin:
- margin-left:
- text-indent:
What are the three methods for using style sheets with a web page
- Dreamweaver, GoLive or FrontPage
- Inline, embedded or document level and external
- Handcoded, Generated or WYSIWYG