Html miscellaneous


  1. What is the limit of character storage for chrome 23.0 in localStorage?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    We can’t store any character in localStorage in chrome 23.0, for chrome 18.0 it is unlimited i.e. can store any number of characters, for chrome 19.77 it is 1021 k, for chrome 22.0 it is 2.49 M, for chrome 24.0, 25.0, 27.0 it is 2.49 M, for chrome 28.0, 30.0, 31.0 and 31.1 it is 4.98 M.


  1. In sessionStorage object data __________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    sessionStorage object works same as localStorage object except the data is stored for one session only. When the use closes the browser the data is deleted. Syntax is

    sessionStorage.firstname-“Tanya”; document.getElementById(“fo”).innerHTML= sessionStorage.firstname;



  1. In localStorage object data ________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Data with no expiration date is stored by localStorage object. Here the data is not deleted if we close the browser. We can have data at the next day or week or year. Syntax is

    localStorage(“firstname”,”Tanya”); document.getElementById(“fo”).innerHTML= localStorage.getItem(“firstname”); here fo is id.


  1. Before HTML5 where data had to be stored?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    When HTML5 was not introduced application data had to store in cookies when server requested for it. Web storage was secure then as well as large data could be stored even it does not affect performance. After coming of HTML5 web applications can store data within the browser that the user is using.



  1. Subtitle tracks and caption tracks to be specified for audio and video elements can be added using which of the following element?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The track element enables supplementary media tracks such as subtitle tracks and caption tracks to be specified for audio and video elements.