Adding Styles to Web pages: Difference between revisions
Jump to navigation
Jump to search
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</... |
(No difference)
|
Latest revision as of 18:58, 19 May 2008
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" />