1.

Which tag is used to encapsulate navigation and then style the elements appropriately as menu items?(a) ul(b) li(c) nav(d) both ul and liThis question was addressed to me by my college director while I was bunking the class.My doubt is from HTML5 Document Structure Changes in section HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

The correct choice is (d) both ul and li

Easy EXPLANATION: Conventionally, many web developers have use

    and
  • tags to encapsulate navigation and then STYLED the elements appropriately as menu items. This seems to introduce quite a BIT of AMBIGUITY in markup because it may be difficult to determine the difference between a list that has LINKS in it and a list that is simply navigation.


    Discussion

    No Comment Found

    Related InterviewSolutions