Interview Questions

How can I eliminate the extra space after a </form> tag?

HTML Interview Questions and Answers


(Continued from previous question...)

18. How can I eliminate the extra space after a </form> tag?

HTML has no mechanism to control this. However, with CSS, you can set the margin-bottom of the form to 0. For example:
<form style="margin-bottom:0;" action=...>

You can also use a CSS style sheet to affect all the forms on a page:
form { margin-bottom: 0 ; }

(Continued on next question...)

Other Interview Questions