Tuesday 10 September 2013

Semantically correct HTML

Semantically correct HTML

Is the below code semantically correct? I think my biggest confusion is
around the need of sections in articles
Article: The HTML Element represents a self-contained composition in a
document, page, application, or site, which is intended to be
independently distributable or reusable, e.g., in syndication
Section:The HTML Section Element () represents a generic section of a
document, i.e., a thematic grouping of content, typically with a heading.
In my case im thinking the article sections are self contained chunks of
info and the section is generic info about that header. Does that make
sense?
<!DOCTYPE html>
<html>
<head>
<Title>Anthonys Personal Profile</Title>
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<article>
<header>Personal Profil</header>
<section>
<p>Role</p>
<p>Education</p>
<p>Major</p>
<p>Residence</p>
<section>
</article>
<article>
<header>Key Skills</header>
<section>
<p>Development</p>
<p>PM</p>
<p>Performance</p>
<p>Agile</p>
<section>
</article>

No comments:

Post a Comment