Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How to change color for all <p> and all <h1> in my page using css ?

user-image
Question added by karem ibrahemm , ويب ديزاينر , فالكو
Date Posted: 2017/03/19
SAMAL P P
by SAMAL P P , Junior SEO Analyst , Global media insight

You can add internal styling tag of color with html selectors p and h in <head> tag.

eg; <style>

      p{color:your color}

      h1{color:your color}

note you can use any css tag style element in internal styling. 

Adel Ezat Fawzy Ellozy
by Adel Ezat Fawzy Ellozy , Webdeveloper. , Saudi Arabian Maritiem Sports Federation

Text color :

p , h1 { color : green ; }

 

Background color :

p , h1 { background-color: yellow;}

 

both :

p , h1 {

color : green ;

background-color: yellow;

}

Salam Waddah
by Salam Waddah , Staff Software Engineer , Hello Chef

To change P and H1 text colors use:

{    color: blue;}

 

h1 {    color: red;}

 

To change P and H1 background colors use:

{     background-color: red;}

 

h1 {     background-color: blue;}

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.