0
Confused about when to use section and article!
Generally I think I understand when to use each but I have seen examples that look like they should be sections but instead it's an article. Here's an example that confuses me: Let's say you're making a book website that recommends books to you based on the ones you already read. Each recommendation has an image of the book , its title and its rating. Would each book be a section as the images appear to split things up or would they be sections in an article or just an article?
1 ответ
+ 5
Dylan Scully a book in general is an article, and most likely the primary image would be inside the article and initial h1 tag , then each chapter within the book is a section, and each chapter would include its own image and h2 tag.
An article tag is actually the parent to section tags ( children / siblings )
Another example might be an article such as a blog in general whereas smaller topics within the blog are sectioned off.