Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Puras
Ing. Carlos Cevallos
HTML5 - Estructura
Estructura HTML <body>
Logo, títulos,
subtítulos
Contenido Navegación (menús)
principal
Barra lateral
Información no
principal
Derechos de autor
Créditos
Referencias
Etiquetas nuevas HTML5
Etiqueta Descripción
hgroup Agrupa etiquetas h
figure Declara secciones para imágenes y permite
figcaption registrar una descripción
mark Resalta un texto relevante
small Contenido al margen (las letras pequeñas)
cite Cita o referencia
Cascade Style Sheet
Block 2 Block 4
Block 3
Clases
p.mi-clase {
font-size:20px; <p class=“mi-clase”> Prueba</p>
}
Por atributo
p[name=“eti”] {
font-size:20px;
}
Pseudo-clases
p[name=“eti”] {
font-size:20px; <p name=“eti”> Prueba</p>
}
Selectores
Otros
Selector Ejemplo Descripción
[attribute^=valu a[href^="https"] Selects every <a> element whose href
e] attribute value begins with "https"
[attribute$=valu a[href$=".pdf"] Selects every <a> element whose href
e] attribute value ends with ".pdf"
[attribute*=value a[href*="w3schools Selects every <a> element whose href
] "] attribute value contains the substring
"w3schools"
:first-of-type p:first-of-type Selects every <p> element that is the
first <p> element of its parent
http://www.w3schools.com/cssref/css_selectors.asp