I understand from reading similar posts that the <section>
tag in html is meant for semantic and organizational purposes. I was wondering, however, why using the <div>
tag with a class attribute wouldn't have a similar effect.
(e.g. <div class = "SectionOne">
)
Given these two methods, I could refer to each of them in CSS by using their respective names:
Section
{
color = white;
}
or
.SectionOne
{
color = white;
}
Personally, I think the second method allows for greater versatility in webpage design and I don't see many advantages to the new HTML5 feature. Would anyone care to clear this up for me?