开发者

Is this proper use of HTML5?

Please take a开发者_Go百科 look at this example -

Is this proper use of HTML5?

I know I'm using the footer/nav correctly but the <side> and <section> is kinda confusing.

The <figure> will be just one huge logo. Beside that will be the main content. Would <aside> be proper use? Its not side content like a sidebar so thats why i'm asking.

Also the <section> would be columns for the content, would that be right?


HTML first of all gives meaning to content. The <aside> element is for "sort of but not really related content." You shouldn't put your main content in it. A <div> or <article> element should do fine. Position it on the side using CSS.


<aside> - content that is considered separate from the main content of the page

You could put the main content inside an <article> element.

<figure> - for diagrams, illustrations, photos, and code examples

Since a logo is not a stand-alone unit, I wouldn't use the FIGURE element. Consider just setting that image as a page background or something - it's just one image, so there is no need for much markup here.

<article> - could be a forum post, a magazine or newspaper article, a blog entry, a user-submitted comment, an interactive widget or gadget, or any other independent item of content
Source: http://html5doctor.com/the-article-element/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜