ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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

user-image
تم إضافة السؤال من قبل karem ibrahemm , ويب ديزاينر , فالكو
تاريخ النشر: 2017/03/19
SAMAL P P
من قبل 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
من قبل 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
من قبل 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;}

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟