Html miscellaneous


  1. For entity which term is used by XML?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    “character entity reference” term is not used by XML instead XML defines five “predefined entities” which are & [&], < [<], > [>], " [“] and ' [‘].


  1. What is the format for character entity reference?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The format for character entity reference is &name; name is case-sensitive alphanumeric string and semicolon is necessary.



  1. What is the correct format of numeric character reference?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Numeric character reference uses the format &#nnnn, nnnn represents decimal format. We can also use hhhh in place of nnnn for hexadecimal form and its syntax will be like &#xhhhh; In XML documents use &#xnnnn; semicolon is mandatory.


  1. Syntax of entity declaration is ___________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Character entity reference declaration is done by syntax <!entity name “value”> in HTML and in XML. This syntax is define in Document Type Definiton(DTD).



  1. Use of checked attribute is ____________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    checked is use with <command>, <input> elements and it indicates if element is checked on loading of the page or not.