Reputation: 9362
I try to use the HTML5 standard for my website.
Here I have a detail page of my blog.
Here is the code:
<article>
<hgroup class="title">
<h1>@Model.Title</h1>
<h6>@Html.InsertHeaderPost(@Model.PublishDate, @Model.Tags)</h6>
</hgroup>
<p>@Html.DisplayTextFor(m => m.Content)</p>
</article>
First question: is it the good way when using article and hgroup tag?
Second question: How can I reduce the space between Intruction à ... and Tags: .. ? I didn't succeed.
Here is my css for hgroup
/* page titles */
hgroup.title {
margin-bottom: 10px;
}
Thanks.
Upvotes: 1
Views: 115
Reputation: 981
Yes, that is fine. As for the margin, try using a browser developer tool such as Firebug or Chrome's built-in one (press F12) to see where the space is coming from. Right-clicking and selecting "Inspect" on the elements should show their margins/padding.
Upvotes: 1