Skynet Posted December 3, 2006 Share Posted December 3, 2006 I noticed that you can use id and name attributes interchangebale in many cases in an HTML document.What are some instances in which one is required over another and some genaral recommendations as to which to use and whether to avoid using one or the other in some circumstances? Link to comment Share on other sites More sharing options...
jlhaslip Posted December 3, 2006 Share Posted December 3, 2006 "name" is a Deprecated attribute and would not validate using the (x)html strict Doctype."id" is the currently reccomended attribute according to the w3c standards.http://www.w3schools.com/tags/ref_standardattributes.asp Link to comment Share on other sites More sharing options...
Skynet Posted December 3, 2006 Author Share Posted December 3, 2006 Thanks 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