+ All Categories
Home > Education > Intro to HTML Elements and CSS Declarations

Intro to HTML Elements and CSS Declarations

Date post: 26-Dec-2014
Category:
Upload: bruce-clary
View: 1,268 times
Download: 4 times
Share this document with a friend
Description:
HTML tags, attributes and values. CSS selectors, properties, and values.
26
HTML Elements and CSS Declarations An Introduction CM350 WEB DESIGN FOR EFFECTIVE COMMUNICATION Bruce Clary, McPherson College, McPherson, Kansas
Transcript
Page 1: Intro to HTML Elements and CSS Declarations

HTML Elements and CSS DeclarationsAn Introduction

CM350 WEB DESIGN FOR EFFECTIVE COMMUNICATION

Bruce Clary, McPherson College, McPherson, Kansas

Page 2: Intro to HTML Elements and CSS Declarations

HTMLHyperText Markup Language

The code or rules that browsers read that define the structure Web pages

CM350 WEB DESIGN FOR EFFECTIVE COMMUNICATION

Page 3: Intro to HTML Elements and CSS Declarations

Purpose of HTML

Define the structure of the Web page and its content

CM350 WEB DESIGN FOR EFFECTIVE COMMUNICATION

Page 4: Intro to HTML Elements and CSS Declarations

<div class=“branding”>

<h1>Branding text.</h1></div><img src=“pic.jpg” alt=“ ” />

The HTML Element

CM350 WEB DESIGN FOR EFFECTIVE COMMUNICATION

Page 5: Intro to HTML Elements and CSS Declarations

<div class=“branding”>

<h1>Branding text.</h1></div><img src=“pic.jpg” alt=“ ” />

The HTML ElementOpening Tag

CM350 WEB DESIGN FOR EFFECTIVE COMMUNICATION

Page 6: Intro to HTML Elements and CSS Declarations

<div class=“branding”>

<h1>Branding text.</h1></div><img src=“pic.jpg” alt=“ ” />

The HTML ElementAttributeOpening Tag

CM350 WEB DESIGN FOR EFFECTIVE COMMUNICATION

Page 7: Intro to HTML Elements and CSS Declarations

<div class=“branding”>

<h1>Branding text.</h1></div><img src=“pic.jpg” alt=“ ” />

The HTML ElementAttribute ValueOpening Tag

CM350 WEB DESIGN FOR EFFECTIVE COMMUNICATION

Page 8: Intro to HTML Elements and CSS Declarations

<div class=“branding”>

<h1>Branding text.</h1></div><img src=“pic.jpg” alt=“ ” />

The HTML ElementAttribute ValueOpening Tag

End Tag

CM350 WEB DESIGN FOR EFFECTIVE COMMUNICATION

Page 9: Intro to HTML Elements and CSS Declarations

<div class=“branding”>

<h1>Branding text.</h1></div><img src=“pic.jpg” alt=“ ” />

Nonreplaceable Element

The HTML ElementAttribute ValueOpening Tag

End Tag

CM350 WEB DESIGN FOR EFFECTIVE COMMUNICATION

Page 10: Intro to HTML Elements and CSS Declarations

<div class=“branding”>

<h1>Branding text.</h1></div><img src=“pic.jpg” alt=“ ” />

Nonreplaceable Element

The HTML ElementAttribute ValueOpening Tag

End Tag

CM350 WEB DESIGN FOR EFFECTIVE COMMUNICATION

Page 11: Intro to HTML Elements and CSS Declarations

<div class=“branding”>

<h1>Branding text.</h1></div><img src=“pic.jpg” alt=“ ” />

Nonreplaceable Element

The HTML ElementAttribute ValueOpening Tag

End Tag

CM350 WEB DESIGN FOR EFFECTIVE COMMUNICATION

Page 12: Intro to HTML Elements and CSS Declarations

<div class=“branding”>

<h1>Branding text.</h1></div><img src=“pic.jpg” alt=“ ” />

Nonreplaceable Element

The HTML ElementAttribute ValueOpening Tag

End Tag

CM350 WEB DESIGN FOR EFFECTIVE COMMUNICATION

Page 13: Intro to HTML Elements and CSS Declarations

Replaceable Element

<div class=“branding”>

<h1>Branding text.</h1></div><img src=“pic.jpg” alt=“ ” />

Nonreplaceable Element

The HTML ElementAttribute ValueOpening Tag

End Tag

CM350 WEB DESIGN FOR EFFECTIVE COMMUNICATION

Page 14: Intro to HTML Elements and CSS Declarations

CSSCascading Stylesheets

The code or rules that browsers read to render and display Web pages

CM350 WEB DESIGN FOR EFFECTIVE COMMUNICATION

Page 15: Intro to HTML Elements and CSS Declarations

Purpose of CSS

Control the appearance or presentation of Web pages

CM350 WEB DESIGN FOR EFFECTIVE COMMUNICATION

Page 16: Intro to HTML Elements and CSS Declarations

The CSS Declaration

h1 { font-size: 2em; color: #66666; }

CM350 WEB DESIGN FOR EFFECTIVE COMMUNICATION

Page 17: Intro to HTML Elements and CSS Declarations

The CSS Declaration

h1 { font-size: 2em; color: #66666; }

Selector

CM350 WEB DESIGN FOR EFFECTIVE COMMUNICATION

Page 18: Intro to HTML Elements and CSS Declarations

The CSS Declaration

h1 { font-size: 2em; color: #66666; }

Selector

Property Property

CM350 WEB DESIGN FOR EFFECTIVE COMMUNICATION

Page 19: Intro to HTML Elements and CSS Declarations

The CSS Declaration

h1 { font-size: 2em; color: #66666; }

Selector

Property PropertyValue Value

CM350 WEB DESIGN FOR EFFECTIVE COMMUNICATION

Page 20: Intro to HTML Elements and CSS Declarations

The CSS Declaration

Declaration Declaration

h1 { font-size: 2em; color: #66666; }

Selector

Property PropertyValue Value

CM350 WEB DESIGN FOR EFFECTIVE COMMUNICATION

Page 21: Intro to HTML Elements and CSS Declarations

The CSS Declaration

Declaration block

Declaration Declaration

h1 { font-size: 2em; color: #66666; }

Selector

Property PropertyValue Value

CM350 WEB DESIGN FOR EFFECTIVE COMMUNICATION

Page 22: Intro to HTML Elements and CSS Declarations

The CSS Declaration

Rule

Declaration block

Declaration Declaration

h1 { font-size: 2em; color: #66666; }

Selector

Property PropertyValue Value

CM350 WEB DESIGN FOR EFFECTIVE COMMUNICATION

Page 23: Intro to HTML Elements and CSS Declarations

Advantages of HTML and CSS

CM350 WEB DESIGN FOR EFFECTIVE COMMUNICATION

Page 24: Intro to HTML Elements and CSS Declarations

Advantages of HTML and CSS

• Separates structure and content from presentation

CM350 WEB DESIGN FOR EFFECTIVE COMMUNICATION

Page 25: Intro to HTML Elements and CSS Declarations

Advantages of HTML and CSS

• Separates structure and content from presentation

• Simplifies and speeds revisions and redesign

CM350 WEB DESIGN FOR EFFECTIVE COMMUNICATION

Page 26: Intro to HTML Elements and CSS Declarations

Recommended