PDA

View Full Version : question about "id=" tag


Dribbles
07-26-2009, 02:31 AM
In this code:

<div id="profile_tabs">

Where does the browser get the "id=" info from? the style sheet?

Andrew Green
07-26-2009, 02:40 AM
it's just a unique identifier for a tag, it is set by whoever wrote the html. Useful if you want to manipulate the page via javascript / ajax as you need to be able to pick out a specific element.

Dismounted
07-26-2009, 05:31 AM
When you put a URL into the address bar and click enter, the browser requests information from that resource. The server replies with some headers, and a response. This response is the HTML. Your browser simply interprets this HTML and displays it on screen.

James Birkett
07-26-2009, 01:28 PM
As these 2 said, and yes, it can also be requested from a stylesheet using

#profile_tabs{
some CSS;
some more CSS;
}