Re: Style?

by "Steven Antonio" <santonio(at)delanet.com>

 Date:  Wed, 19 Apr 2000 00:44:03 -0400
 To:  "hwg-basics" <hwg-basics(at)hwg.org>
 References:  computer
  todo: View Thread, Original
> Is there a way to assign font properties to the beginning of a page
without
> using  an external stylesheet?

Yes.  Use the HTML element <style> and the CSS language in the head of your
page. Here's an example:

<head>
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css">
<!--
   h1 { color: red; font-style: italic }
   p  { color: blue; font-family: Arial, sarif; font-size: 12pt }
   -->
</style>
</head>

The <meta> tag shown is not necessary but recommended.  You can use as many
<style> elements as you want.  If you notice, there are comment tags within
the <style> element.  These are necessary for older browsers that do not
support the <style> element.  This will keep the <style> element's contents
from being shown (rendered) on your page.  If your page also uses an
external style sheet, any styles declared in the head of your page will
override the external style sheet.

Steve Antonio
santonio(at)delanet.com

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA