CSS: Creating Styles and Style Sheets

CSS: Creating Styles and Style Sheets

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

three ways to apply styles

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

4 years ago

Date created

Mar 1, 2020

Cards (17)

Section 1

(17 cards)

three ways to apply styles

Front

external style sheet, internal style sheet and inline style

Back

<style> tag

Front

used to enclose an internal style sheet

Back

external style sheet example

Front

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

Back

inline style

Front

rarely used, changes the styling on a single element on a single page

Back

declaration block

Front

contains formatting options to be applied to the selector

Back

value

Front

specifies the parameters of a property

Back

style attribute

Front

used to apply inline styles

Back

style elements

Front

selector and declaration block

Back

declaration

Front

composed of a property and a value

Back

ends a property/value pair

Front

;

Back

external style sheet

Front

all styles and rules are contained in one central, separate text file (used when the style is applied to many pages)

Back

selector

Front

tells Web browser which element(s) to style

Back

style sheet

Front

a collection of CSS styles

Back

ctrl + reload

Front

force reloads the page

Back

internal style sheet

Front

styles are located within the head of the HTML page (used when the style applies to a single page)

Back

property

Front

indicates a certain style effect

Back

<p> blue using inline style

Front

<p style="color: blue;"></p>

Back