1. Home
  2. Computer Science MCQs
  3. HTML
  4. Target attribute is used for

Added 20 Jan 2024

Target attribute is used for

  1. opening new document Correct answer
  2. selecting previous document
  3. deleting frame
  4. none of above

Correct answer

A. opening new document

13 views

MCQSEXAM

Explanation

The target attribute specifies where a linked document opens — for example target="_blank" opens the document in a new tab or window. Other values are _self (default), _parent and _top.

When using _blank, adding rel="noopener" is recommended for security.

Keep preparing with more Computer Science MCQs on MCQsExam.com.

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More HTML MCQs

Practise all HTML MCQs

Similar MCQs