Jump to content

name attribute


chadmichael
 Share

Recommended Posts

It is very much valid but in XHTML 1.0 is being replaced with "id".It is VERY powerful as it identifies the element in a unique way - seperating it from just being another <table> or <tr>. Javascript uses the attribute most heavily.<table> vs. <table name="testscores">The second one allows me visually and programmatically single out that table from all the other <table> on the page. If each were assigned a name, then its easier to identify them. Think of it like naming your children - if you don't give the one, then how are you gonna tell them to shut up!!:)

Link to comment
Share on other sites

I am pretty sure it is no longer valid. The name attribute was probably used by JavaScript. Do you have javascript in this website???If you remove the name attributes the javascript will stop working...I suggest you change the name="" to id="" and in the javascript reference them using document.getElementById.If you need some help with that just post your questions and code.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...