Shared Flashcard Set

Details

CSS -Review for Exam
Cascading Style Sheets - Study for Final Exam
25
Computer Science
11th Grade
06/06/2011

Additional Computer Science Flashcards

 


 

Cards

Term

A rule that defines the appearance of an element on a Web page.

Definition
Style
Term

A language that allows a Web developer to write code statements that control the style of elements on a web page.

Definition
Cascading Style Sheets (CSS)
Term

Allows you to change the style for a single element on a Web page, or to change the style of elements on all pages in a Web site.

Definition
Style Sheet
Term

The type of style sheet that allows you to add a style to an individual HTML tag.

Definition
Inline Style Sheet
Term

The type of style sheet that allows you to define the style for an entire Web page.

Definition
Embedded Style Sheet
Term

the type of style sheet you create a textfile that contains all the styles you want to apply and then save the text file with the extension .css.

Definition
External Style Sheets
Term

Is made up of a selector and a declaration that defines the style for one or more properties.

Definition
Style Statement
Term

The part of the style statement that identifies how the elements should appear.

Definition
Declaration
Term

Defines the style of a link when a mouse pointer points to it.

Definition
An A Selector
Term

In CSS, you can create several different variations for any one tag with this.

Definition
Classes
Term

CSS is a separate language use to enhance the display capabilities of what?

Definition
HTML
Term

With this type of style, you add the style sheet within the <head> tags of the HTML document to define the style for the entire Web page.

Definition
Embedded Style
Term

The part of the style statement that that identifies the page elements is called what?

Definition
Selector
Term

For the Border property, which of the following would be a valid option?

 

A     family

B     Style

C     Variant

D     weight

 

Definition
Style
Term

Which of the following is NOT an option for the background property?

 

A     color

B     image

C     size

D     position

Definition
Size
Term
What are the two kinds of selectors?
Definition

Selector A - indicates a link element

Selector P - indicates text in paragraph

Term

The code for an embedded style sheet must be inserted within what start and end tag?

Definition
<Style>  </style>
Term
An example of an Inline Style.  Code is placed inside the opening tag of the desired tag.
Definition

style="property:value"

Example:  <p style="color:red">

Term

An example of an internal Style sheet.  Code is placed in the <head> section.

Definition

<style type="text/css">

jr{color:red;}

</style>

Term
An example of an external style sheet.  Links the webpage to an external style sheet.
Definition

<head>

<link rel="stylesheet"type="text/css" href="mystyle.css"/>

</head>

Term
Examples of Body Styles
Definition

background-color:yellow;  sets the background color

background-image:url('paper.gif'); sets the background image

Term
Examples of Text Styles
Definition

color:red; Changes the text color.  Values: name, hexadecimal (#ff000), rgb(255,0.0).

text algin: center; Aligns the text horizontally.

text-decoration:underline; Underlines text

text-decoration:50px; indents text from the left

text-transform:uppercase;Controls capitaliztion. Values : none, capitalize, uppercase, lowercase

Term
Examples of Font Styles
Definition

font-family:arial: Sets the typeface for text.

font-size:100%; Set the font size

font-style: normal; Sets the font style for paragraphs. Values: normal, italic, oblique

Term
Examples of Link Styles
Definition

a:link{color:#FF0000;} Sets color for an unvisited link

a:visited {color:#FF0000;} Sets color for a visited link

a:hover {color:#FF0000;}

a:active{color:#ff0000:} Sets color for the selected link

Term
Examples of List Styles
Definition

list-style-image:url("image.gif:); Sets list items marker to an image

list-style-type: Sets the item marker type

Supporting users have an ad free experience!