|
Posted by Andy Dingley on 03/15/07 17:47
On 15 Mar, 16:47, "Reiner Wagner" <rwag...@t-online.de> wrote:
> Hello,
>
> I like to use a tag <red> like the tag <b>, that means I like to use the
> following:
>
> <p>This is a <red>test</red></p>
Tags are fixed, but you can easily achieve what you need and almost
what you wanted. Use CSS and a class attribute.
Note that the class could be called "red", but that's generally
frowned upon. What if you wanted to change the "emphasis color" to
gren this weekend, for St Patrick's Day? A more generic or function-
specific name is regarded as better than an implementation-dependent
name like "red" or "bold24point"
<html>
<head>
<title>An example, there are many other ways to achieve this</title>
<style type="text/css" >
..my-style {
color: red;
}
</style>
</head><body>
<p>This is a <span class="my-style" >test</span></p>
</body></html>
Navigation:
[Reply to this message]
|