+ 2

How to change font style in paragraph tag

26th Jan 2017, 9:13 AM
Arun
Arun - avatar
4 Answers
+ 3
There are different ways: You can use the style tags: <p><i>Hello World</i></p> //will change the style to italic <p><b>Hello World</b></p> //will change the style to bold <p><i><b>Hello World</b></i></p> //will change the style to italic and bold You can use in-line css: <p style="font-style:italic;">Hello World</p> //will change the style to italic You can use internal(embedded) css, goes in head section: <style type="text/css" > p{ font-style:italic; } //will change style to italic </style> You can also do external css but I'll let you search up on that. I encourage you to go to w3schools for nice examples and lessons too.
26th Jan 2017, 9:27 AM
Ghauth Christians
Ghauth Christians - avatar
+ 2
is it possible to change size and color in p tag
26th Jan 2017, 9:31 AM
Arun
Arun - avatar
+ 1
<p style="font-style:italic;">your text</p>
26th Jan 2017, 9:27 AM
Álvaro
0
Give paragraph a class and add font-family in CSS. Example - IN HTML <p class=paragraph> Your paragraph here </p> IN CSS .paragraph{font-family: 'Quicksand', sans-serif} Also you need to add this in head (HTMl file) <link href="https://fonts.googleapis.com/css?family=Quicksand" rel="stylesheet">
26th Jan 2017, 9:30 AM
shashi prakash
shashi prakash - avatar