Skip to content

Latest commit

 

History

History
60 lines (45 loc) · 2.36 KB

instructions.md

File metadata and controls

60 lines (45 loc) · 2.36 KB

Plan de la lección

Sigue las instrucciones para enlazar style.css y script.js, y luego añade algunas características al sitio web.

Instrucciones:

Sección HTML

  • 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".

Sección CSS

  • 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.

Sección JavaScript

  • 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.

Consejo:

Familiarízate con el atributo ID, que se utilizará ampliamente en esta actividad.

RETO EXTRA:

  • 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.

Lesson plan

Follow the instructions to link style.css and script.js, and then add some features to the website.

Instructions:

HTML Section

  • 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"

CSS Section

  • 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

JavaScript

  • 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

Tip:

Be familiar with the Id attribute, which will be used extensively in this activity.