Computer Related

CSS Basic Custom Style Sheet

The <Style> tags allows you to define style information for an HTML document.

  • <Style> tags always go in the header of the HTML document.

 

Example below:

<html>
<head>
<style type=”text/css”>
h1 {color:red;}
p {color:blue;}
</style>
</head>

<body>
<h1>Header 1</h1>
<p>A paragraph.</p>
</body>
</html>

Please feel free to copy and paste this into a new text document and save it as a .html file. You can then view or drag it into most web browsers such as Firefox or Internet Explorer.

Nerd

I am the Nerd.

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.

Verified by MonsterInsights