+ 2
How to change font style in paragraph tag
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.
+ 2
is it possible to change size and color in p tag
+ 1
<p style="font-style:italic;">your text</p>
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">