style="color:rgb(255,255,0)"
. The font tag is deprecated and inline style should also be avoided. Don't forget your double quotes on attribute names: attr="value"
not attr=value
This would be best done in CSS using a target class:
<p class="my-class">Some text</p>
In your css file:
.my-class {
color: rgb(255,255,0);
}
The
tag is also not to be used for layout. It should only be used for new-lines in text. Instead, use display: block
on the elements that should be on a new line.
Here's a complete sample: (note that <p>
tags have display: block
by default)
<p class="red-text">Red</p>
<p class="green-text">Green</p>
<p class="gold-text">Gold</p>
CSS:
.red-text {
color: #FF0000;
}
.green-text {
color: green;
}
.gold-text {
color: rgb(255,255,0);
}