What is the main difference between id and name in HTML?

Is there a significant difference in id and name attributes in HTML? Please explain.


  • While id is so you may access an element with css and JavaScript, name is so you can access the said element in php.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion