intro to xhtml/css

26
XHTML and CSS An Introduction CM475 SENIOR SEMINAR IN COMM

Upload: bruce-clary

Post on 27-May-2015

651 views

Category:

Education


1 download

TRANSCRIPT

Page 1: Intro to XHTML/CSS

XHTML and CSSAn Introduction

CM475 SENIOR SEMINAR IN COMM

Page 2: Intro to XHTML/CSS

CM475 SENIOR SEMINAR IN COMM

HTMLHyperText Markup Language

The code or rules that browsers readthat defines the structure Web pages

Page 3: Intro to XHTML/CSS

CM475 SENIOR SEMINAR IN COMM

XHTMLeXtensible HTML

•“Cleaned up,” stricter HTML

•An application of XML

Page 4: Intro to XHTML/CSS

CM475 SENIOR SEMINAR IN COMM

Purpose of XHTML

Define the structure of the Web page and its content

Page 5: Intro to XHTML/CSS

CM475 SENIOR SEMINAR IN COMM

XHTML Terminology

<div class=“first”>

This is content.

</div>

<img src= “pic.jpg” alt=“ ” />

Page 6: Intro to XHTML/CSS

CM475 SENIOR SEMINAR IN COMM

XHTML Terminology

<div class=“first”>

This is content.

</div>

<img src= “pic.jpg” alt=“ ” />

Opening Tag

Page 7: Intro to XHTML/CSS

CM475 SENIOR SEMINAR IN COMM

XHTML Terminology

<div class=“first”>

This is content.

</div>

<img src= “pic.jpg” alt=“ ” />

Opening Tag

End Tag

Page 8: Intro to XHTML/CSS

CM475 SENIOR SEMINAR IN COMM

XHTML Terminology

<div class=“first”>

This is content.

</div>

<img src= “pic.jpg” alt=“ ” />

AttributeOpening Tag

End Tag

Page 9: Intro to XHTML/CSS

CM475 SENIOR SEMINAR IN COMM

XHTML Terminology

<div class=“first”>

This is content.

</div>

<img src= “pic.jpg” alt=“ ” />

Attribute ValueOpening Tag

End Tag

Page 10: Intro to XHTML/CSS

CM475 SENIOR SEMINAR IN COMM

XHTML Terminology

Nonreplaceable Element <div class=“first”>

This is content.

</div>

<img src= “pic.jpg” alt=“ ” />

Attribute ValueOpening Tag

End Tag

Page 11: Intro to XHTML/CSS

CM475 SENIOR SEMINAR IN COMM

XHTML Terminology

Nonreplaceable Element <div class=“first”>

This is content.

</div>

<img src= “pic.jpg” alt=“ ” />

Attribute ValueOpening Tag

End Tag

Page 12: Intro to XHTML/CSS

CM475 SENIOR SEMINAR IN COMM

XHTML Terminology

Nonreplaceable Element <div class=“first”>

This is content.

</div>

<img src= “pic.jpg” alt=“ ” />

Attribute ValueOpening Tag

End Tag

Page 13: Intro to XHTML/CSS

CM475 SENIOR SEMINAR IN COMM

XHTML Terminology

Nonreplaceable Element <div class=“first”>

This is content.

</div>

<img src= “pic.jpg” alt=“ ” />

Attribute ValueOpening Tag

End Tag

Page 14: Intro to XHTML/CSS

CM475 SENIOR SEMINAR IN COMM

XHTML Terminology

Nonreplaceable Element <div class=“first”>

This is content.

</div>

<img src= “pic.jpg” alt=“ ” />

Attribute ValueOpening Tag

End Tag

Page 15: Intro to XHTML/CSS

CM475 SENIOR SEMINAR IN COMM

XHTML Terminology

Nonreplaceable Element

Replaceable Element

<div class=“first”>

This is content.

</div>

<img src= “pic.jpg” alt=“ ” />

Attribute ValueOpening Tag

End Tag

Page 16: Intro to XHTML/CSS

CM475 SENIOR SEMINAR IN COMM

CSSCascading Style Sheets

The code or rules that browsers readto display and structure Web pages

Page 17: Intro to XHTML/CSS

CM475 SENIOR SEMINAR IN COMM

Purpose of CSS

Control the appearance or presentation of the Web page

Page 18: Intro to XHTML/CSS

CM475 SENIOR SEMINAR IN COMM

CSS Terminology

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

Page 19: Intro to XHTML/CSS

CM475 SENIOR SEMINAR IN COMM

CSS Terminology

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

Property Property

Page 20: Intro to XHTML/CSS

CM475 SENIOR SEMINAR IN COMM

CSS Terminology

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

Property PropertyValue Value

Page 21: Intro to XHTML/CSS

CM475 SENIOR SEMINAR IN COMM

CSS Terminology

Declaration Declaration

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

Property PropertyValue Value

Page 22: Intro to XHTML/CSS

CM475 SENIOR SEMINAR IN COMM

CSS TerminologyDeclaration block

Declaration Declaration

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

Property PropertyValue Value

Page 23: Intro to XHTML/CSS

CM475 SENIOR SEMINAR IN COMM

CSS TerminologyDeclaration block

Declaration Declaration

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

Selector

Property PropertyValue Value

Page 24: Intro to XHTML/CSS

CM475 SENIOR SEMINAR IN COMM

CSS Terminology

Rule

Declaration block

Declaration Declaration

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

Selector

Property PropertyValue Value

Page 25: Intro to XHTML/CSS

•Separates structure and content from presentation

•Simplifies, speeds revisions, redesigns

CM475 SENIOR SEMINAR IN COMM

Advantages of combining XHTML and CSS

Page 26: Intro to XHTML/CSS