Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

HTML - ID vs CLASS

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
941 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 22, 2011

A quick video explaining the differences between ID's and CLASS's in HTML.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (PineHack)

  • @Detjo IDs are only *supposed* to be used once. This is mainly for javascript purposes. However, IDs will work on more than one element on a page. This is incorrect syntax, though it still works.

see all

All Comments (3)

Sign In or Sign Up now to post a comment!
  • I have yet to find a video that explains this properly!

    You just demonstrated exactly what you said you cant do; used an 'id' twice - which gave you the same result twice, as it should do coz its calling the same style -

    and used a class twice - which gave you the same result twice, as it should do coz its calling the same style.

    So i'm afraid i'm no wiser today :(

  • OMG, hey just want to tell you thank you so much. I have been searching all over the internet for a suitable understanding of ID and Class. This make much more sense. Thank you! Kevin from Jamaica

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more