how do you change the font colour of your text in HTML
Answers
Answered by
13
The way to change the color of your text is by using CSS. The old HTML <font> attribute is not supported in HTML5. The preferred method is to use CSS to define the style of your elements.
Answered by
3
Answer:
HTML:
- The preferred markup language for documents intended to be viewed in a web browser is HTML, or HyperText Markup Language.
- Technologies like Cascading Style Sheets and scripting languages like JavaScript can help.
To change the font colour of text in HTML
- Use the style attribute in HTML to change the font colour.
- An element's inline style is specified through the style property.
- The CSS property colour and the attribute are both used with the HTML <p> tag.
#SPJ2
Similar questions
Math,
5 months ago
Physics,
5 months ago
Math,
11 months ago
Math,
11 months ago
CBSE BOARD X,
1 year ago