Home
Flashcards
Preview
HTML/CSS Practice
Home
Get App
Take Quiz
Create
CSS Declarations always end with a
Semicolon
Declaration groups are surrounded by
curly braces
used to specify a style for a single, unique element
ID selector
the id attribute of the HTML element is defined by a
#
the class selector is most often used on
several elements
class selector uses the HTML class attribute and is defined by a
"."
What will the following code do:
p.center {text-align:center;}
all p elements with class="center" will be center-aligned
What type of style is this?
<p style="color:sienna;margin-left:20px">This is a paragraph.</p>
Inline Style
What type of style sheet is this?
<head>
<style type="text/css">
hr {color:sienna;}
p {margin-left:20px;}
body {background-image:url("images/back40.gif");}
</style>
</head>
Internal Style sheet
Why would you use this code?
<head>
<link rel="stylesheet" type="text/css"
href="mystyle.css" />
</head>
To link to an external style sheet
CSS properties used for background effects are:
background-color
background-image
background-repeat
background-attachment
background-position
The background image for a page can be set like this:
body {background-image:url('paper.gif');}
The shorthand property for background is simply
background
When using the shorthand property the order of the property values are:
background-color
background-image
background-repeat
background-attachment
background-position
used to set the horizontal alignment of a text
text-align property
used to set or remove decorations from text
text-decoration
used to specify uppercase and lowercase letters
in a text
text-transform
True or False
If the name of a font family is more than one word, it must be in
quotation marks
True
False
True
used to specify italic text
font-style
Author
mewsicmasta
ID
41808
Card Set
HTML/CSS Practice
Description
Study points for CIS 4004 Exam 1
Updated
2010-10-13T03:29:03Z
Show Answers
Home
Flashcards
Preview