+ 5

how can i only style one word in paragraph

13th Jul 2016, 4:42 PM
sonal kunal
sonal kunal - avatar
12 Respostas
+ 10
you could wrap it with a span class . <p> <span class="biggy">Biggy</span></p> then in the CSS u could style it like .Biggy { font-size=100px; }
13th Jul 2016, 8:43 PM
Awele Omeligwe
Awele Omeligwe - avatar
+ 8
the easiest way is span <span color="red" > hi </span> if you want more complicated then type in html <p class="anything">hi my name is <em>yash</em>follow me > </p> .... and then type in css p.anything { color:red } 
..... <em> tag does not allow css to design all words with red . ... it only allow whatever is in its tag......
31st Jan 2017, 8:03 PM
yash shukla tech.
yash shukla tech. - avatar
+ 7
There are a number of tags you can wrap around the word that you want to style such as: <em>, <strong>, <i>, <b>, <ins>, <del>, <sup>, <sub>, etc... but my favorite is <span> because you can then apply more than one style to the word in css.
23rd Feb 2017, 10:51 AM
Joachim Roma
Joachim Roma - avatar
+ 3
can we use p.biggy{font-size=100px;}? both statements are same?
17th Jul 2016, 2:07 PM
Abinash Satpathy
Abinash Satpathy - avatar
+ 3
also we can use <em> to style one word
17th Jul 2016, 2:09 PM
Abinash Satpathy
Abinash Satpathy - avatar
+ 3
please declare with id or class
29th Jan 2017, 6:09 PM
James
+ 3
panu ba?
31st Jan 2017, 2:35 PM
ChristianMar
+ 2
yes. it is the same
17th Jul 2016, 5:37 PM
Awele Omeligwe
Awele Omeligwe - avatar
+ 2
you can also inline CSS in common text related tags
26th Jan 2017, 10:52 AM
Utkarsh Dhawan
Utkarsh Dhawan - avatar
+ 2
nd ko alm e sayang
31st Jan 2017, 2:35 PM
ChristianMar
+ 2
awele's thought was correct
31st Jan 2017, 2:37 PM
ChristianMar
+ 2
how did you said that abinash? there's many tags to style a word.
31st Jan 2017, 2:40 PM
ChristianMar