Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Patricio Fritz
Programación Web II
Instituto IACC
11/07/2021
Desarrollo
1. Utilizando la etiqueta PICTURE, asigne una imagen responsive que se adapte al tamaño de la pantalla
del dispositivo donde se vaya a visualizar. Genere el código correspondiente, utilice viewport
Codigo Fuente
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Tarea IACC</title>
<link href="css/bootstrap-4.3.1.css" rel="stylesheet" type="text/css" media="screen">
</head>
<body>
<div>
<meta name="viewport" content="width=device-width, initial-scale=1">
<div>
<picture>
<source type="image/webp" srcset="C:\Users\patri\OneDrive\Escritorio\IACC\imagen.png"
sizes="(max-width:1280px) 93vw, (max-width: 720px) 59vw, 600px" />
<img width="1280" height="720"
src="C:\Users\patri\OneDrive\Escritorio\IACC"
srcset="C:\Users\patri\OneDrive\Escritorio\IACC"
sizes="(max-width:768px) 93vw, (max-width: 975px) 59vw, 600px"
</picture>
</div>
</div>
</body>
</html>
2. Inserte debajo de la imagen un borde responsive color azul, con anchura o grosor de 2px.
CSS
}
.apartado1{
border: 2px solid blue;
}
Html
div id="apartado1"></div>
3. A partir del código HTML, aplique estilos CSS donde el texto que contiene la página tenga el siguiente
aspecto:
Pantalla
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Tarea IACC</title>
<link href="css/bootstrap-4.3.1.css" rel="stylesheet" type="text/css" media="screen">
<link href="Tarea_Iacc.html.css" rel="stylesheet" type="text/css">
</head>
<body>
<div>
<meta name="viewport" content="width=device-width, initial-scale=1">
<div>
<picture>
<source type="image/webp" srcset="C:\Users\patri\OneDrive\Escritorio\IACC\imagen.png"
sizes="(max-width:1280px) 93vw, (max-width: 720px) 59vw, 600px" />
<img width="1280" height="720"
src="C:\Users\patri\OneDrive\Escritorio\IACC"
srcset="C:\Users\patri\OneDrive\Escritorio\IACC"
sizes="(max-width:768px) 93vw, (max-width: 975px) 59vw, 600px"
</picture>
<div id="apartado1"></div>
<head>
<title>Tarea IACC</title>
<meta charset="UTF-8">
<style type="text/css">
.indentacion { text-indent: 30px;}
</style>
</div>