July 27, 201313 yr Hi, as the title says, I am new to html 5, and I have a question about what tag to use in a fairly common situation. I have a list of blog posts, which are basically articles, but they are shortened and once you click on them you get the whole article. When I open the whole post I am going to wrap the content in an article tag, but what should I do with the shortened versions? To be defined as an article they should be able to stand on their own, but since they display only a portion of the article I think that's clearly not the case. So, should I use the section tag on each of those elements or just wrap the whole thing in a section labeled "latest post" and use div's to wrap each element, does it even matter which tag do I choose in this case?
July 27, 201313 yr An older article, but quite helpful in making your decision http://www.brucelawson.co.uk/2010/html5-articles-and-sections-whats-the-difference/. You can still use the div tag - section and article are are to make your markup more structured and semantic. It's your call, but I would wrap the 'excerpts' in a div personally but I think some would wrap in an article still.
Create an account or sign in to comment