+ 5
how can i only style one word in paragraph
12 Antworten
+ 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; }
+ 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......
+ 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.
+ 3
can we use p.biggy{font-size=100px;}? both statements are same?
+ 3
also we can use <em> to style one word
+ 3
please declare with id or class
+ 3
panu ba?
+ 2
yes. it is the same
+ 2
you can also inline CSS in common text related tags
+ 2
nd ko alm e sayang
+ 2
awele's thought was correct
+ 2
how did you said that abinash? there's many tags to style a word.