Adding Styles to Web pages
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" />