Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

APRENDE PROGRAMACIÓN - HTML , CSS, JavaScript , PYTHON

Rating
-
Sold
-
Pages
52
Uploaded on
27-11-2024
Written in
2024/2025

¿Quieres dominar HTML, CSS, JavaScript y Python desde cero hasta nivel experto? Estos apuntes completos te guiarán paso a paso con ejemplos, explicaciones detalladas y ejercicios prácticos. Ideal para estudiantes, profesionales y autodidactas que deseen aprender a programar o mejorar sus habilidades. Con contenido actualizado y fácil de entender, ¡serás un experto en el desarrollo web y en Python en poco tiempo

Show more Read less
Institution
Course

Content preview

HTML (Lenguaje de Marcado de Hipertexto)

1. Estructura Básica de un Documento HTML
Todo documento HTML tiene una estructura esencial, como esta:

<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Título de la página</title>
</head>
<body>
<!-- Contenido visible aquí -->
</body>
</html>



Explicación:

1. <!DOCTYPE html>: Indica que el documento es HTML5.
2. <html>: Contiene todo el contenido del documento.
3. Atributo lang="es": Define el idioma del contenido.
4. <head>: Contiene metadatos (no visibles en la página).
5. <body>: Contiene el contenido visible en el navegador.




2. Principales Etiquetas HTML y su Uso
2.1. Encabezados

Los encabezados (<h1> a <h6>) organizan el contenido jerárquicamente.

Ejemplo:

<h1>Este es un título principal</h1>
<h2>Este es un subtítulo</h2>
<h3>Encabezado de tercer nivel</h3>



2.2. Texto y Párrafos

● <p>: Define párrafos.
● <br>: Salto de línea.
● <strong> y <em>: Negrita e itálica semántica.
● <mark>: Resaltar texto.
● <code>: Muestra texto como código.

,Ejemplo:

<p>Este es un párrafo.</p>
<p>Texto con <strong>negrita</strong> y <em>cursiva</em>.</p>
<p>Texto <mark>resaltado</mark>.</p>
<code>console.log('Hola, Mundo');</code>



2.3. Listas
Listas ordenadas (<ol>):



<ol>
<li>Elemento 1</li>
<li>Elemento 2</li>
</ol>


Listas no ordenadas (<ul>):



<ul>
<li>Elemento A</li>
<li>Elemento B</li>
</ul>


Listas de definición (<dl>):



<dl>
<dt>HTML</dt>
<dd>Lenguaje de marcado.</dd>
<dt>CSS</dt>
<dd>Lenguaje de estilos.</dd>
</dl>




2.4. Enlaces

Los enlaces (<a>) conectan documentos o recursos.

Ejemplo:

<a href="https://example.com">Visita Example</a>
<a href="#seccion2">Ir a la sección 2</a>
<a href="archivo.pdf" download>Descargar PDF</a>

, ● Atributos importantes:
○ href: Define la URL.
○ target="_blank": Abre en una nueva pestaña.
○ download: Descarga el archivo.




2.5. Imágenes

Las imágenes se insertan con <img>.

Ejemplo:

<img src="imagen.jpg" alt="Descripción de la imagen" width="300" height="200">



● Atributos importantes:
○ src: Ruta de la imagen.
○ alt: Texto alternativo.
○ width y height: Dimensiones de la imagen.




2.6. Tablas

Las tablas permiten estructurar datos tabulares.

Ejemplo básico:

<table border="1">
<thead>
<tr>
<th>Nombre</th>
<th>Edad</th>
</tr>
</thead>
<tbody>
<tr>
<td>Ana</td>
<td>25</td>
</tr>
<tr>
<td>Juan</td>
<td>30</td>
</tr>
</tbody>
</table>



Explicación:

, ● <table>: Define la tabla.
● <thead>, <tbody>, <tfoot>: Cabecera, cuerpo y pie.
● <tr>: Define filas.
● <th>: Define encabezados de columnas.
● <td>: Define celdas.




2.7. Formularios

Los formularios permiten recolectar datos del usuario.

Ejemplo básico:

<form action="procesar.php" method="post">
<label for="nombre">Nombre:</label>
<input type="text" id="nombre" name="nombre">

<label for="edad">Edad:</label>
<input type="number" id="edad" name="edad">

<button type="submit">Enviar</button>
</form>



Atributos importantes:

● action: URL a la que se envían los datos.
● method: Método HTTP (get o post).




2.8. Multimedia
Audio:



<audio controls>
<source src="audio.mp3" type="audio/mpeg">
Tu navegador no soporta audio.
</audio>




Video:



<video controls width="640" height="360">
<source src="video.mp4" type="video/mp4">
Tu navegador no soporta video.
</video>

Written for

Institution
Course

Document information

Uploaded on
November 27, 2024
Number of pages
52
Written in
2024/2025
Type
Class notes
Professor(s)
-
Contains
All classes

Subjects

$10.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
mayragutierrezc04

Get to know the seller

Seller avatar
mayragutierrezc04 utn
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
1 year
Number of followers
0
Documents
4
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions