I have a simple HTML snippet like this:
<p align= "left"> <FONT size=3><STRONG> Asset: </STRONG></FONT><STRONG><FONT color="blue" size=2> something something here </FONT></STRONG><br> </p>
The font color does not seem to work but the font size does change.
Also, I do understand that explicit font
description is expiring and we should be using the CSS styling. If you could suggest that option,okay to use that option as well.
2
Answers
Is better to use css:
Using HTML elements and classes is the better option although I do admit some might seem overly complicated.
For my answer, first I give the paragraph a class. Inside of it, I’m aligning the text left and bolding EVERYTHING in it.
Next, spans are by default inline (meaning they show inline with the text, but you don’t have control over the spacing). You could also use a div. So every span in the paragraph tag, I’m setting to inline block so I can control the spacing around it while keeping the text inline.
Next each part of the content gets wrapped in its own span.
Since earlier I already set all content to bold, I’m only going to give the title span a margin to the right to space it out and change the font size.
Next for the rest I wrapped that content in another span and changed the color to blue (hex is #Red Green Blue) and I changed the font size also.