user5552587
user5552587

Reputation:

Multiple styles in HTML

Hi I have made a paragraph in HTML

<p style="font-size:50px" style="color:blue">this is my paragraph</p>

Why will this not show both the colour and the size. How could I fix this the colour is not showing

Upvotes: 1

Views: 3100

Answers (2)

zafar hayat
zafar hayat

Reputation: 98

Please write in one style tag you using two tags so its not working.

<p style="font-size:50px;color:blue">this is my paragraph</p>

Using this please

Upvotes: 1

SLaks
SLaks

Reputation: 887275

HTML does not recognize duplicate attributes.
You can combine your styles in one attribute, separated by semicolons.

However, you should switch to actual CSS (with selectors) instead.

Upvotes: 0

Related Questions