XHTML

XHTML

Test your XHTML knowledge with free quizzes on MyCodeSkills covering core concepts.


  1. What does XHTML stand for?

    • Extensible HyperText Markup Language
    • Extra HyperText Markup Language
    • Extended HyperText Machine Language
    • Extensible Host Text Markup Language
  2. Which of the following is a correct XHTML tag?

    • <br>
    • <br/>
    • <br />
    • <br >
  3. Which of the following is required in all XHTML documents?

    • A <script> tag
    • A closing <html> tag
    • An XML declaration
    • A DOCTYPE declaration
  4. In XHTML, attribute values must be:

    • Quoted
    • Optional
    • Uppercase
    • Numeric
  5. Which tag is used to define paragraphs in XHTML?

    • <p>
    • <para>
    • <paragraph>
    • <pg>
  6. Which of the following is a valid way to include a CSS file in XHTML?

    • <link rel='stylesheet' href='style.css' type='text/css' />
    • <style src='style.css'>
    • <css link='style.css'>
    • <link href='style.css'>
  7. Which XHTML tag is used to create a drop-down list?

    • <dropdown>
    • <list>
    • <select>
    • <option>
  8. Which attribute is used to group radio buttons in XHTML?

    • group
    • name
    • id
    • type
  9. What is the correct way to define a table in XHTML?

    • <table><tr><td>Data</td></tr></table>
    • <table><row><cell>Data</cell></row></table>
    • <table><td>Data</td></table>
    • <tab><tr><td>Data</td></tr></tab>
  10. Which element is used to define a list item in XHTML?

    • <item>
    • <li>
    • <listitem>
    • <entry>
  11. What is XHTML 1.1 best known for?

    • Being a new HTML standard
    • Modularization support
    • Replacing HTML5
    • Dropping XML syntax
  12. Which XHTML version introduced modularization?

    • XHTML 1.0 Strict
    • XHTML Basic
    • XHTML 1.1
    • XHTML Transitional
  13. What does 'application/xhtml+xml' MIME type imply?

    • Document will be ignored
    • Browsers treat it as XML
    • It is backwards compatible with HTML
    • It is deprecated
  14. Which tool is best for transforming XHTML documents?

    • JavaScript
    • CSS
    • XSLT
    • PHP
  15. How can you ensure XHTML content is accessible?

    • Use inline styles
    • Use ARIA roles
    • Avoid semantic tags
    • Use tables for layout