Home > other >  font color( I am new to this soz if it is basic)
font color( I am new to this soz if it is basic)

Time:04-02

I can't get the font color tag to work. where have I got wrong <font="color:orange> <! –– [/lyrics] ––>

All my life, I've been walking on my own

Along the lonely road of the heart

On my side, I got symphonies and songs

To help me find my way through the dark

Oh, six in the morning with nowhere to go

Sing hello world, it feels so good to be home

Lost in the dark, but I'll never be alone

Sing hello world, it feels so good to be home

Hello, hello, hello world

I open my eyes and said hello to the world (hello to the world)

Hello, hello, hello world

I open my eyes and said hello to the world

All night long, I've been talking to myself

The voices in my head don't cry

On my mind, I become somebody else

So this is how it feels to say goodbye

Oh, six in the morning with nowhere to go

Sing hello world, it feels so good to be home

Lost in the dark, but I'll never be alone

Sing hello world, it feels so good to be home

Hello, hello, hello world

I open my eyes and said hello to the world (Hello to the world)

Hello, hello, hello world

(I open my eyes and said hello to the world) <! –– [/lyrics] ––> </font>

I tried a lot of things but can't get it to work(yes trail and error falled me)

CodePudding user response:

first of all, <font> tag is tag from HTML4 and isn't supported in HTML5 (you shouldn't use it).

If you want to change color of text, use color property in CSS. Here is link to a JSFiddle: https://jsfiddle.net/Libetas/8nLak3we/1/

I hope it was useful.

CodePudding user response:

if you have a separate CSS file just know your tag if its a paragraph or a heading tag and

h1 {
color: orange
}

and if you are trying to add inline CSS then add tag style like

<p style = "color: orange">

this also do the trick

CodePudding user response:

To set the color of your font, in the CSS file (or inline) you would want to use color. You should not use the font tag as it is no longer supported in HTML5.

p { color: blue }

This would set the color of all your p (paragraph tags) to blue. To do this using inline CSS you would use the following snippet.

<p style="color: blue">Hello World</p>

With color, you can use color codes, or you can use the predefined CSS colors like blue, orange, and so on.

  • Related