myk247365 Posted November 2, 2009 Share Posted November 2, 2009 Does W3Schools have a database I could query that would give me all the attributes for an HTML tag i.e.select * from attributes where tag='anchor';This would return a result of:nameidalthrefetc....so that once I determine which type of tag is most appropriate for my data, I can find out what attributes, event handlers etc... are available with that tag?The idea being this DB would kept up by the appropriate standards body and as the spec changes the DB is kept up to date. Then I can create some code that would get the appropriate attributes or whatever and see if I have an appropriate value in my DB.I'm guessing the DB already exists and is the backend for the w3schools pages, my question is, can I query the DB myself?thanks Link to comment Share on other sites More sharing options...
Synook Posted November 2, 2009 Share Posted November 2, 2009 That's a cool idea, but no. The easiest way is to just search the relevant DTD for e.g. "<!ELEMENT a ", and that will bring up the information about the element.Note: the W3Schools isn't a standards body. Link to comment Share on other sites More sharing options...
Ingolme Posted November 2, 2009 Share Posted November 2, 2009 There's a list of elements here:http://w3schools.com/tags/default.aspIf you click on one of them, they'll give you a list of all the attributes the element uses. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.