1
Hello!
I’m starting to learn HTML now and I came across the following situation: when selecting one of the body links open a new tab and when selecting the other link opens a new tab that replaces the previous one.
The behavior you would like to play is that each clicked link opens a new tab.
How can I do this using html?
Note: Any tip or good practice instruction is welcome.
Below is an example code I’m using.
<!DOCTYPE html>
<html>
<head>
<meta charset = "UTF-8">
<title>Exemplo 04</title>
<link rel="icon" type="image/png" href = "icone.png"/>
<base href = "http://www.w3c.org/"/>
<base target="_blank/"/>
<style type="text/css">
body{
background-color: lightpink;
}
p{
color: green;
}
</style>
</head>
<body>
<h1>Título do conteúdo</h1>
<p>Link - padrões: <a href="/standards/">link</a></p>
<p>Link - google: <a href="http://www.google.com">link</a></p>
</body>
</html>
Thanks in advance!
Take a look here that can help you: https://answall.com/questions/349963/diferen%C3%a7a-entre-Blank-self-e-Blank-self
– LeAndrade