HTML (NUEVO) Flashcards

(50 cards)

1
Q

¿Qué es HTML y para qué sirve?

A

HTML (HyperText Markup Language) es un lenguaje de marcado que estructura el contenido para que el navegador lo muestre. No es un lenguaje de programación.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

¿Qué extensión tienen los archivos HTML?

A

.htm o .html (texto plano).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

¿Qué es un navegador web?

A

Programa que interpreta HTML y muestra páginas. Ejemplos: Chrome, Firefox, Safari, Edge.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

¿Para qué sirve CSS?

A

Define el aspecto visual: colores, fuentes, espaciados, diseño.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

¿Para qué sirve JavaScript?

A

Aporta interactividad: validaciones, animaciones y respuesta a eventos.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

¿Qué significa <!DOCTYPE html>?

A

Declara que el documento es HTML5. Va al inicio del archivo.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Estructura principal HTML

A

<html> raíz, <head> información para el navegador, <body> contenido visible.
</body></head></html>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

¿Qué suele ir en <head>?

A

Metadatos, <title>, CSS, charset, descripción, palabras clave.</title>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

¿Qué va en <body>?

A

Contenido visible: texto, imágenes, enlaces, tablas, formularios, etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

¿Para qué sirve <meta charset="utf-8">?

A

Define la codificación de caracteres (UTF-8).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

¿Qué hace la etiqueta <title>?</title>

A

Establece el título que aparece en la pestaña del navegador.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

¿Cómo se escriben comentarios en HTML?

A

<!-- Este es un comentario -->

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Partes de una etiqueta HTML

A

Apertura, contenido, cierre. Ej.: <p>Texto</p>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

¿Qué son los atributos en HTML?

A

Información adicional en la etiqueta de apertura. Ej.: class="destacado"

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

¿Qué es el anidamiento en HTML?

A

Elementos dentro de otros. Ej.: <p>Mi gato es <strong>muy</strong> gruñón</p>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Niveles de títulos en HTML

A

Seis: de <h1> a <h6>.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Énfasis de texto

A

<em> cursiva y <strong> negrita.</strong></em>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

<ul> vs <ol>
</ol></ul>

A

<ul> lista sin numerar. <ol> lista numerada. Ambas usan <li>.
</li></ol></ul>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

¿Para qué sirve <br></br>?

A

Inserta un salto de línea.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Insertar imagen

A

<img src="url" alt="descripción" width="300">

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Atributo alt en imágenes

A

Texto alternativo si no carga y para accesibilidad.

22
Q

Crear enlace

A

<a href="url">Texto</a>

23
Q

Abrir enlace en nueva pestaña

A

<a href="url" target="_blank">Texto</a>

24
Q

Enlace interno (misma página)

A

Dar id al destino y enlazar con #id. Ej.: <a href="#historia">Ir a Historia</a>

25
¿Para qué sirven y ?
agrupa encabezados. agrupa filas de datos.
26
¿Dónde poner CSS en HTML?
En