Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to change the font color and font weight in HTML

Tags:

html

So I am doing an assignment and I ran into a problem. I am supposed to change the paragraph font to dark orange and the font weight to 900. Keep in mind this is supposed to be done in HTML, not css. Is this even possible because It only lets me make the font orange not dark orange, and it doesn't let me change the weight.

My code:

<p style="color: dark orange" "font-weight: 900">Hello my name is Charles.</p>
like image 433
PapiP Avatar asked Dec 04 '25 17:12

PapiP


1 Answers

It should be:

<p style="color: darkorange;font-weight: 900;">Hello my name is Charles.</p>
  1. No spaces allowed in color attribute
  2. Styles should be added with ; separation

Update 1: From the question comments

You are using CSS as inline style. There are three ways to insert CSS, Inline, Internal, External. This article helps!

like image 169
Thamilhan Avatar answered Dec 09 '25 01:12

Thamilhan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!