Striped and Hover Tables with Bootstrap
📖 Scenario: You are creating a simple webpage to display a list of fruits and their colors in a table. You want the table to have alternating row colors for easy reading and highlight a row when the mouse hovers over it.
🎯 Goal: Build a Bootstrap table that shows fruit names and their colors with striped rows and hover effect.
📋 What You'll Learn
Use Bootstrap 5 CSS from CDN
Create a table with two columns: Fruit and Color
Add exactly 5 fruits with their colors
Make the table striped using Bootstrap classes
Add a hover effect on table rows using Bootstrap classes
Use semantic HTML and include necessary meta tags for responsiveness
💡 Why This Matters
🌍 Real World
Tables with striped rows and hover effects are common in dashboards, reports, and data presentation on websites to improve readability and user experience.
💼 Career
Knowing how to use Bootstrap classes for tables is a valuable skill for front-end developers and web designers working on professional websites and applications.
Progress0 / 4 steps