Login | Register | FAQ
Anonymous

span id

+ Post a reply

3 posts Page 1 of 1


span id

by simonslatinsek » Sun Jul 06, 2014 9:53 am

hi I would like to have each word in different color(health, wealth, wise) lesson 8, how can I do this?


thank's
Simon
User avatar

simonslatinsek

  • Posts: 2
  • Joined: Sun Jul 06, 2014 9:47 am

Re: span id

by simonslatinsek » Sun Jul 06, 2014 10:10 am

ok, i have found a way:

#p1 {
color:blue;
}



#p2 {
color:red;
}

#p3 {
color:green;
}
but why I have had do it in html like ID="p1"? because without lettre 'p' is no effect
for what lettre 'p' stands for? and in lesson 7 is used like ID="c1-1" why is here lettre 'c'?

tnaks for answers
User avatar

simonslatinsek

  • Posts: 2
  • Joined: Sun Jul 06, 2014 9:47 am

Re: span id

by XainPro » Thu Jul 10, 2014 12:34 pm

its just a unique name to identify and link html to css
you can write anything you want after # sign
you can use
#abc or #xyz ;)
Enjoy your html
User avatar

XainPro

  • Posts: 3933
  • Joined: Fri Feb 17, 2012 8:10 pm


+ Post a reply

Page 1 of 1