HTML Beginners question

Discussion in 'Web Design, HTML And CSS' started by coderzone, Apr 2, 2006.

  1. coderzone

    coderzone Super Moderator

    Joined:
    Jul 25, 2004
    Messages:
    736
    Likes Received:
    38
    Trophy Points:
    28
    Question Number 1

    Code:
    1.<FORM action=http://www.x.com/p/sv method=post> 
    2.  Name: <INPUT type="text" name="name"> 
    3.  Address: <INPUT type="text" name="addr"> 
    4.  Email: <INPUT type="text" name="email"> 
    5.  Sex: <INPUT type=radio name=sex value=M>Male 
    6.  <INPUT type=radio name=sex1 value=F>Female 
    7.  <INPUT type=submit value=send> 
    8.</FORM>  
    
    Which line or lines above contain an apparent error?
    Choice 1
    Line 1
    Choice 2
    Lines 2, 3, and 4
    Choice 3
    Lines 5 and 6
    Choice 4
    Lines 6 and 7
    Choice 5
    Line 8
    ------------------------------------------------------------
    Question Number 2

    Code:
    1.<TABLE border="5"> 
    2. <TR><TD>2</TD><TD>4</TD><TD>6</TD></TR> 
    3. <TR><TD>1</TD><TD rowspan="2">12</TD><TD>3</TD></TR> 
    4. <TR><TD colspan="2">8</TD><TD>14</TD></TR> 
    5.</TABLE> 
    Why is the above code illegal?
    Choice 1
    End tags are required for the <TR> and <TD> elements.
    Choice 2
    The total number of columns is not the same for each row.
    Choice 3
    It contains overlapping cells.
    Choice 4
    The total number of rows is not the same for each column.
    Choice 5
    Both rowspan and colspan cannot be used in the same table.
    ------------------------------------------------------------
    Question Number 3

    Which one of the following is NOT a common use of URLs?
    Choice 1
    To include an image in a page
    Choice 2
    To submit a form
    Choice 3
    To create a frame document
    Choice 4
    To provide keywords to search engines
    Choice 5
    To link to another document
    ------------------------------------------------------------
    Question Number 4

    Which elements are table cells?
    Choice 1
    COL, TR, TD
    Choice 2
    TR, TD
    Choice 3
    COL, TR
    Choice 4
    TD, TH, TR
    Choice 5
    TD, TH
    ------------------------------------------------------------
    Question Number 5

    Code:
    1. <DL> 
    2. <DT><STRONG>The Grizzly</STRONG> 
    3. <LI>Largest brown bear in the world 
    4. <DT><STRONG>The Polar Bear</STRONG> 
    5. <LI>Largest white bear in the world 
    6. <DT><STRONG>Refrigerator Perry</STRONG> 
    7. <LI>Largest Bear in Chicago. 
    8. </DL>  
    Which lines above contain syntax errors that may prevent the list from performing as a definition list?
    Choice 1
    1, 8
    Choice 2
    2, 4, 6
    Choice 3
    3, 5, 7
    Choice 4
    1, 2, 4, 6, 8
    Choice 5
    1, 3, 5, 7, 8
    ------------------------------------------------------------
    Question Number 6

    Which element's enclosed text is underlined in many browsers?
    Choice 1
    <B>
    Choice 2
    <EM>
    Choice 3
    <A>
    Choice 4
    <STRONG>
    Choice 5
    <INPUT>
    ------------------------------------------------------------
    Question Number 7

    Code:
    <FORM action="cgi/file.pl" 
          enctype="multipart/form-data" 
          method="send"> 
    <P>What is your name? 
    <INPUT type="text" name ="sender"> 
    What files are you sending? 
    <INPUT type="file" name ="files"> 
    </P> 
    </FORM>
    Referring to the sample above, what attribute of the FORM element is INCORRECT?
    Choice 1
    TYPE
    Choice 2
    ACTION
    Choice 3
    ENCTYPE
    Choice 4
    NAME
    Choice 5
    METHOD
    ------------------------------------------------------------
    Question Number 8

    What element produces the single horizontal line appearing above this question?
    Choice 1
    <line>
    Choice 2
    <bar>
    Choice 3
    <p>
    Choice 4
    <br>
    Choice 5
    <hr>
    ------------------------------------------------------------
    Question Number 9

    Code:
    1. <TABLE CELLPADDING="1" BGCOLOR=yellow>   
    2. <TR><TH>F</TH><TH>V</TH><TH>M</TH></TR>   
    3. <TR><TD>A</TD><TD>L</TD><TD>C</TD></TR>   
    4. <TR><TD>O</TD><TD>C</TD><TD>B</TD></TR>   
    5. <TR><TD>B</TD><TD>C</TD><TD>F</TD></TD> 
    6. <CAPTION ALIGN="BOTTOM"> 
    7.  <B>Table 1</B>: Food groups </CAPTION> 
    8. </TABLE> 
    Which line above contains an error?
    Choice 1
    Line 1
    Choice 2
    Line 2
    Choice 3
    Line 3
    Choice 4
    Line 5
    Choice 5
    Line 6
    ------------------------------------------------------------
    Question Number 10

    Which one of the following statements is FALSE?
    Choice 1
    Tables start with an optional caption and are followed by one or more rows.
    Choice 2
    When rendering non-visual media in a document, tables cannot be used.
    Choice 3
    The default for tables is to have no border.
    Choice 4
    Cells can be merged across rows and columns.
    Choice 5
    Each row is formed by one or more cells, which can be either <TH> or <TD> cells.
    ------------------------------------------------------------
    Question Number 11

    What list element renders a non-indented bullet when used outside a list block (in most browsers)?
    Choice 1
    <UL>
    Choice 2
    <DD>
    Choice 3
    <LI>
    Choice 4
    <DT>
    Choice 5
    <OL>
    ------------------------------------------------------------
    Question Number 12

    Which <A> attribute can provide help text "balloons" when hovering over the link in some browsers?
    Choice 1
    ID
    Choice 2
    Datasrc
    Choice 3
    Help
    Choice 4
    Lang
    Choice 5
    Title
    ------------------------------------------------------------
    Question Number 13

    Which attributes create a buffer around images?
    Choice 1
    Rows, Cols
    Choice 2
    Hbuffer, Vbuffer
    Choice 3
    Hspace, Vspace
    Choice 4
    Height, Width
    Choice 5
    Iheight, Iwidth
    ------------------------------------------------------------
    Question Number 14

    What element is used to embed the TRANSPARENT GIF file above in a document?
    Choice 1
    <EMBED>
    Choice 2
    <OVERLAY>
    Choice 3
    <GRAPHIC>
    Choice 4
    <IMG>
    Choice 5
    <TRANSPARENT>
    ------------------------------------------------------------
    Question Number 15

    Which one of the following elements and attributes is typically NOT needed to build a client-side image map?
    Choice 1
    Ismap
    Choice 2
    Usemap
    Choice 3
    <MAP>
    Choice 4
    Name
    Choice 5
    <AREA>
    ------------------------------------------------------------
    Question Number 16

    Which control type do you use to select one of the 50 U.S. states on a form?
    Choice 1
    Drop-down list
    Choice 2
    Text field
    Choice 3
    Checkbox
    Choice 4
    Hidden text
    Choice 5
    Radio button
    ------------------------------------------------------------
    Question Number 17

    Code:
    <HEAD> 
    <TITLE>Company XYZ Homepage</TITLE> 
    <META http-equiv="Content-Script-Type" 
          content="text/vbscript"> 
    <SCRIPT type=text/tcl src=lib/validate> 
    </SCRIPT> 
    </HEAD> 
    <BODY> 
    <SCRIPT type="text/javascript"> 
    ...code... 
    </SCRIPT> 
    </BODY> 
    What is the default scripting language for the above document?
    Choice 1
    Tcl
    Choice 2
    Validate
    Choice 3
    VBscript
    Choice 4
    JavaScript
    Choice 5
    Code
    ------------------------------------------------------------
    Question Number 18

    What code is best to mail form results to a simple e-mail address?
    Choice 1
    <form method=post action="mailto:me@myisp.net" enctype="text/plain">
    Choice 2
    <form method=mail action="me@myisp.net" subj="feedback">
    Choice 3
    <form method=get action=mailto:me@myisp.net enctype="application/x-www-form-urlencoded">
    Choice 4
    <form method=mail action=me@myisp.net mimetype="multipart/form-data">
    Choice 5
    <form method=get action="mailto:me@myisp.net" enctype="MIME">
    ------------------------------------------------------------
    Question Number 19
    <IMG SRC="logo.gif" ALIGN="right">
    This is our corporate logo.
    Referring to the above, where will the image "logo" appear in the text?
    Choice 1
    To the left and above
    Choice 2
    To the right and below
    Choice 3
    To the right and on the same line as
    Choice 4
    To the left and below
    Choice 5
    To the right and on the line above
    ------------------------------------------------------------
    Question Number 20

    Which control type do you use to select one and only one item from a set of six items?
    Choice 1
    Multiple line text field
    Choice 2
    Single line text field
    Choice 3
    Submit button
    Choice 4
    Checkbox
    Choice 5
    Radio button
    ------------------------------------------------------------
    Question Number 21

    Code:
    <HEAD> 
    <TITLE>How to Plant a Garden</TITLE> 
    <BASE href=http://www.gh.com/gdn/int.htm> 
    </HEAD> 
    <BODY> 
    <P>How to grow 
    <A href="../shade/myrtle.gif"> 
    Shade Gardens</A>? 
    </BODY> 
    Referring to the above sample, what is the full URL for "../shade/myrtle.gif"?
    Choice 1
    http://www.gh.com/gdn/int/shade/myrtle.gif
    Choice 2
    http://www.gh.com/int/shade/myrtle.gif
    Choice 3
    http://www.gh.com/gdn/shade/myrtle.gif
    Choice 4
    http://www.gh.com/gdn/int/shade/myrtle.gif
    Choice 5
    http://www.gh.com/shade/myrtle.gif
    ------------------------------------------------------------
    Question Number 22

    Which one of the following is NOT a reason to use client-side vs. server-side image maps?
    Choice 1
    Client-side image maps allow developers to use more links.
    Choice 2
    Server-side image maps can be slower.
    Choice 3
    The text appearing hovering over a server-side image map is less meaningful to users.
    Choice 4
    Client-side image maps are easier to build and test.
    Choice 5
    The user could click on a "hotspot" not mapped on the server, creating confusion.
    ------------------------------------------------------------
    Question Number 23

    <IMG SRC="clock.gif" BORDER="0" WIDTH="400" HEIGHT="200">
    What attribute, required for a client-side image map, is missing from the <IMG> element above?
    Choice 1
    HREF
    Choice 2
    ALT
    Choice 3
    MAPNAME
    Choice 4
    ISMAP
    Choice 5
    USEMAP
    ------------------------------------------------------------
    Question Number 24

    Code:
    <PRE> 
        Three blind mice, 
          Three blind mice, 
        See how they run, 
           See how they run, 
              ..."I'd run too!" 
    </PRE>  
    How does the text above appear in a typical browser?
    Choice 1
    Left-justified
    Choice 2
    Just as it appears above
    Choice 3
    Centered
    Choice 4
    Left-justified and italicized
    Choice 5
    Left-justified and bold
    ------------------------------------------------------------
    Question Number 25

    Which element can set the DEFAULT scripting language for a document?
    Choice 1
    <HEAD>
    Choice 2
    <EMBED>
    Choice 3
    <APPLET>
    Choice 4
    <META>
    Choice 5
    <LINK>
    ------------------------------------------------------------
    Question Number 26

    Code:
    -----------------------------
    |	|	|	|
    |	|         Cell A	|
    -----------------------------
    Referring to the grid above, which cell attribute allows cell A to cover two columns?
    Choice 1
    colspan
    Choice 2
    span
    Choice 3
    columns
    Choice 4
    width
    Choice 5
    size
    ------------------------------------------------------------
    Question Number 27

    Click this link
    What <BODY> attribute sets the color of the hyperlink above before the link is visited?
    Choice 1
    href
    Choice 2
    alink
    Choice 3
    linkcolor
    Choice 4
    vlink
    Choice 5
    link
    ------------------------------------------------------------
    Question Number 28

    Code:
    <a href="agreement.htm"> 
    <img src="images/c.gif" width="142" 
    height="128" alt="c.gif"> </a>  
    Referring to the above sample, how does the space between the <IMG> and </A> tags affect the HTML page in many browsers?
    Choice 1
    The page errors when the user selects the image.
    Choice 2
    The page errors immediately.
    Choice 3
    An underscore appears to the right of the image.
    Choice 4
    An extra space appears to the right of the image.
    Choice 5
    The space has no effect on the page presentation or functionality.
    ------------------------------------------------------------
    Question Number 29

    Which one of the following form control types does NOT use the <INPUT> element?
    Choice 1
    Password field
    Choice 2
    Multiple line text field
    Choice 3
    Checkbox
    Choice 4
    Single line text field
    Choice 5
    Radio button
    ------------------------------------------------------------
    Question Number 30

    Which one of the following is NOT a valid <INPUT> type?
    Choice 1
    Enter
    Choice 2
    Reset
    Choice 3
    Submit
    Choice 4
    Button
    Choice 5
    Radio
    ------------------------------------------------------------
    Question Number 31

    Code:
    <FORM action="http://www.x.com/cgi/surv" 
         enctype=_________ 
         method="post"> 
      What is your name? 
      <INPUT type="text" name="name"> 
      What files are you sending? 
      <INPUT type="file" name="files"> 
      <INPUT type="submit"> 
    </FORM>  
    What should the ENCTYPE value be in the above <FORM>?
    Choice 1
    text/formatted
    Choice 2
    multipart/form-data
    Choice 3
    application/x-www-form-urlencoded
    Choice 4
    text/plain
    Choice 5
    text/unformatted
    ------------------------------------------------------------
    Question Number 32

    Which <IMG> attribute is required?
    Choice 1
    SRC
    Choice 2
    Shape
    Choice 3
    Image
    Choice 4
    Type
    Choice 5
    Name
    ------------------------------------------------------------
    Question Number 33
    http://www.xyz.com/survey/results/feedback.html
    What does the full URL look like for document referenced in <A href= "aboutus.html"> if the base URL is as defined above?
    Choice 1
    http://www.xyz.com/survey/results/feedback/aboutus.html
    Choice 2
    http://feedback/aboutus.html
    Choice 3
    http://www.xyz.com/survey/results/aboutus.html
    Choice 4
    http://www.xyz.com/results/aboutus.html
    Choice 5
    http://www.xyz.com/aboutus.html
    ------------------------------------------------------------
    Question Number 34

    Which element uses the CLEAR attribute to clear text flow around an image?
    Choice 1
    <P>
    Choice 2
    <ALIGN>
    Choice 3
    <IMG>
    Choice 4
    <FONT>
    Choice 5
    <BR>
    ------------------------------------------------------------
    Question Number 35
    Which one of the following is NOT a valid image file format?
    Choice 1
    tif
    Choice 2
    dat
    Choice 3
    raw
    Choice 4
    tga
    Choice 5
    xpm
    ------------------------------------------------------------
    Question Number 36

    Code:
    <HEAD> 
    <TITLE>Company XYZ Homepage</TITLE> 
    <META http-equiv="Content-Script-Type" 
          content="text/vbscript"> 
    <SCRIPT type="text/tcl" 
         src="http://lib.com/lib/validate"> 
    </SCRIPT> 
    </HEAD> 
    <BODY> 
    <SCRIPT type="text/javascript"> 
    ...code... 
    </SCRIPT> 
    </BODY>  
    How many different script languages are identified in the code above?
    Choice 1
    Zero
    Choice 2
    One
    Choice 3
    Two
    Choice 4
    Three
    Choice 5
    Four
    ------------------------------------------------------------
    Question Number 37
    What is the function of the <Q> element?
    Choice 1
    It indicates that the line of text is a question.
    Choice 2
    It inserts question marks at specified points.
    Choice 3
    It inserts quotations around block-level content, including content that has paragraph breaks.
    Choice 4
    It inserts quotations around in-line content without paragraph breaks.
    Choice 5
    It places question marks at the end of text.
    ------------------------------------------------------------
    Question Number 38
    Why are server-side image maps different from client-side maps?
    Choice 1
    The server determines what document to send using the click coordinates sent from by browser.
    Choice 2
    The browser must load the map file after every click.
    Choice 3
    The browser loads the map file before rendering the displaying the document.
    Choice 4
    Only standard shapes are available for resolving a mouse click.
    Choice 5
    Map data is not embedded into the image file header.
    ------------------------------------------------------------
    Question Number 39

    Which attribute has a relationship to <SCRIPT> that is similar to ALT's relationship to <IMG>?
    Choice 1
    ONLOAD
    Choice 2
    SCRIPTID
    Choice 3
    SCRIPTTEXT
    Choice 4
    ALTSCRIPT
    Choice 5
    NOSCRIPT
    ------------------------------------------------------------
    Question Number 40

    1.The server returns the requested
    information.
    2.The browser sends a URL request to
    the server with the image coordinates.
    3.The browser requests the new URL.
    4.The server looks at a file showing
    which coordinates go with which URL.
    5.A program on the server decodes the
    image map coordinates.
    How do you arrange the events above into the sequence that occurs when a user clicks on a server-side image map?
    Choice 1
    2, 4, 5, 1, 3
    Choice 2
    2, 5, 4, 1, 3
    Choice 3
    3, 2, 4, 5, 1
    Choice 4
    3, 2, 5, 4, 1
    Choice 5
    4, 1, 3, 2, 5
    ------------------------------------------------------------
     
    nimesh likes this.
  2. sivadasbs

    sivadasbs New Member

    Joined:
    Nov 8, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Could you describe about the <label> tag used in html ? :)
     
  3. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Defines a label to a control. If you click the text within the label element, it is supposed to toggle the control.

    If you put the following in the forum
    HTML:
    <form name="input" action="">
    <input type="radio" name="sample" id="One" />
    <label for="One">One</label>
    <br />
    <input type="radio" name="sample" id="Two" />
    <label for="Two">Two</label>
    </form>
    you will see clicking One / Two labels will also have the radio state toggling.
     
  4. sivadasbs

    sivadasbs New Member

    Joined:
    Nov 8, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
  5. prashanthi d

    prashanthi d New Member

    Joined:
    Jun 19, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    where to see the answers for the Questions given in Beginners HTml Questions
     
  6. prashanthi d

    prashanthi d New Member

    Joined:
    Jun 19, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    could u tell where to serach the ans for HTML Beginners Questions?
     
  7. chathura

    chathura New Member

    Joined:
    Oct 31, 2009
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    Home Page:
    http://chathura-earnmoneyonline.blogspot.com
    an you tell me what is "Reference tag". Please make some explanation.
     
  8. nimesh

    nimesh New Member

    Joined:
    Apr 13, 2009
    Messages:
    769
    Likes Received:
    20
    Trophy Points:
    0
    Occupation:
    Oracle Apps Admin
    Location:
    Mumbai
    Home Page:
    http://techiethakkar.blogspot.com
    Nice article.
     
  9. WebspoonUK

    WebspoonUK New Member

    Joined:
    Mar 16, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Professional Web Developer
    Location:
    Cheshire
    Home Page:
    http://www.webspoon.co.uk
    Chathura - I believe a "Reference Tag" is a tag in a hyperlink that allows you to link to a particular section of a page.

    Example

    Hyperlink on Page1
    <a href="page2.asp#sectionname"....

    Div tag on Page2
    <div id="sectionname">...

    The hyperlink will then jump striaght to the div (named "sectionname").

    Hope this helps
     
  10. amndalb

    amndalb New Member

    Joined:
    Jul 30, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    ref tag is also used to link CSS page to your source code of html.
     
  11. sagar_999

    sagar_999 New Member

    Joined:
    Sep 2, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    From where to get all answers???
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice