Which tag should you use?

Posted by: Pdfprep Category: 70-480 Tags: , ,

You are modifying a website. The body of the page will be divided into two sections:

• A content section will contain blog posts and comments.

• An area on the right-hand side will contain advertisements.

The page is defined by the following HTML.

The site must conform to HTML5 standards and must use HTML5 semantic tags.

You need to ensure that the advertisements are on the rightmost section of the page.

Which tag should you use?
A . <aside>
B . <div>
C . <article>
D . <footer>

Answer: A

Explanation:

The <aside> tag defines some content aside from the content it is placed in.

The aside content should be related to the surrounding content.

aside is now acceptable for secondary content when not nested within an article element.

Reference: HTML <aside> Tag

Leave a Reply

Your email address will not be published.