Sigue las instrucciones para enlazar style.css y script.js, y luego añade algunas características al sitio web.
- Añadir un encabezado que diga "¡Hola mundo!"
- Insertar una imagen desde el directorio de imágenes.
- Añadir un atributo ID que sea igual a "rojo".
- Añadir cuatro encabezados más que digan "Hola mundo".
- Añadir dos atributos de clase iguales a "azul".
- Enlazar CSS con HTML.
- Hacer que todos los elementos H1 sean de color verde.
- Hacer la clase "azul" y aplicar el color azul al texto.
- Hacer un ID igual a "rojo" y aplicar el color rojo al texto.
- Enlazar JavaScript con HTML.
- Modificar el primer "¡Hola Mundo!" para que diga "Adiós" con JS.
- Cambiar el color de fuente de un encabezado a naranja con JS.
- Añadir un encabezado en el que se pueda hacer clic y que cambie el color de fuente a marrón con JS.
Familiarízate con el atributo ID, que se utilizará ampliamente en esta actividad.
- Intenta agregar una etiqueta extra que no se haya mencionado en la clase, y dale algun contenido,finalmente, manipula el elemento por medio del DOM con el cambio que tu desees.
Follow the instructions to link style.css and script.js, and then add some features to the website.
- Add a header saying, "Hello world!"
- Insert an image from the Picture directory.
- Add an ID attribute that equals "red"
- Add four more headers saying "Hello world"
- Add two class attributes equal to "blue"
- Link CSS to HTML
- Make all H1 elements the colour green
- Make the class "blue" and apply the colour blue to the text
- Make an ID equal to "red" and apply the color red to the text
- Link JavaScript to HTML
- Modify the first "Hello World!" to say "GoodBye" with JS
- Change the font colour of a header to orange with JS
- Add a clickable header that changes the font colour to brown with JS
Be familiar with the Id attribute, which will be used extensively in this activity.