Documentos de Académico
Documentos de Profesional
Documentos de Cultura
<div style="background-color:#f1f1f1;padding:15px;">
<h1>Cinque Terre</h1>
<h3>Resize the browser window</h3>
</div>
<div style="overflow:auto">
<div class="menu">
<div class="menuitem">The Walk</div>
<div class="menuitem">Transport</div>
<div class="menuitem">History</div>
<div class="menuitem">Gallery</div>
</div>
<div class="main">
<h2>The Walk</h2>
<p>The walk from Monterosso to Riomaggiore will take you approximately two hours, give or take an hour depending on the weather conditions and your
physical shape.</p>
<img src="C:\Users\Sprike\Desktop\html\images\img_5terre.jpg" style="width:100%">
</div>
<div class="right">
<h2>What?</h2>
<p>Cinque Terre comprises five villages: Monterosso, Vernazza, Corniglia, Manarola, and Riomaggiore.</p>
<h2>Where?</h2>
<p>On the northwest cost of the Italian Riviera, north of the city La Spezia.</p>
<h2>Price?</h2>
<p>The Walk is free!</p>
</div>
</div>
</body>
</html>
1. Diseño responsivo
Configuración del ventana gráfica
Para crear un sitio web receptivo, agregue la siguiente <meta> etiqueta a todas sus
páginas web:
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
</head>
<body>
<h2>Responsive Image</h2>
<p>When the CSS width property is set in a percentage valu
e, the image will scale up and down when resizing the browser
window. Resize the browser window to see the effect.</p>
<img src="C:\Users\Sprike\Desktop\html\images\img_girl.jpg
" style="width:100%;">
</body>
</html>
1. Diseño responsivo
Propiedad max-width
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-sc
ale=1.0">
</head>
<body>
<h2>Responsive Image</h2>
<p>"max-width:100%" prevents the image from getting bigger t
han its original size. However, if you make the browser window
smaller, the image will still scale down.</p>
<p>Resize the browser window to see the effect.</p>
<img src="C:\Users\Sprike\Desktop\html\images\img_girl.jpg" s
tyle="max-width:100%;height:auto;">
</body>
</html>
1. Diseño responsivo
Tamaño de texto adaptable
El tamaño del texto se puede configurar con una unidad "vw", que significa el "viewport width“ (ancho de ventana
gráfica).
De esa forma, el tamaño del texto seguirá el tamaño de la ventana del navegador
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0
">
</head>
<body>
<p style="font-size:5vw;">Use the "vw" unit when sizing the text. 10vw
will set the size to 10% of the viewport width.</p>
</body>
</html>
2. Guía de estilo HTML y
convenciones de codificación
Un código HTML coherente, limpio y ordenado facilita que otros lean y comprendan su código
• Metadatos
2. Guía de estilo HTML y
convenciones de codificación
• Configuración de la ventana gráfica
2. Guía de estilo HTML y
convenciones de codificación
• Comentarios HTML
2. Guía de estilo HTML y
convenciones de codificación
• Extensiones de archivos
Gracias