Adding Styles to Web pages

From Got Opinion Wiki
Revision as of 16:58, 19 May 2008 by Paul (talk | contribs) (New page: Three ways to add styles to your pages. == Inline == Add to a tag using <code>style</code> attribute <pre><p style="enter CSS"></p></pre> == Embedded == Add styles in the <code>head</...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Three ways to add styles to your pages.

Inline

Add to a tag using style attribute

<p style="enter CSS"></p>

Embedded

Add styles in the head of XHTML document

<style type="text/css">enter CSS</style>

Linked

Style is in another document and the markup is linked to the style.

<link href="style_sheet.css" media="screen" rel="stylesheet" type="text/CSS" />
Back to Cascade Style Sheets