1. Which of the following is incorrect with regard to the <select> tag?
Answers:
<img src=”/image/logo.gif” alt=”” id=”img1″ />
Answers:
Answers:
Answers:
Answers:
<html xmlns=”http://www.w3.org/TR/REC-xml-names”>
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
1. <!– Start of the Form Fields –>
2. Name:
3. <input type=”text” name=”name” maxlength=”50″ />
4. Registration Date:
5. <input readonly type=”text” value=”javascript:getDate();” />
6. Account Type:
7. <select name=”Account”>
8. <option “selected” value=”Primary”>Primary</option>
9. <option value=”Secondary”>Secondary</option>
10. </select>
Which of the following options is true with regard to this XHTML document?
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Day <input type=”text” size=”3″ />
Month <input type=”text” size=”10″ />
Year <input type=”text” size=”4″ />
Which of the following will you use if you want to put these 3 text fields together in a box?
Answers:
Answers:
Male: <input type=”radio” checked=”checked” name=”chk” value=”male” />
Female: <input type=”radio” name=”chk” value=”female” />
Married: <input type=”radio” checked=”checked” name=”chk” value=”married” />
Single: <input type=”radio” name=”chk” value=”single” />
What is wrong with the above code?
Answers:
Answers:
Answers:
<a name=”target4″>Old Listing</a>
How will you make a link to the above target?
Answers:
Answers:
<img src =”states.gif” width =”330″ height =”406″ alt=”States”
usemap =”#statemap” />
What code should follow this?
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
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 the following is true for the above code?
Answers:
One of the differences between XHTML and HTML 4.01 is that the “name” attribute has been replaced by the “id” attribute in:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
- The “name” should be specified
- The “disabled” attribute disables the drop-down list
- The “multiple” attribute allows the user to choose multiple options
- The text specified in the “value” is displayed in the drop-down list
- None of the above
<img src=”/image/logo.gif” alt=”” id=”img1″ />
Answers:
- The code will only work properly in a browser that supports XHTML
- The code will work properly in a browser that supports both HTML 4.x and XHTML
- The code will only work properly in a browser that supports HTML 4.x
- The code is incorrect, it will not work in any browser
Answers:
- <a href=”mailto:webmaster@xcompany.com”>webmaster</a>
- <a href=”webmaster@xcompany.com”>webmaster</a>
- <a http=”mail:webmaster@xcompany.com”>webmaster</a>
- <mail http=”send:webmaster@xcompany.com”>webmaster</mail>
- <a href=”mailto://webmaster@xcompany.com”>webmaster</a>
Answers:
- It makes the cell span more than one column
- It specifies the space between the cell wall and the contents of the cell
- It specifies the space between two cells
- It makes the cell span more than one row
Answers:
- <p>This is the starting of a new paragraph
- <P>This is the starting of a new paragraph<P>
- Here is a break statement <br></br>
- New Horizontal line <hr />
<html xmlns=”http://www.w3.org/TR/REC-xml-names”>
Answers:
- xmlns specifies the URL to qualify the names used in the XHTML document
- xmlns means html-xml number sequence
- Elimination of xmlns tag will result in the document not being validated by a w3.org validator
- The page will not be displayed properly if the URL is changed to “http://www.w3.org/1999/xhtml”
Answers:
- The table header, body and footer tags are <tablehead>, <tablebody> and <tablefoot> respectively
- The table header, body and footer tags are <tabhead>, <tabbody> and <tabfoot> respectively
- It is recommended to first specify the table header followed by the footer and then the body tag
- None of the above
Answers:
- It is more useful if it is placed in a head element
- It can be used to specify the keywords for the search engines
- It can be used to redirect users to other URLs
- It is mandatory to specify the name or scheme attributes
Answers:
- <opposite>Text should go in opposite direction</opposite>
- <p direction=”rtl”>Text should go in opposite direction</p>
- <bdo dir=”rtl”>Text should go in opposite direction</bdo>
- <text dir=”rtl”>Text should go in opposite direction</text>
Answers:
- <import name=”stylesheet” url=”basic.css”>
- <link rel=”stylesheet” type=”text/css” href=”basic.css”/>
- <style name=”stylesheet” url=”basic.css”>
- <link item=”stylesheet” type=”text/css” href=”basic.css”>
Answers:
- <tr><th>Customer Name</th> <th rowspan=”3″>Contact</th> </tr>
- <tr><th>Customer Name</th> <th colspan=”3″>Contact</th> </tr>
- <tr><th>Customer Name</th> <th cellpadding=”3″>Contact</th> </tr>
- <tr><th>Customer Name</th> <thcellspacing=3>Contact</th> </tr>
1. <!– Start of the Form Fields –>
2. Name:
3. <input type=”text” name=”name” maxlength=”50″ />
4. Registration Date:
5. <input readonly type=”text” value=”javascript:getDate();” />
6. Account Type:
7. <select name=”Account”>
8. <option “selected” value=”Primary”>Primary</option>
9. <option value=”Secondary”>Secondary</option>
10. </select>
Which of the following options is true with regard to this XHTML document?
Answers:
- The syntax of the input tag at line 3 is incorrect
- The readonly attribute in line 5 is not correctly coded
- The syntax of the select tag is not correct
- Maxlength cannot be specified with text boxes
Answers:
- <!!– Here is a comment… –!>
- <– Here is a comment.. –>
- <!– Here is a comment.. –>
- <! Here is a comment… –!>
Answers:
- A strict DTD allows the user to use cascading style sheets
- A transitional DTD displays content in those browsers which don’t support CSS
- A frameset DTD is used to partition the browser window
- All of the above
Answers:
- align
- bgcolor
- cellspacing
Answers:
- <textarea rows=”8″ cols=”20″> Your comments ….</textarea>
- <textarea row=”8″ col=”20″> Your comments ….</textarea>
- <textarea rowcount=”8″ colcount=”20″> Your comments ….</textarea>
- <input type=”text” maxlength=”100″ />
Answers:
- 60;#
- <
- &60#;
- #60&;
Answers:
- XHTML is a stricter and cleaner version of HTML
- XHTML is almost identical to HTML 4.01
- XHTML and HTML both are used to generate dynamic content
- XHTML brings together the elements of HTML and the syntax of XML
Answers:
- <anchor href=”http://www.mailer.com”>Mailer</anchor>
- <anchor href=http://www.mailer.com target=_blank>Mailer</anchor>
- <A HREF=”http://www.mailer.com”>Mailer</A>
- <a href=”http://www.mailer.com” target=”_blank”>Mailer</a>
Day <input type=”text” size=”3″ />
Month <input type=”text” size=”10″ />
Year <input type=”text” size=”4″ />
Which of the following will you use if you want to put these 3 text fields together in a box?
Answers:
- <legend>
- <box>
- <fieldset>
- <area>
Answers:
- method
- action
- name
- id
Male: <input type=”radio” checked=”checked” name=”chk” value=”male” />
Female: <input type=”radio” name=”chk” value=”female” />
Married: <input type=”radio” checked=”checked” name=”chk” value=”married” />
Single: <input type=”radio” name=”chk” value=”single” />
What is wrong with the above code?
Answers:
- It will allow the user to choose only the male and the married options
- It will allow the user to choose only the female and single options
- It will allow the user to choose only one option out of the four
- It will allow the user to choose all the four options at the same time
Answers:
- It makes the cell span more than one column
- It specifies the space between the cell wall and the contents of the cell
- It specifies the space between two cells
- It makes the cell span more than one row
Answers:
- An image must be resized in an editor to fit in the specified space on a webpage
- If you have a big image but specify smaller height and width attributes in the <img> tag, only the top left portion of the image will be displayed in the browser
- Both a and b are correct
- The height and width attributes allow resizing the image on the webpage
<a name=”target4″>Old Listing</a>
How will you make a link to the above target?
Answers:
- <a url=”#target4″>Check Old Listing as well</a>
- <a href=”#target4″>Check Old Listing as well</a>
- <link url=”target4″>Check Old Listing as well</link>
- <a href=”Listing.target4″>Check Old Listing as well</a>
Answers:
- The text under blockquote must be enclosed in a block level element in a strict DTD document
- The attribute named “cite” must be specified
- Closing the tag is optional
- It doesn’t place an empty line after the text
<img src =”states.gif” width =”330″ height =”406″ alt=”States”
usemap =”#statemap” />
What code should follow this?
Answers:
- <map id=”statemap” name=”statemap”> <area shape=”rect” coords=”0,0,82,126″ href=”state1.htm” alt=”State1″ /> </map>
- <map id=”statemap” name=”statemap”></map> <area shape=”rect” coords=”0,0,82,126″ href=”state1.htm” alt=”State1″ />
- <map id=”statemap” name=”statemap”> <imgarea shape=”rect” coords=”0,0,82,126″ href=”state1.htm” alt=”State1″ /></map>
- <map id=”statemap” name=”statemap”></map> <imgarea shape=”rect” coords=”0,0,82,126″ href=”state1.htm” alt=”State1″ />
Answers:
- Strict, Transitional, and Frameset
- Strict, Transitional and Loose
- Fixed, Intermediate and Loose
- Fixed, Intermediate, Frameset
Answers:
- optgroup
- option
- menu
- var
Answers:
- It is used to add a frame to the table
- A “hsides” frame attribute will show the border lines for horizontal sides of the table only
- A “hsides” frame attribute will not show the border lines for horizontal sides of the table only
- A “hsides” frame attribute will add a scrollable frame on the horizontal sides of the table
Answers:
- <td>
- <th>
-
- <b>
Answers:
- <table align=”left” border=”1″> <tr><td>Plan A </td> <td align=”left”>Monthly payment of $60</td> </tr> . . . . . . </table>
- <table border=”1″> <tr><td align=”left”>Plan A</td> <td align=”left”>Monthly payment of $60</td> </tr> . . . . . . </table>
- <table align=”left” border=”1″> <tr><td align=”left”>Plan A</td> <td align=”left”>Monthly payment of $60</td> </tr> . . . . . . </table>
- <table border=”1″> <tr><td align=”left”>Plan A</td> <td>Monthly payment of $60</td> </tr> . . . . . . </table>
Answers:
- It is not considered to be mandatory as per the XHTML specification
- It must have a closing tag
- It should come just after the <html> tag
- Its declaration is not a part of the XHTML document itself
- None of the above
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 the following is true for the above code?
Answers:
- Only the Yahoo link will open in a new window
- Only the Google link will open in a new window
- Both links will open in a new window
- Both links will open in the same window
One of the differences between XHTML and HTML 4.01 is that the “name” attribute has been replaced by the “id” attribute in:
Answers:
- img and applet tags
- img and map tags
- map and frame tags
- img, map, frame and applet tags
- frame, applet, style and map tags
Answers:
- It doesn’t need a closing tag
- The language attribute cannot be specified with it
- The name and type attributes are optional
- The class, id and title can be specified for it
Answers:
- <p></p> tags can’t be used
- <ol></ol> tags can’t be used
- <table></table> tags can’t be used
- <form></form> tags can’t be used
- All the above tags can be used
Answers:
- <html><head><body></body></html>
- <html><body></body></html>
- <html><head></head><body></body></html>
- <html><head></head></html>
Answers:
- <meta http-equiv=”refresh” content=”3; url=http://www.newurl.com”/>
- <meta http=”refresh” url=”www.newurl.com”//>
- <meta scheme=”refresh” name=”redirect” http=”www.newurl.com”//>
- <meta http-equiv=”redirect” content=”3″ http=”www.newurl.com”/>
Answers:
- <div lang=”en” xml:lang=”en”>Listing A</div>
- <div language=”en”>Listing A</div>
- <div language=”en” xhtml:lang=”en”>Listing A</div>
- <div xml:language=”en”>Listing A</div>
No comments:
Post a Comment