300+ [LATEST] Html+xhtml Interview Questions and Answers

Q1. Write Example That Shows Every Attribute Must Have A Value In Xhtml?

Using example I will show you in XHTML every attribute must have a value.
Example in HTML:

    decline
    Below, I write a same example in XHTML.

      decline In this we assign value compact, checked to element compact and checked.

      Q2. How Do I Use Forms?

      The basic syntax for a form is:


      When the form is submitted, the form data is sent to the URL specified in the ACTION attribute. This URL should refer to a server-side (e.g., CGI) program that will process the form data. The form itself should contain

      •  at least one submit button (i.e., an element),
      •  form data elements (e.g., ,