Test Series - html

Test Number 21/72

Q: How do we write comments in HTML5?
A. 
B. <…….!>
C. 
D. 
Solution: Browser ignores comment in a code. There are always two types of command i.e. single line command and multiple line command. If one wants to add a comment in code, add the text between these characters . It will not visible in the user’s browser.
Q: Which one is correct syntax?
A. 

B. 

C. 

D. 

Solution: 

is the correct syntax for id type declaration. Id attribute’s value should start with a letter or an underscore. We cannot use any number or other character for defining name of the id.

Q: Which of the following is not example of block element?
A. 

B. 
    C. 

    D. 
    Solution: The elements which always appear to start on a new line in browser are known as block level elements. Examples are 

    ,
      ,
    • and

      .

    Q: What does semantic markup not define?
    A. provides extra information
    B. where an emphasis is placed in a sentence
    C. meaning of an acronym
    D. that describes paragraphs
    Solution: < Semantic markup> which provides extra information, such as where emphasis is placed in a sentence, that something you have written is a quotation, the meaning of acronyms etc.
    Q: How many levels of headings HTML has?
    A. 6
    B. 3
    C. 7
    D. 2
    Solution: HTML has six “levels ” of headings.

    is used for main headings,

    is used for subheadings. There is no other levels other than

    ,

    ,

    ,

    ,

    ,
    Q: What is the size of content of an 

    element?

    A. Smallest
    B. Largest
    C. Medium
    D. Anything between smallest and largest
    Solution: The contents of an 

    element is the largest and the contents of an

    element is the smallest. Rest of

    ,

    ,

    ,

    lies in between largest and smallest.
    Q: What is the tag used for making character appearance bold?
    A. content
    B. content
    C. content
    D. 
    content
    Solution: By enclosing words in the tags and we can make characters appear bold.  element is for content in italics,  is for underlined content, 
    is for vertical breaking.
    Q: For writing chemical formula of water which tag will be used?
    A. 
    B. 
    C. 
    D. 
    Solution: The  element is used to contain characters that should be subscript. It is commonly used with foot notes or chemical formulas. E.g. H20,  is use for superscript, 
    is for horizontal break,
      is for unordered list.
    Q: which tag will be used For raising number to a power?
    A. 
    B. 
    C. 
    D. 
      Solution: The  element is used to contain characters that should be superscript. It is commonly used with foot notes or chemical formulae. E.g. X2 , 
      is for break,
        is for unordered list.
      Q: What is the use of 
      tag?
      A. To create horizontal rule between sections
      B. To create a line break
      C. To create vertical rule between sections
      D. For making content appearance italics
      Solution: To create a break between themes-such as change of topic in a book or a new scene in a play-you can add a horizontal rule between sections using 
      tag

      You Have Score    /10