eTechtips

Tech Tips and Insights

Html: how to use an internal stylesheet

/ , ,

In order to use an internal stylesheet, place the following in the <head> section of your html document.

<style type="text/css" media="all">

<!--

Place your css here

-->

</style>

The <!– –> (xml style comment) is so that older browsers, though very unlikely, will not get confused by the CSS code within the page.

The media=”all” entry tells the rendering engine which style sheets to use, in this case “all” means to use it for all rendering engines.

Loading

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.