HTML Elements


  1. Which element is used for grouping together related elements?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    For grouping together related elements we use <div> element. Anything that lies outside of <footer>, <aside> or <content> elements can be considered as main content. E.g. <div class= “wrap”> <header> <h1> kitchen </h1> </div>. Grouping of related content together is done by <section> element. An introductory content lies in <header>. For grouping together set of one or more <h1> to <h6> element we use <hgroup> element.


  1. For grouping together one or more <h1> to <h6> element what element is used?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    For grouping together set of one or more <h1> to <h6> element we use <hgroup> element. We can group together the primary heading and the subheading. E.g. <hgroup> <h2> Winter is coming! </h2> <h3> Its too cold </h3> </hgroup>. Grouping of related content together is done by <section> element. For grouping together related elements we use <div> element. An introductory content lies in <header>.



  1. Which element groups related content together?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Grouping of related content together is done by <section> element. Each section will have its own heading. This element should not be used as wrapper for entire page. If we wish of containing a element for entire page, this will be best done by <div> element. Footer typically contains information about author of the section, links to related documents or copyright data. <aside> is a container of contetnt related to it’s surrounding. For grouping together related elements we use <div> element.


  1. Which of the following element is used as a container for content?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    <aside> element can be used inside

    or outside it also. When it is used inside <aticle> it contains information that is related to article. When <aside> is used outside <article>, it acts as container for content that is related to the whole page. Contact information of author/owner of a document can be provided by <address> tag. Footer typically contains information about author of the section, links to related documents or copyright data.



  1. Which element represents self-contained composition in document?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    A self-contained composition in document, application, page or site that is intended to be independently distributable is represented by <article> element. Some of the examples are a magazine or newspaper article or a forum post, or a blog entry. <nav> element contains all the nevigation links. Footer typically contains information about author of the section, links to related documents or copyright data. An introductory content lies in <header>.