Jump to content

nshady

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by nshady

  1. Firstly , I just wanna know , What's the different between <blackquote>Hi im Davis</blackquote>AND <blackquote cite = http://www.davise.comHi im Davis</blackquote>I have no idea what's the point i put the URL there , Even when it comes out in Web Browser , We cant see the URL Adress , please guide me thanks.

  2. oops edited , reenter my questionsBut ID can be used a lot of times rite ? It's just that it cannot use da same NameLike <p id=orange>so the next 1 like <div id=(cannot orange anymore)as for class u can use same for both with different elements rite ?

  3. so i can omit id ? i use class in every single document But ID can be used a lot of times rite ? It's just that it cannot use da same NameLike <p id=orange>so the next 1 like <div id=(cannot orange anymore)as for class u can use same for both with different elements rite ?

  4. This is an example of a class, the class is called .red and you can see that when i add this class to the <p> and <div> tags there contents are colored red.
    <html><head><style type="text/css">.red {color:red}</style></head><body><p class="red">This is a paragraph</p><div class="red">This is a paragraph</div></body></html>

    This is an example of id, notice how the <p> tag has id="red and the <div> tag has id="green".  Then if you look in the <style> tag i can add styles to these tags by specifying a # in front of there id = #red + #green.

    <html><head><style type="text/css">#red {color:red}#green {color:green}</style></head><body><p id="red">This is a paragraph</p><div id="green">This is a paragraph</div></body></html>

    Does this make sense? :)

    I think im beginning to understand , actually Id and Class have the same effect its just that ID can be used with 1 element rite ? Best to use one time.So better to use class rite ? What if i use class in every part , without using ID at all , issit okay ?
  5. Hi , I read a book and they mention bout <element id=name and <element class=nameid=name identifies a particular element while class=name identifies a particular classhuh ? what a particular class ? Element got class and individual ones ? Please guide me thanks.

×
×
  • Create New...