If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Jan 2013
    Member #
    Where to use section tag and wher to use article tag in HTML5 & CSS3


  3. #2
    Senior Member kralcx's Avatar
    Join Date
    Jan 2010
    3rd Planet from the Sun
    Member #
    18 times

  4. #3
    Member Eric Mintz's Avatar
    Join Date
    Mar 2012
    Atlanta, GA
    Member #
    7 times
    The key difference is that an article is a part of the overall content that is self-contained. That is, the article content could be copied and pasted into another page or context. For example, forum and blog posts are self contained. So a blog or forum page that displays several posts should contain several articles - one for each post. A home page or and about-us page might contain a single article.

    A section is a piece of the larger content. For example, any time you have a heading (h1, h2, etc.), you can consider wrapping the heading and it's related content with section tags. The section wrapper indicates which part of the content the heading relates to.

    Sections can go inside of articles. A terms-and-conditions page has a single article (the terms and conditions), and that article might have many sections: h1:Privacy, h1:Cancelation, etc).

    Sections can go inside of sections:for example, h1:About Dogs might be a section in an article about pets, and h2:About Chihuahuas might be a subsection in About Dogs.

    Articles can go inside of sections. A blog page might have h1:Articles about iPhones, h1:Articles about Android, etc.). And each of the sections would contain the articles.

    Articles can go inside of articles. If a post on a blog is an article, comments on the post might be sub-articles.

    How do you know if the content is self contained (and article) or a piece of the larger content (a section)? You know because it's your content. By your choice of article or section tags, you're telling readers what you intend the content to be.

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 07:51 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: