+ 1

How can we change font size of just one word in a paragraph?

Example: <p style="font-size:24">This is a paragraph</p> now I want to change size of the "is" word from 24 to 48, Is it possible? does it have relevant tags or something?

15th Aug 2017, 11:20 AM
Ehsan Jafari
Ehsan Jafari - avatar
8 odpowiedzi
+ 3
You could make a class and use <span class="ABC"> or you could style it inline <span style="style properties here">
15th Aug 2017, 12:31 PM
Bethany Marty
Bethany Marty - avatar
+ 1
Thanks corejava I needed something like div but didnt know about span. I also tried div but it makes a block on seperate line and I needed inline block.
15th Aug 2017, 11:54 AM
Ehsan Jafari
Ehsan Jafari - avatar
+ 1
Yep, span is the best way to go. It's very customizable and inline
15th Aug 2017, 12:30 PM
Bethany Marty
Bethany Marty - avatar
+ 1
yes, Span tag was exactly what I wanted: <p style="font-size:24">This <span style="font-size:48">is </span> a paragraph.</p> Thank u all :)
15th Aug 2017, 5:03 PM
Ehsan Jafari
Ehsan Jafari - avatar
0
yes u can do with span tag and with css
15th Aug 2017, 11:26 AM
corejava
0
did u get ur answer with span tag??
15th Aug 2017, 12:30 PM
corejava
0
yes its tags
15th Jan 2018, 1:43 PM
John Uche
John Uche - avatar
- 1
I think CSS is best for that because I have expressions that
15th Aug 2017, 11:26 AM
Irwin Lopez
Irwin Lopez - avatar