smiles Posted December 16, 2005 Share Posted December 16, 2005 I see somecode like this : <input type="submit" value="submit" id="submit" name="submit"> tell me the difference between ID and NAME ??? Thanks ! Link to comment Share on other sites More sharing options...
Prodgers Posted December 16, 2005 Share Posted December 16, 2005 I see somecode like this :<input type="submit" value="submit" id="submit" name="submit"> tell me the difference between ID and NAME ??? Thanks ! <{POST_SNAPBACK}> as far as i know "name" is being deprecated to be replaced by "id". Link to comment Share on other sites More sharing options...
boen_robot Posted December 16, 2005 Share Posted December 16, 2005 I see somecode like this :<input type="submit" value="submit" id="submit" name="submit"> tell me the difference between ID and NAME ??? Thanks ! as far as i know "name" is being deprecated to be replaced by "id". That's right. The ID tag is the "new" thing. However old browsers don't recognize the ID attribute, so it's not a bad thing to place both ID and NAME in elements if you're aiming for maximum accessibility. Link to comment Share on other sites More sharing options...
F-Man Posted December 16, 2005 Share Posted December 16, 2005 In forms, name is used to send the data (in the form of "name=value"), you don't usually enter a name for a submit input because the user cannot change its value. Link to comment Share on other sites More sharing options...
joecoolaug Posted December 17, 2005 Share Posted December 17, 2005 I see somecode like this :<input type="submit" value="submit" id="submit" name="submit"> tell me the difference between ID and NAME ??? Thanks ! <{POST_SNAPBACK}> "ID" is the XHTML replcement for name... i think it's called depracation or something. You will want to use both the Name and Id attribute until XHTML has fully replaced HTML, so that older browsers will be able to handle it. 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