How to Make a Link Open in a New Tab Using HTML

The Question asked in Technical Interview for BCA/MCA Freshers:

How to Make a Link Open in a New Tab Using HTML

The basic code for any link is:

< a href=”somepage.html”> Go To somepage</a >

To Open specified link in new tab, your code should look something like this:

< a href=”somepage.html” target=”_blank”> Go To somepage</a >

By setting the target attribute as _blank, we are able to open a link in new tab.

Note: For More Interview Questions and Resume Tips visit this website daily.

We will upload most important interview questions, technical interview questions for BCA and MCA freshers.

This blog is for:
BCA MCA Freshers, Software Companies, IT Students, Training Institutes, Colleges, Teachers, Learners, Leaders, Earners,...





: for more details or any query email us: hellotechnologypark@gmail.com 



No comments:

Post a Comment

We are here to listen you, Comment your valueable opinion...!!!