The <span> and <div> tags are used to group together chunks of HTML, and hook information onto that chunk of HTML. Most commonly, they are used with the CSS attributes class and id to associate the element with a certain CSS class or id selector. Don't forget your Semantic HTML! Click here for a reminder.

3m read timeFrom laylacodes.hashnode.dev
Post cover image
Table of contents
Table of ContentsSummary 😎What is <span> ?? 🤯What is <div> ?? 🥸Examples 🤯and that's all, folks! 🥳🥳
1 Comment

Sort: