Font size
WorksheetsCSS Test
Total questions: 100
Worksheet time: 3605secs
If we want define style for an unique element, then which css selector will we use ?
Id
text
class
name
Which of the following property is used to control the repetition of an image in the background?
background-repeat
background-color
background-image
background-position
Which of the following property is used to increase or decrease how bold or light a font appears?
font-weight
font-variant
font-style
font-family
Which of the following property is used to set the width of an image?
border
height
width
-moz-opacity
Which of the following property changes the color of right border?
border-top-color
border-left-color
border-right-color
border-bottom-color
Which of the following property allows you to control the shape or appearance of the marker of a list?
list-style-position
list-style
list-style-type
list-style-image
Which of the following selector selects an element that has no children?
:empty
:nochild
:inheritance
:no-child
What type of selector is used in this case?
p {line-height: 150%;}
class Selectors
element Selectors
id Selectors
none of the mentioned
By applying an ___________ a style can be applied to just a single tag.
class rule
element rule
id rule
none of the mentioned
The _____________ attribute is used to define the name(s) of the class(es) to which a particular tag belongs.
element
class
id
none of the mentioned
border.p {color: red;}
p {color: red;}
/* This is a multi-line comment */
A language used to describe how HTML elements should be styled
CSS Cascading Style Sheets
HTML Hyper Text Markup Language
PHP
Javascript
The part of a CSS rule-set that defines which HTML
elements the style should be applied to
Declaration
Value
Selector
Link
An identifier that allows multiple elements in an HTML document to be styled in the same way
Value Selector
CSS id
class selector
CSS Class
A document that controls how a web page will appear. External style sheets are separate files that are linked to the HTML page.
Style Sheet
Style Page
Page Style
HTML Style
_________ is a language that controls the way content on a web site appears.
HTML
ABC
Java
CSS
A single point of light on the screen, abbreviated as px, is how elements are measured in CSS.
Beam
Pixel
Pigment
Piglet
What CSS property determines the alignment the text?
font-family
text-decoration
text-alignment
text-control
What CSS property determines what type of font to use?
text-decoration
font-family
font-decoration
text-family
Additional styling for your text such as underline is created by the ___________ css property
text-decoration
text-style
text-option
text-decorative
All colors, whether they have names or not, can be described by the level of red, green, and blue light it takes to make them. This is called an _______ _________.
Hex Code
Pixels
RGB Value
RGB Name
Text or an image in a document that contains a link to another location is _____________.
hypertext
website
copyright
element
A collection of documents located on the Internet by an address is called the ______________.
World Wide Web (www)
Cascading Style Sheet (CSS)
Hypertext Markup Language (HTML)
website
A standardized way to create documents so a web browser could display them is ______________.
Hypertext Markup Language (HTML)
Cascading Style Sheet (CSS)
Rule
World Wide Web (www)
A collection of linked documents is ________________.
website
web page
web browser
World Wide Web (WWW)
Individual documents within the website are called _______________.
web page
inline element
web browser
Cascading Style Sheet (CSS)
Used in HTML to give the web browser commands is called _______________.
element
rule
inline element
block-level element
Provides formatting information for a web page is called _________________.
cascading style sheet (css)
copyright
web browser
Hypertext Markup Language (HTML)
________________ are embedded into HTML file within the element being formatted.
inline style
internal style
inline element
external style
________________ are defined in the <head> section of the HTML file.
internal styles
inline element
external style
hypertext
Similar to internal styles, but contained in a separate CCS file with the .css file extension is called _______________.
external styles
Cascading Style Sheet (CSS)
copyright
element
_______________ is the ownership of a creative work.
copyright
rule
Cascading Style Sheet (css)
website
In graphic design, straight line is called a __________________.
rule
hypertext
web page
block-level element
HTML code element that does not start a new line and uses only as much space as it needs is called _________________.
inline element
external style
hypertext
inline style
Software used to retrieve and display hypertext documents is called ______________.
web browser
inline style
rule
inline element
It is a language that defines the style of HTML elements.
Hypertext Markup Language
Cascading Style Sheets
Counter Strike Source
Javascript
It is a part of the CSS code that refers to an HTML tag that you want to style.
Value
Selector
Declaration
Property
It is a part of the CSS code that is used to set style properties to an HTML element.
Declaration
Property
Selector
Value
It is a style sheet that is used to apply a unique style to a single HTML element.
Cascading Style Sheet
Inline Style Sheet
Internal Style Sheet
External Style Sheet
It is a style sheet that is used to define a style for a single HTML page.
Cascading Style Sheet
Inline Style Sheet
Internal Style Sheet
External Style Sheet
It is a style sheet that is used to define the style for many HTML pages.
Cascading Style Sheet
Inline Style Sheet
Internal Style Sheet
External Style Sheet
It is a CSS property that specifies the style of a text.
font-family
font-style
text-style
font-variant
the main heading in a web document?
HTML stands for
Hyper Text Marker Language
Hyper Text Marker Lingo
Hyper Text Markup Language
Hyper Text Markup Lingo
CSS stands for
Code Style Sheet
Coding Style Sheet
Cascading Sheet Style
Cascading Style Sheet
HTML tag keywords are surrounded by
!--tag--!
<tag>
/tag/
{tag}
Which is the correct CSS syntax?
body {color: yellow;}
body:color=yellow;
{body:color= yellow;}
{body;color: yellow;}
Which one is the correct syntax for CSS?
property {selector : value}
value {property : selector}
selector {value : property}
selector { property : value}
Why doesn't the second rule work?
Missing bracket
Spelling error
Wrong selector
Why won't the background image work?
Spelling error
Missing bracket
Wrong selector
What does this show?
One Declaration
One property
One rule
What part of a rule ends with a semicolon?
Selector
Property
Value
What type of SELECTOR does this rule have?
Class
ID
Tag
What type of selector is this?
Class
ID
Tag
If you want to control space BETWEEN two elements, which property do you add?
Margin
Padding
Spacing
What property puts more space INSIDE an element like the <main> ?
Padding
Margin
Width
What's wrong with this page's structure?
Nesting issues
Overlapping tags
Missing brackets
Which one is a PROPERTY?
width:
1000px;
#wrapper
What does CSS mean?
Cascading Style Sheets
Crafty Style Sayings
Cryptic Smooth Style
Why add CSS to your webpage?
Control the look of your page
Add elements like text & images
Make your page interactive
How many selectors are there in this rule?
1
2
3
The bracket should go after the...
Selector
Declaration
Value
Which one is a VALUE?
#313CFF;
#nav
font-size:
