Como abrir una pagina de un enlace en el main
Publicado por berfer (4 intervenciones) el 07/03/2024 18:04:14
Hola, tengo este codigo, y no se como hacer para que el enlace que pone en la foto anunciate lo abra en la seccion del main.
Muchas gracias
Muchas gracias
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!doctype html>
<html xml:lang="es" lang="es">
<head>
<meta charset="utf-8"/>
<meta name="description" content="texto"/>
<meta name="robots" content="index, follow" />
<meta http-equiv="Content-Type" content="text/html;/>
<title>TITULO</title>
<!--link rel="stylesheet" href="css/estilo.css" type="text/css"/-->
<style type="text/css">
*{
margin:0;
}
body{
background:blue;
}
.header{
background:red;
width:100%;
height:100px;
display:flex;
}
.navegador{
background:green;
}
.main{
background:brown;
height:calc(100vh - 200px);
display: flex;
justify-content:center;
align-items: center;
}
.seccion{
background:pink;
width:85%;
height:100%;
}
.aside{
background:orange;
width:15%;
height:100%;
}
</style>
<!--script type="text/javascript">
código javaScript
código javaScript
</script-->
<!--script type="text/javascript" src="js/codigo.js"></script-->
<meta name="viewport" content="width=device-width, initial-scale=0.85" />
</head>
<body>
<header class="header">
<img src="fotoslogo/logo.jpg" height="100%" width="10%">
<a href="./anunciate.html" target="aaa" height="100%" width="100%">
<img src="fotoslogo/anunciate.jpg" height="100%" width="200%">
</a>
</header>
<nav class="navegador">
enlace1
enlace2
</nav>
<main class="main" id="aaa">
<section class="seccion">
seccion
</section>
<aside class="aside">
aside
</aside>
</main>
<footer> © pie de la página </footer>
</body>
</html>
Valora esta pregunta


0