N1KTT0
N1KTT0

Reputation: 1

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

I can't get the font color tag to work. where have I got wrong

<font="color:orange>
<! –– [lyrics] ––>

<p>

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

<p>

Along the lonely road of the heart

<p>

On my side, I got symphonies and songs

<p>

To help me find my way through the dark

<p>

Oh, six in the morning with nowhere to go

<p>

Sing hello world, it feels so good to be home

<p>

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

<p>

Sing hello world, it feels so good to be home

<p>

Hello, hello, hello world

<p>

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

<p>

Hello, hello, hello world

<p>

I open my eyes and said hello to the world

<p>

All night long, I've been talking to myself

<p>

The voices in my head don't cry

<p>

On my mind, I become somebody else

<p>

So this is how it feels to say goodbye

<p>

Oh, six in the morning with nowhere to go

<p>

Sing hello world, it feels so good to be home

<p>

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

<p>

Sing hello world, it feels so good to be home

<p>

Hello, hello, hello world

<p>

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

<p>

Hello, hello, hello world

<p>

(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)

Upvotes: 0

Views: 93

Answers (3)

Libertas
Libertas

Reputation: 408

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 your code:

<p style="color: orange;">
   Here goes your lyrics...
</p>

I hope it was useful.

Upvotes: 2

fanch__
fanch__

Reputation: 38

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.

Upvotes: 1

Hero SHIMA
Hero SHIMA

Reputation: 91

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

Upvotes: 1

Related Questions