Search Header Logo
CSS Lesson

CSS Lesson

Assessment

Presentation

Computers

University

Medium

Created by

karthika shanmugam

Used 1+ times

FREE Resource

20 Slides • 6 Questions

1

Cascading Style Sheets (CSS)

Lesson 6
Web Development
Computer Science Discoveries

2

media
media

Sample Website

Check out this web page.

If you wanted to create a page
like this...
What do you already know

how to do?

What do you still need to

learn how to do?

Web Development Lesson 6 - Warm Up

3

Cascading Style Sheets (CSS)

Lesson 6
Web Development
Computer Science Discoveries

4

media
media

Sample Website

Check out this web page.

If you wanted to create a page
like this...
What do you already know

how to do?

What do you still need to

learn how to do?

Web Development Lesson 6 - Warm Up

5

media

Question of the Day

How can we change the style of

text on a web page?

(e.g. color, font size, italics)

Web Development Lesson 6 - Warm Up

6

media

Web Development Lesson 6 - Activity

Key Vocabulary

CSS - Cascading Style Sheets; a language used to describe
how HTML elements should be styled

CSS Selector - the part of a CSS rule-set that defines which
HTML elements the style should be applied to

Rule Set- The block of code that gives rules for a particular tag

7

8

media
media

Web Development Lesson 6 - Activity

How is the style of a web page different from structure?
Why might you want your web page to have a certain style?

9

Facts about CSS

  • The style sheet is linked between the head tags. Remember, we said important stuff goes here that you can't necessarily see on the page.

  • Helps with page consistency. It makes piece of content between specific tags the same.

10

media
media

Web Development Lesson 6 - Activity

Intro to CSS

11

Example of CSS Rule Set

h1 {

color: red;

font-size: 24px;

}

12

Multiple Choice

What is the primary purpose of HTML?

1

Style

2

Structure

3

WYSIWYG

4

None of the Above

13

​Above you see the CSS rule set labeled with terms that describe each part

Diagram of a CSS Rule Set

media

14

Multiple Choice

What is the primary purpose of CSS?

1

Style

2

Structure

3

WYSIWYG

4

None of the Above

15

Multiple Choice

What does CSS stand for?

1

Computer Standard Sequencing

2

Computer Styles Standing

3

Cascading Style Sheets

4

Calendar Styles Stellar

16

Multiple Choice

Below, P represents the Paragraph tag in HTML.

P {

color: purple;

}

What part of the ruleset is the P?

1

Value

2

Selector

3

Element

4

Rule set

17

Multiple Choice

Below, P represents the Paragraph tag in HTML.

P {

color: purple;

}

What part of the ruleset is "purple"?

1

Value

2

Selector

3

Element

4

Rule set

18

Multiple Choice

Below, P represents the Paragraph tag in HTML.

P {

color: purple;

}

What is this piece of code called?

1

Value

2

Selector

3

Element

4

Rule set

19

RGB Colors

Example of RGB Colors:
h1{

color: rgb( 0 , 0, 0);

}


h1{
color rgb (red, green, blue)
}

20

21

media
media

Web Development Lesson 6 - Activity

How does the web page know what stylesheet it
should be using?

22

Example of Linking CSS in an HTML Document

<head><link rel="stylesheet" href="myfirststyles.css"></head>

23

media
media

Web Development Lesson 6 - Activity

HTML vs CSS

What are the differences
between HTML and CSS?

HTML

CSS

24

HTML vs CSS

  • Can be used in an HTML document

  • Display and design of HTML design

  • Easier site maintenance

Cascading Style Sheets

  • Can not be used in a CSS document

  • content and structure of page

Hypertext Markup Language

25

media

Web Development Lesson 6 - Wrap Up

CSS Properties

Property

What it Changes

Example

color

The color of your text

color: maroon;

font-family

Which font to use

font-family:fantasy;

font-size

The size of your text

font-size: 20px;

text-align

The alignment of your text

text-align: center;

text-decoration

Additional style

text-decoration: underline;

letter-spacing

Adds extra space between letters

letter-spacing: 5px;

text-shadow

Adds a shadow to text

text-shadow: 3px -3px;

26

media

Web Development Lesson 6 - Wrap Up

Key Vocabulary

CSS - Cascading Style Sheets; a language used to describe
how HTML elements should be styled

CSS Selector - the part of a CSS rule-set that defines which
HTML elements the style should be applied to

Cascading Style Sheets (CSS)

Lesson 6
Web Development
Computer Science Discoveries

Show answer

Auto Play

Slide 1 / 26

SLIDE