Brendon Branigin Posted March 21, 2006 Share Posted March 21, 2006 say somone is on index and i want them to be on the habitat section of the resources page (habitat is a anchor). what would the url look like? Link to comment Share on other sites More sharing options...
scott100 Posted March 21, 2006 Share Posted March 21, 2006 <a href="resources.htm#habitat">visit habitat</a> you would also have to put name="habitat" somewhere on your resources page (not the top or you wont see the effect) Link to comment Share on other sites More sharing options...
Brendon Branigin Posted March 21, 2006 Author Share Posted March 21, 2006 thanks scott Link to comment Share on other sites More sharing options...
Err Posted March 24, 2006 Share Posted March 24, 2006 <a href="resources.htm#habitat">visit habitat</a> you would also have to put name="habitat" somewhere on your resources page (not the top or you wont see the effect) <{POST_SNAPBACK}> I thought the right way was always id="habitat", it still works the same though. Link to comment Share on other sites More sharing options...
Brendon Branigin Posted March 24, 2006 Author Share Posted March 24, 2006 interesting, can somone confirm this? i dont want to develop any more bad habbits ;/ breaking away from table layouts was hard enough. Link to comment Share on other sites More sharing options...
scott100 Posted March 24, 2006 Share Posted March 24, 2006 erm, yeah Rah is right you should use id, but see quotes below, both should be used in meantime.XHTML The id Attribute Replaces The name Attribute Note: To interoperate with older browsers for a while, you should use both name and id, with identical attribute values Link to comment Share on other sites More sharing options...
Err Posted March 24, 2006 Share Posted March 24, 2006 Found it! Here we go: "Note that in XHTML 1.0, the name attribute of these elements is formally deprecated, and will be removed in a subsequent version of XHTML." http://www.w3.org/TR/xhtml1/#h-4.10http://www.w3.org/TR/xhtml1/#C_8Edit: Yup, scott is right, you should mean while use both of them together. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now