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;

}

More Questions Like This