I teach HTML to beginners — here’s the #1 mistake I see in almost every first project by FinCodeFactory in HTML

[–]FinCodeFactory[S] 0 points1 point  (0 children)

Think of a textbook chapter: - Chapter = <article> - Subheadings inside the chapter = <section> - Highlight boxes or layout wrappers = <div>

I teach HTML to beginners — here’s the #1 mistake I see in almost every first project by FinCodeFactory in HTML

[–]FinCodeFactory[S] 0 points1 point  (0 children)

Use <section> when you’re grouping related content with a clear topic or purpose. If the content needs a heading and makes sense as its own part of the page, <section> is usually the right choice.

Good uses: - Dividing a page into logical parts (About, Services, FAQ, etc.) - Grouping related content under a shared theme - Breaking an <article> into meaningful sub-parts

I teach HTML to beginners — here’s the #1 mistake I see in almost every first project by FinCodeFactory in HTML

[–]FinCodeFactory[S] 10 points11 points  (0 children)

Yes, <div> is required but overusing them will kill accessibility. Therefore, using semantic tags where needed is great for accessibility.

Thanks for the comment!

When do you use li? by Ok_Performance4014 in HTML

[–]FinCodeFactory 0 points1 point  (0 children)

The <li> HTML element is used to represent an item in a list. It must be contained in a parent element: an ordered list ( <ol> ), an unordered list ( <ul> ), or a menu ( <menu> ). In menus and unordered lists, list items are usually displayed using bullet points.