Form
<style> ... </style>
Attributes
attribute |
default |
description |
id |
none |
specifies the unique ID |
type |
none |
specifies the style sheet type |
media |
none |
specifies the media type for the style information has been designed |
Explanation
The style tag specifies a style sheet. To prevent browsers which don't support style sheets from display the style information, embed it within the comment tag (<!-- ... -->). The style sheets is described in other files, and if you wish to use the sheets loaded from the files, use the
<link> tag.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=shift_jis">
<title>Sample</title>
<style tye-"text/css"><!--
p { border-color:1px solid black;
font-size:90%;
color:red;
}
--></style>
</head>
<body>
<h1>Sample</h1>
<p>
You can specify font colors.
</p>
</body>
</html>