Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

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

user-image
Question ajoutée par karem ibrahemm , ويب ديزاينر , فالكو
Date de publication: 2017/03/19
SAMAL P P
par 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
par 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
par 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

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?