HTML: Elementos Flashcards

1
Q
<h1>Soy un elemento</h1>
A

El contenido de un elemento HTML es la información entre la etiqueta que se abre y la etiqueta que se cierra.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
<ol>
  <li>Head east on Prince St</li>
  <li>Turn left on Elizabeth</li>
</ol>
A

Lista ordenada.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
<ul>
  <li>Cookies</li>
  <li>Milk</li>
</ul>
A

Lista no ordenada.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
<video src="test-video.mp4" controls>
  Video not supported
</video>
A

Inserta un video en la página.
src - contiene el URL del video.
controls - asigna controles al video.
Video not supported - Ese texto aparecerá si el navegador no soporta el video.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
<em>word</em>
A

Pone el texto en cursiva.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
<div>
  <h1>A section of grouped elements</h1>
  <p>Here’s some text for the section</p>
</div>
A

El <div> es un contenedor que divide la página HTML en secciones.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
<elementName name="value"></elementName>
A

El atributo name="value" tiene el objetivo de cambiar el comportamiento del elemento.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
A line break haiku.<br>
Poems are a great use case.<br>
A

El rompedor de línea <br> es útil cuando queremos crear un espacio en la página.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
<img src="image.png">
A

Inserta una imagen en la página.
src - es el enlace de la imagen.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
<h1>Breaking News</h1>
<h2>This is the 1st subheading</h2>
<h3>This is the 2nd subheading</h3>
...
<h6>This is the 5th subheading</h6>
A

Inserta encabezados en el texto. Son de diferente tamaño.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
<p>
  This is a block of text! Lorem ipsum dolor 
  sit amet, consectetur adipisicing elit.
</p>
A

Inserta un bloque de texto en la página.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
<h1 id="A1">Hello World</h1>
A

El atributo id se utiliza para diferenciar elementos.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
<p id="my-paragraph" style="color: green;">
  Here’s some text for a paragraph that is 
  being altered by HTML attributes
</p>
A

Ejemplo de atributos de HTML.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
<img src="path/to/image" alt="text describing image"/>
A

El atributo alt en la etiqueta <img> indica el texto que aparecerá si la imagen falla en cargar.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
<p><span>This text</span> may be styled differently than the surrounding text.</p>
A

El <span> es un contenedor dentro de línea utilizado para diferenciar texto para darle estilo.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
<p>This is <strong>important</strong> text!</p>
A

La etiqueta <strong> convierte el texto en negritas.