Question

    How does the ‘localStorage’ feature in HTML5 help web developers?

    A It provides real-time communication between servers and clients. Correct Answer Incorrect Answer
    B It allows the use of external stylesheets for consistent styling. Correct Answer Incorrect Answer
    C It enables offline storage of small amounts of data on the client’s device. Correct Answer Incorrect Answer
    D It allows embedding JavaScript code directly in HTML documents. Correct Answer Incorrect Answer
    E None of these Correct Answer Incorrect Answer

    Solution

    The ‘localStorage’ feature in HTML5 allows web developers to store small amounts of data locally on the user’s device. This data persists even after the browser is closed and can be accessed even when the user is offline.

    Practice Next

    Relevant for Exams: