2023-04-11 10:34:11 -04:00
|
|
|
# Formación programación
|
2023-04-08 21:15:52 -04:00
|
|
|
|
2023-04-10 17:56:21 -04:00
|
|
|
## Primeros pasos
|
2023-04-08 21:15:52 -04:00
|
|
|
|
2023-04-12 00:03:17 -04:00
|
|
|
**04** Crea tus primeras paginas HTML5 y CSS
|
2023-04-10 17:56:21 -04:00
|
|
|
|
2023-04-12 00:03:17 -04:00
|
|
|
### Parte 1 - Primera página web
|
2023-04-08 21:15:52 -04:00
|
|
|
|
|
|
|
Diferencias entre [html y css](https://www.aluracursos.com/blog/html-css-javascript-cuales-son-las-diferencias).
|
|
|
|
|
2023-04-10 17:56:21 -04:00
|
|
|
- Descarga archivo [texto-base.txt](./html_css_parte1/texto-base.txt)
|
|
|
|
(archivo en formato `dos`).
|
2023-04-08 21:15:52 -04:00
|
|
|
|
|
|
|
> en NeoVim `set ff=unix`
|
|
|
|
|
2023-04-10 17:56:21 -04:00
|
|
|
Página [barbería](./html_css_parte1/index.html) -
|
|
|
|
estilo.[css](./html_css_parte1/style.css).
|
2023-04-09 00:21:19 -04:00
|
|
|
|
|
|
|
Formas de aplicar estilo CSS:
|
|
|
|
|
|
|
|
- style inline.
|
|
|
|
|
|
|
|
```html
|
|
|
|
<h1 style="text-align: center;">Sobre la Barbería Alura</h1>
|
|
|
|
```
|
|
|
|
|
|
|
|
- style block con tag `<style>`.
|
|
|
|
|
|
|
|
```html
|
|
|
|
<style>
|
|
|
|
p {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
```
|
|
|
|
|
2023-04-10 17:56:21 -04:00
|
|
|
- style [file](./html_css_parte1/style.css).
|
2023-04-09 00:21:19 -04:00
|
|
|
|
2023-04-12 00:03:17 -04:00
|
|
|
#### Sistema hexadecimal
|
2023-04-09 00:21:19 -04:00
|
|
|
|
|
|
|
Sistema número que consta de las 6 primeras letras del alfabeto y los números
|
|
|
|
del 0 al 9.
|
|
|
|
|
|
|
|
```txt
|
|
|
|
0 1 2 3 4 5 6 7 8 9 A B C D E F
|
|
|
|
```
|
|
|
|
|
|
|
|
La combinación de estos 16 elementos permiten la representación de mas valores,
|
|
|
|
en menos caracteres, que por ejemplo, en un sistema binario. Es por esto que es
|
|
|
|
ampliamente utilizado en el mundo imformático.
|
|
|
|
|
|
|
|
La representación de los colores en 6 posiciones
|
|
|
|
|
|
|
|
```txt
|
|
|
|
|
|
|
|
0 0 0 0 0 0 <--- Mínimo
|
|
|
|
F F F F F F <--- Máximo
|
|
|
|
# _ _ _ _ _ _
|
|
|
|
r r g g b b
|
|
|
|
|
|
|
|
Negro -> #000000
|
|
|
|
Blanco -> #FFFFFF
|
|
|
|
```
|
|
|
|
|
|
|
|
```txt
|
|
|
|
0 = Mínimo
|
|
|
|
255 = Máximo
|
|
|
|
|
|
|
|
Negro -> rgb(0,0,0)
|
|
|
|
Blanco -> rgb(255,255,255)
|
|
|
|
```
|
|
|
|
|
2023-04-12 00:03:17 -04:00
|
|
|
#### Equipo de Front End
|
2023-04-09 00:21:19 -04:00
|
|
|
|
|
|
|
- Programador Front End
|
|
|
|
- Responsable por UX (user experiencie)
|
|
|
|
- Responsable por UI (user interface)
|
|
|
|
- Copywriter (Generador de Contenido)
|
|
|
|
- SEO (Search Engine Optimization)
|
|
|
|
|
2023-04-10 17:56:21 -04:00
|
|
|
Final curso HTML5 y CSS parte 1 - Página
|
|
|
|
[barbería](./html_css_parte1/index.html) -
|
|
|
|
estilo.[css](./html_css_parte1/style.css).
|
|
|
|
|
2023-04-12 00:03:17 -04:00
|
|
|
### Parte 2 - Posicionamiento, listas y navegación
|
2023-04-10 17:56:21 -04:00
|
|
|
|
2023-04-10 20:25:49 -04:00
|
|
|
Página [productos](./html_css_parte2/productos.html) y
|
|
|
|
[estilo](./html_css_parte2/productos.css).
|
|
|
|
|
|
|
|
- Base de un archivo HTML.
|
|
|
|
- Lista html no ordenada.
|
|
|
|
- Posicionamiento listas y 'menu' de navegación.
|
|
|
|
- Posicionamiento encabezado de página.
|
2023-04-11 01:12:32 -04:00
|
|
|
|
2023-04-11 10:34:11 -04:00
|
|
|
**CSS** - La propiedad [display](https://www.w3schools.com/css/css_inline-block.asp).
|
|
|
|
|
|
|
|
<details><summary markdown="span">estilo</summary>
|
|
|
|
|
|
|
|
```css
|
|
|
|
span.a {
|
|
|
|
display: inline; /* the default for span */
|
|
|
|
width: 100px;
|
|
|
|
height: 100px;
|
|
|
|
padding: 5px;
|
|
|
|
border: 1px solid blue;
|
|
|
|
background-color: yellow;
|
|
|
|
}
|
|
|
|
|
|
|
|
span.b {
|
|
|
|
display: inline-block;
|
|
|
|
width: 100px;
|
|
|
|
height: 100px;
|
|
|
|
padding: 5px;
|
|
|
|
border: 1px solid blue;
|
|
|
|
background-color: yellow;
|
|
|
|
}
|
|
|
|
|
|
|
|
span.c {
|
|
|
|
display: block;
|
|
|
|
width: 100px;
|
|
|
|
height: 100px;
|
|
|
|
padding: 5px;
|
|
|
|
border: 1px solid blue;
|
|
|
|
background-color: yellow;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
</details></br>
|
|
|
|
|
|
|
|
<details><summary markdown="span">html</summary>
|
2023-04-11 01:12:32 -04:00
|
|
|
|
|
|
|
```html
|
|
|
|
<body>
|
|
|
|
<h1>The display Property</h1>
|
|
|
|
|
|
|
|
<h2>display: inline</h2>
|
|
|
|
<div>
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum
|
|
|
|
consequat scelerisque elit sit amet consequat. Aliquam erat volutpat.
|
|
|
|
<span class="a">Aliquam</span> <span class="a">venenatis</span> gravida
|
|
|
|
nisl sit amet facilisis. Nullam cursus fermentum velit sed laoreet.
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h2>display: inline-block</h2>
|
|
|
|
<div>
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum
|
|
|
|
consequat scelerisque elit sit amet consequat. Aliquam erat volutpat.
|
|
|
|
<span class="b">Aliquam</span> <span class="b">venenatis</span>
|
|
|
|
gravida nisl sit amet facilisis. Nullam cursus fermentum velit sed laoreet.
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h2>display: block</h2>
|
|
|
|
<div>
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum
|
|
|
|
consequat scelerisque elit sit amet consequat.Aliquam erat volutpat.
|
|
|
|
<span class="c">Aliquam</span> <span class="c">venenatis</span>
|
|
|
|
gravida nisl sit amet facilisis. Nullam cursus fermentum velit sed laoreet.
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
```
|
|
|
|
|
2023-04-11 10:34:11 -04:00
|
|
|
</details></br>
|
|
|
|
|
2023-04-11 01:12:32 -04:00
|
|
|
<p align="center">
|
|
|
|
<img style="align: center;" width="60%" src="./html_css_parte2/imagenes/css_display_property.png"/>
|
|
|
|
<br/><br/>
|
|
|
|
</p>
|
|
|
|
|
2023-04-11 10:34:11 -04:00
|
|
|
En la página [productos](./html_css_parte2/productos.html) se utiliza la
|
|
|
|
propiedad `display` con el valor `inline-block` para poder ajustar su contenido
|
2023-04-11 14:58:40 -04:00
|
|
|
en [productos.css](./html_css_parte2/productos.css).
|
|
|
|
|
|
|
|
Se utiliza una imagen como fondo con la propiedad css background
|
|
|
|
`background: url(./imagenes/bg.jpg)` para la etiqueta `<footer>`.
|
2023-04-11 11:51:06 -04:00
|
|
|
|
2023-04-12 12:17:48 -04:00
|
|
|
- [Centrar](https://www.aluracursos.com/blog/centrar-un-elemento-con-css) un
|
2023-04-11 11:51:06 -04:00
|
|
|
elemento con css.
|
2023-04-12 12:17:48 -04:00
|
|
|
- Caracteres especiales, unicode
|
2023-04-11 11:51:06 -04:00
|
|
|
[wiki](https://en.wikipedia.org/wiki/List_of_Unicode_characters).
|
|
|
|
|
|
|
|
Final curso HTML5 y CSS parte 2
|
2023-04-11 01:12:32 -04:00
|
|
|
|
2023-04-12 00:03:17 -04:00
|
|
|
### Parte 3 - Formularios y Tablas
|
2023-04-11 14:58:40 -04:00
|
|
|
|
2023-04-12 12:17:48 -04:00
|
|
|
- Nueva página, [contacto.html](./html_css_parte3/contacto.html).
|
|
|
|
- Se renombraron los estilos css: productos.css como [style.css](./html_css_parte3/style.css),
|
2023-04-11 18:00:26 -04:00
|
|
|
y style.css como [style_home](./html_css_parte3/style_home.css).
|
2023-04-12 12:17:48 -04:00
|
|
|
- Creación de formulario HTML, tags `<form>`', `<input>` (text y submit)
|
2023-04-11 18:00:26 -04:00
|
|
|
para entradas de usuario. Tag `<label>` como etiqueta.
|
2023-04-12 12:17:48 -04:00
|
|
|
- Conexión del **input** () con su **label**.
|
|
|
|
- Uso de `id` para el `input` asociado al atributo `for` del `label`.
|
2023-04-11 14:58:40 -04:00
|
|
|
|
2023-04-11 19:38:42 -04:00
|
|
|
Jerarquía en css, ejemplo.
|
|
|
|
|
|
|
|
```txt
|
|
|
|
- Peso gráfico:
|
|
|
|
___________________________
|
|
|
|
| | ___________________
|
|
|
|
| inline | | | _____________
|
|
|
|
| | | ID | | | ________
|
|
|
|
| | | | | class | |etiqueta|
|
|
|
|
| 1000 | | 100 | | 10 | |____1___|
|
|
|
|
| | | | |_____________|
|
|
|
|
| | |___________________|
|
|
|
|
|___________________________|
|
|
|
|
|
|
|
|
- Peso valores:
|
|
|
|
|
|
|
|
form p = 1+1 = 2
|
|
|
|
p = 1
|
|
|
|
.test = 10
|
|
|
|
p.test = 1+10 = 11
|
|
|
|
#test = 100
|
|
|
|
```
|
|
|
|
|
|
|
|
<details><summary markdown="span">html</summary>
|
|
|
|
|
|
|
|
```html
|
|
|
|
...
|
|
|
|
<form>
|
|
|
|
...
|
|
|
|
<div>
|
|
|
|
<p class="test" id="test">Como prefieres que te contactemos?</p>
|
|
|
|
|
|
|
|
<label for="radio-email"><input type="radio" name="contacto"
|
|
|
|
value="email" id="radio-email"> Email</label>
|
|
|
|
|
|
|
|
<label for="radio-telefono"><input type="radio" name="contacto"
|
|
|
|
value="telefono" id="radio-telefono"> Teléfono</label>
|
|
|
|
|
|
|
|
<label for="radio-whatsap"><input type="radio" name="contacto"
|
|
|
|
value="whatsap" id="radio-whatsap"> Whatsapp</label>
|
|
|
|
</div>
|
|
|
|
...
|
|
|
|
</form>
|
|
|
|
...
|
|
|
|
```
|
|
|
|
|
|
|
|
</details></br>
|
|
|
|
|
|
|
|
<details><summary markdown="span">css</summary>
|
|
|
|
|
|
|
|
```css
|
|
|
|
...
|
|
|
|
|
|
|
|
form p { color: blue; }
|
|
|
|
|
|
|
|
p { color: red; }
|
|
|
|
|
|
|
|
.test { color: yellow; }
|
|
|
|
|
|
|
|
p.test { color: magenta; }
|
|
|
|
|
|
|
|
#test { color: cyan; }
|
|
|
|
|
|
|
|
/* la configuración de estilo inline sobrescribe todo */
|
|
|
|
```
|
|
|
|
|
|
|
|
</details></br>
|
|
|
|
|
2023-04-12 00:03:17 -04:00
|
|
|
|
|
|
|
#### HTML input types
|
|
|
|
|
|
|
|
[w3schools input types](https://www.w3schools.com/html/html_form_input_types.asp)
|
|
|
|
|
|
|
|
<details><summary markdown="span">lista</summary>
|
|
|
|
|
|
|
|
```html
|
|
|
|
<input type="button">
|
|
|
|
<input type="checkbox">
|
|
|
|
<input type="color">
|
|
|
|
<input type="date">
|
|
|
|
<input type="datetime-local">
|
|
|
|
<input type="email">
|
|
|
|
<input type="file">
|
|
|
|
<input type="hidden">
|
|
|
|
<input type="image">
|
|
|
|
<input type="month">
|
|
|
|
<input type="number">
|
|
|
|
<input type="password">
|
|
|
|
<input type="radio">
|
|
|
|
<input type="range">
|
|
|
|
<input type="reset">
|
|
|
|
<input type="search">
|
|
|
|
<input type="submit">
|
|
|
|
<input type="tel">
|
|
|
|
<input type="text">
|
|
|
|
<input type="time">
|
|
|
|
<input type="url">
|
|
|
|
<input type="week">
|
|
|
|
```
|
|
|
|
|
|
|
|
</details></br>
|
|
|
|
|
2023-04-12 12:17:48 -04:00
|
|
|
- Etiqueta `<fieldset>` como agrupador y `<legend>` como parrafo.
|
|
|
|
- Descripción de imagenes `alt="Descripción de imagen"`.
|
2023-04-12 18:34:50 -04:00
|
|
|
- Clase css *enviar* para input submit "Enviar Formulario"
|
|
|
|
[contacto](./html_css_parte3/contacto.html#L63).
|
|
|
|
- [Propiedades](./html_css_parte3/style.css#L123): cursor (pointer), transition,
|
|
|
|
transform (scale, rotate).
|
|
|
|
- [Tablas](./html_css_parte3/contacto.html#L66) y [estilo](./html_css_parte3/style.css#L142).
|
|
|
|
|
|
|
|
Final curso HTML5 y CSS parte 3
|
|
|
|
|