Which code opens HEC's website in a new tab?

  1. <a src="https://www.hec.gov.pk"HEC</a
  2. <a href="https://www.hec.gov.pk" target="blank"HEC</a
  3. <link href="hec"HEC</link
  4. <a href="https://www.hec.gov.pk" target="self"HEC</a
Answer

B) <a href="https://www.hec.gov.pk" target="blank"HEC</a

blank opens a new tab.

Computer Science MCQ · More Lab: HTML Web Pages MCQs · Practise