You are here: Re: Tag <red> « HTML « IT news, forums, messages
Re: Tag <red>

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация