HTML Interview Questions and Answers

HTML Interview Questions

  • 11. What are some of the most important APIs in HTML5?
  • Answer.

    HTML5 supports a wide range of APIs. Some of the most popular ones include:

    • Geolocation API, used to identify the user’s location
    • Web Speech API, which provides speech recognition functionality
    • Clipboard API, which provides copy, cut, and paste functionality
    • History API, which provides access to the browser navigation history
    • Web Notifications API, used to send web-based notifications to users

  • 12. How can a copyright symbol be added to the webpage using HTML5?
  • Answer.

    The ‘&copy’ code is used to generate the copyright symbol (©). As a best practice, it should be accompanied by a year and the name of the organization.

    To include copyright information in the footer of a web page, the code would look like this:

    <footer> <small>&copy; Copyright DateOrganization Name</small> </footer> 

  • 13. What are the different types of storage in HTML5?
  • Answer.

    HTML5 supports two types of web storage. These are:

    1. sessionStorage: temporary storage available for the duration of the page session
    2. localStorage: permanent storage available until data is deleted by the user

Register for Course !
ONLINE TRAINING FEATURES
  Live Training
 Real-Time Expert Trainers
 Industry Specific Scenarios
  Video Recording Sessions
  Resume Preparation Guidance
 Self- Placed
  Offline & Online Session
 availability + Real Time Concept
 MNC & Top IT Companies + Certificate