Test Series - html

Test Number 15/72

Q: Which of the following attribute is used to display date/time content?
A. time
B. datetime
C. date
D. year
Solution: To provide both human and machine-friendly date/time content, the element supports a datetime attribute, which should be set to the previously mentioned date format of YYYY-MM-DDThh:mm:ssTZD. Time tag defines date and time (human readable) while datetime tag display machine readable date/time.
Q: The element ___________ simply groups items within an enclosed dd tag, though it may associate them with a caption defined by a dt tag.
A. object
B. figure
C. embed
D. collect
Solution: HTML documents are delivered as “documents”.These are then parsed, which turns them into the Document Object Model (DOM) internal representation, within the web browser. A self-contained information like images, diagrams are specified by figure tag in HTML. External applications are embed using embed tag.
Q: Which of the following element is used for highlighting content similarly to how a highlighter pen might be used on important text in a book?
A. em
B. strong
C. mark
D. bold
Solution:  tag convert the font in italic one. The  tag is used to denote the importance of text.  tag is used to make the text bold in font size. The mark tag defines marked text and is used to highlight parts of your text.
Q: To insert a video, we use a video tag and set its src attribute to a local or remote URL containing a playable movie.
A. True
B. False
C. .
D. ..
Solution: To show a video in HTML, video element is used. One of the attribute of video called src is used to provide the location of video i.e. it’s URL address.
Q: 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 li
Solution: 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.
    Q: __________ can be used to advise the browser to download media content in the background to improve playback.
    A. poster
    B. autobuffer
    C. buffer
    D. data-X
    Solution: Data-X stores custom data. Buffer property is used to decide whether the output should be buffered or not. If autobuffering attribute is used, then the video will automatically begin to buffer even if it’s not set. It suggests to the browser that it should load as much of the resource as possible. As long as the browser’s own media cache isn’t full, it will keep on downloading. URL of an image is given by poster attribute until the user seek for it.
    Q: The _________ element is used to render simple graphics such as line art, graphs, and other custom graphical elements on the client side.
    A. metadata
    B. css
    C. canvas
    D. art
    Solution: Metdata gives data or information of other data. CSS i.e. Cascading Style Sheets is a style sheet language. Canvas is introduced in HTML5 for providing/drawing graphics. The canvas element is part of HTML5 and allows for dynamic, scriptable rendering of 2D shapes and bitmap images.
    Q: Which plugins can provide the fallback support for old browsers?
    A. Flash
    B. Quicktime
    C. Both Flash and Quicktime
    D. Fireback and Quickertime
    Solution: An attribute of the format: type=”application/x-shockwave-flash” will justify the purpose.
    Q: Which of the following is not the promises of the open web platform?
    A. Security and Privacy
    B. Performance and Tuning
    C. Media and Real-Time Communications
    D. Device Interconnection
    Solution: The different promises of the open web platform are –
    • Security and Privacy
    • Core Web Design and Development
    • Device Interaction
    • Application Lifecycle
    • Media and Real-Time Communications
    • Performance and Tuning
    • Usability and Accessibility
    • Services
    Q: HTML5 brings to the Web video and audio tracks without needing plugins.
    A. True
    B. False
    C. .
    D. 0
    Solution: The World Wide Web Consortium (W3C) published a Recommendation of HTML5, the fifth major revision of the format used to build Web pages and applications, and the cornerstone of the Open Web Platform. HTML5 brings to the Web video and audio tracks without needing plugins with programmatic access to resolution dependent canvas.

    You Have Score    /10