Free Online Flashcard Deck

8 Building Interactive Web Applications Free Online FlashCards

Study 8 Building Interactive Web Applications with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.

12 cards
01
Front

What are the core roles of HTML, CSS, and JavaScript?

Back

HTML structures content, CSS controls appearance and layout, and JavaScript responds to user actions and updates the page.

02
Front

What does the Document Object Model let JavaScript do?

Back

The Document Object Model (DOM) represents the page as a document tree that JavaScript can inspect or change.

03
Front

How does a browser combine HTML, CSS, and JavaScript?

Back

The browser builds a document tree from HTML, applies matching CSS rules, and runs JavaScript that can work with the page.

04
Front

What is semantic HTML?

Back

Semantic HTML uses elements according to their intended meaning, such as headings for sections, lists for related items, and forms for collecting input.

05
Front

Why should a form label be associated with its control?

Back

Associate each label with its form control so people can identify the control visually and with assistive technology.

06
Front

Why use a native button for an interactive control?

Back

Use a native button element: it provides built-in keyboard and browser behavior.

07
Front

How does JavaScript connect an event to a response?

Back

An event signals that something happened, such as a click or form submission. JavaScript registers a handler with addEventListener() to define the response.

08
Front

What does event.preventDefault() do during form submission?

Back

Calling event.preventDefault() cancels the browser's default form-submission action, allowing the page to update without that action.

09
Front

Why combine required with a trimmed-value check?

Back

The required attribute blocks empty input, while a JavaScript check of the trimmed value also catches input made only of spaces.

10
Front

How should an application display user-entered text safely?

Back

Assign user-provided text with textContent so it is displayed as text rather than interpreted as HTML markup.

11
Front

Where are tasks kept in the example task list?

Back

The example keeps tasks only in the current page session; it does not send them to a server or describe persistent storage.

12
Front

How can a task list announce updates accessibly?

Back

A status area with role="status" and aria-live="polite" can announce updates, such as adding or removing a task.