XHTML 1.0 Test
A <doctype> defines the document type of any XHTML document. It can be of three types:
A developer wrote this image tag: <img src ="states.gif" width ="330" height ="406" alt="States" usemap ="#statemap" /> What code should follow this?
How will you import a style sheet named "basic.css" in your web page?
How will you specify a comment in an XHTML document?
How will you specify the language attribute in XHTML?
On one of your web pages named "Listing.xhtml" you specified a target like this: <a name="target4">Old Listing</a> How will you make a link to the above target?
Please choose the most appropriate option. One of the differences between XHTML and HTML 4.01 is that the "name" attribute has been replaced by the "id" attribute in:
The following registration form was coded by a programmer in XHTML: 1. <!-- Start of the Form Fields --> 2. Name: 3. <input type="text" name="name" maxlength="50" /> 4. Registration Date: 5. <inpu...
What do you understand by cellpadding?
What do you understand by cellspacing?
What do you understand by the following line of code? <html xmlns="http://www.w3.org/TR/REC-xml-names">
What is the numeric entity representation of the 'less than' sign (its entity name is '<') ?
Which attribute specifies the submit URL in a form?
Which attributes of the <table> tag is deprecated in HTML 4.01 and not supported in strict DTD XHTML?
Which of the following statements is correct for the <blockquote> tag?
Which of the following is correct about the <!DOCTYPE ...> tag?
Which of the following is correct for an image?
Which of the following is correct regarding the frame attribute of the table tag?
Which of the following is incorrect about the relation between HTML and XHTML?
Which of the following is incorrect with regard to the <select> tag?
Which of the following is not correct for a <meta> tag?
Which of the following is true for the "<param>" tag?
Which of the following lines will be allowed by an XHTML parser?
Which of the following represents the basic tag structure of an XHTML document?
Which of the following statements is correct with regard to DTDs?
Which of the following statements is true about the table header, body and footer tags?
Which of these tags will create a single space character?
While designing the links page of your website, you want the link to open in a new window. How will you implement this with XHTML using Transitional doc type?
While writing a strict DTD XHTML document, you want to create a table having 2 columns, both left aligned. What technique will you choose to do this?
Within a table cell "<td>":
You are developing a website. In one of the subscription forms, you need to get the subscription start date from the user. The HTML code is as follows: Day <input type="text" size="3" /> Month <in...
You have defined the following image in an XHTML document: <img src="/image/logo.gif" alt="" id="img1" />
You have to add a list of products in a drop-down list. What will you use to group the identical products under a category name?
You placed four radio buttons on a web form. You want the users to specify whether they are male or female and whether they are married or single. The code is as follows: Male: <input type="radio"...
You specified a base tag and anchors as follows: 1. <base target="_blank"></base> 2. <a href="http://www.yahoo.com">Yahoo</a> 3. <a href="http://www.google.com" target="_top">Google</a> Which of ...
You want to create a link for your website allowing users to email the webmaster. How will you implement this if the webmaster's email is "webmaster@xcompany.com"?
You want to display a table listing out customer names and their contact information. The heading of the table is shown in the figure. What is the code for creating the first line of the table head...
You want to provide a form field to the users for writing lengthy comments on the quality of the services provided by you. Which of the following tags will you use?
Your browser supports bidirectional text. Which tag will you use if you need to display text from right to left?
Your website has moved to some other address. How will you automatically redirect a user to that address within 3 seconds of landing on the old address?