Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.

Can I add CSS style to HTML p tag?

make money online
badboy Offline referral

Posts: 106
Joined: May 2014
Reputation: 0

Is this OK with Google and W3C validator seo in general that I add inline CSS style, CLADD or ID to P tag?
surenot Offline referral

Posts: 498
Joined: Jan 2014
Reputation: 16

Senior Member
You can wrap the entire P tag with DIV and then use DIV to assign the CSS to its content. Or you can wrap the text inside <p> in <span>
<div style="color:#222;" class="myclass" ID="myid"><p>content</p></div>
<p><span style="color:#222;" class="myclass" ID="myid">content</span></p>
tk-hassan Offline referral

Posts: 17
Joined: Mar 2015
Reputation: 0

Junior Member
yes you can use style inline with <p> tag, but its recommended to use centerlized Stylesheets
evathomsan Offline referral

Posts: 336
Joined: Feb 2015
Reputation: 4

Senior Member
Yes, of course you can add css with p tag in inline form.

Google this topic

User(s) browsing this thread: 1 Guest(s)