Teaching Presentation - Style Attributes

Definition and Usage
HTML Styling
Text Color
Cascading Style Sheets (CSS)
History of the Style Attribute

Definition and Usage

w3schools.com

Top

HTML Styling

<body style = "background-color:lightgrey">

<h1> This is a heading </ h1>

<p> This is a paragraph. </ p>

</ body>

w3schools.com

Top

Text Color:

<! DOCTYPE html>

<html>

<body>

<h2 style= " color:red "> I am Red </ h2>

I am Red

<h2 style="color:blue"> I am Blue </ h2>

I am Blue

</ body>

</ html>

w3schools.com

Top

Cascading Style Sheets (CSS)

w3schools.com

Top

History of the Style Attribute

w3schools.com

Top