Can I use non existing CSS classes?

I have a table where I show/hide a full column by jQuery via a CSS class that doesn’t exist: <table> <thead> <tr> <th></th> <th class=”target”></th> <th></th> </tr> </thead> <tbody> <tr> <td></td> <td class=”target”></td> <td></td> </tr> <tr> <td></td> <td class=”target”></td> <td></td> </tr> </tbody> </table> With this DOM I can do this in one line via jQuery: … Read more

input type=”submit” Vs button tag are they interchangeable? [duplicate]

This question already has answers here: Difference between <input type=’button’ /> and <input type=’submit’ /> (8 answers) Closed 11 months ago. input type=”submit” and button tag are they interchangeable? or if there is any difference then When to use input type=”submit” and when button ? And if there is no difference then why we have … Read more

Is it a good practice to use an empty URL for a HTML form’s action attribute? (action=””)

I am wondering if anyone can give a “best practices” response to using blank HTML form actions to post back to the current page. There is a post asking what a blank HTML form action does here and some pages like this one suggest it is fine but I’d like to know what people think. … Read more

Is it valid to have a html form inside another html form?

Is it valid html to have the following: <form action=”a”> <input…/> <form action=”b”> <input…/> <input…/> <input…/> </form> <input…/> </form> So when you submit “b” you only get the fields within the inner form. When you submit “a” you get all fields minus those within “b”. If it isn’t possible, what workarounds for this situation are … Read more