Challenge: Programming with HTML5 Lists and Images
Explore HTML5 coding by building a mint margarita recipe page. Learn to structure content with headers, unordered and ordered lists, add images with alternative text, and organize elements using containers with IDs and classes.
We'll cover the following...
We'll cover the following...
Coding exercise: Making mint margaritas! 🍃
In this exercise, you will need to do the following:
- Create a page that showcases a recipe for making mint margaritas.
- Use a main-level header for the recipe name
- Use two sub-headers named as follows:
IngredientsInstructions
- Create an unordered list with square bullets containing the ingredients.
- Create an ordered list with lower-case Roman numerals with the instructions for making the margaritas.
- Add an image of the final result of the recipe from a search engine of your choice to your HTML page. Give this image an alternative text label. Place this image under the main level header.
- Wrap the main level header and the image in a container. Give this container an
idattribute, with the valuerecipeTitle. - Group the elements comprising
IngredientsandInstructionsinto separate containers:- Give each container an
idvalue; one namedingredients, the other namedinstructions - Give both containers a
classvalue ofrecipeList
- Give each container an
Possible output
Code your solution away!
Achievement unlocked! 🎉
Congratulations! You’ve successfully completed a coding challenge on lists and images in HTML5.
Great work! Give yourself a round of applause.