Should I use the FORM element if I am not sending data? Proper (X) HTML markup

In my web application, I have a user profile page. This page has the following elements:

Connect with Twitter
Connect with Facebook
Timezone select
Language select

The first two things display an OAuth window allowing the user to connect. The last two things are saved using AJAX.

When I make a page, how do I make HTML? I think that all elements should probably be <li> elements in the 'ul' element, opposite the separate elements of the 'div' or 'p' for each.

But which container element should I use? I discuss only the use of “div” and the use of “form”, which has no action.

I collect some data that argument is for the 'form' element, but the form will not actually be used - there will be no submit button. So this is an argument against him.

What would be the best practice for this? If you can also provide a link to supporting documentation that will also be helpful.

Thank!

+3
source share
2 answers

Best practice is that the site works without Javascript, and then adds Javascript / AJAX to it in stages, as improvements.

Progressive Improvement (Wikipedia)

- -, , HTML, . - , -, , , .

, form. **

**, . , , , . , .

+5

, , . , . , , . , for. . , . . .

, , , . , , , , - , , - - .

0

All Articles