Web Design Forum: Selectors - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Selectors

#1 User is offline   tqmd1 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 33
  • Joined: 27-October 11
  • Reputation: 0

Posted 18 January 2012 - 06:05 AM

Dear experts

What is difference between

#header
div#header

Thanks
0

#2 User is offline   Wickham 

  • Web Guru
  • View gallery
  • Group: Moderators
  • Posts: 2,876
  • Joined: 11-June 09
  • Reputation: 257
  • Gender:Male
  • Location:Salisbury UK
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 18 January 2012 - 07:07 AM

#header is an id name that can be used with any element like these markups:-
<h3 id="header">...</h3>
<div id="header">...</div>
<ul id="header">...</ul>
<table id="header">...</table>

(except that you should only use an id once on a page).

div#header can only be used in a div markup:-
<div id="header">...</div>

(but only use it once on a page).
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users