<object> and <param> Tags — HTML Technical Interview Questions & Answers

Embeds an external resource via a plugin.

<object> and <param> Tags

  • Embeds an external resource via a plugin.
  • <object> is the <object> HTML element. HTML uses this tag so the browser (and screen readers) know what the piece is, not only how it looks.
  • Board: <object>…</object> Put it in body. Check it in the browser. Attributes go on the opening tag.
  • Trap: wrong nesting or missing a required attribute. CSS can still style it — don’t pick a tag only because of default italics.
  • Interview: name the tag, one attribute if it has a famous one (href, src, alt, for, type), one mistake.

Technical Interview Tip: <object>: the <object> HTML element. Example: <object>…</object>

Code Examples for <object> and <param> Tags

<object> and <param> Tags — working example

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title><object> and <param> Tags</title>
  </head>
  <body>
    <main>
      <h1><object> and <param> Tags</h1>
      <p>Semantic HTML example for this topic.</p>
      <ul>
        <li>Use the right element</li>
        <li>Add accessible text</li>
      </ul>
    </main>
  </body>
</html>

<object> and <param> Tags: doctype + one h1 + a short list. That is the page skeleton.

How to Explain <object> and <param> Tags to an Interviewer

What is the <object> tag?

the <object> HTML element <object>…</object>

One common mistake?

wrong nesting or missing a required attribute