S
shapper
Hello,
I am displaying Articles and Documents in two different page.
An Article contains a Title, Image, Update Date and Text.
An Document contains a Title and a Updated Date. The title is the link
to the file.
When displaying the list does it make sense to use:
<div class="Articles">
<div id="Article1" class="Article">
<h2>Article title<span>Update at 20-10-2009</span></h2>
<img src="images/Article1.jpg"/>
Article Content
</div>
<div id="Article2" class="Article">
<h2>Article title<span>Update at 22-10-2009</span></h2>
<img src="images/Article2.jpg"/>
Article Content
</div>
</div>
Maybe I don't even need the Articles wrapper ... I am not sure yet ...
For documents is similar but having only:
<div class="Documents">
<div id="Document1" class="Document">
<h2><a href="/Document1.pdf">Document title<span>Update at
20-10-2009</span></a></h2>
</div>
...
</div>
I think in Documents list I might use the following instead:
<div class="Documents">
<p><a href="/Document1.pdf">Document title<span>Update at
20-10-2009</span></a></p>
</div>
And maybe I should use a list instead of divs?
Anyway, what do you think would be the correct markup for this?
Thank You,
Miguel
I am displaying Articles and Documents in two different page.
An Article contains a Title, Image, Update Date and Text.
An Document contains a Title and a Updated Date. The title is the link
to the file.
When displaying the list does it make sense to use:
<div class="Articles">
<div id="Article1" class="Article">
<h2>Article title<span>Update at 20-10-2009</span></h2>
<img src="images/Article1.jpg"/>
Article Content
</div>
<div id="Article2" class="Article">
<h2>Article title<span>Update at 22-10-2009</span></h2>
<img src="images/Article2.jpg"/>
Article Content
</div>
</div>
Maybe I don't even need the Articles wrapper ... I am not sure yet ...
For documents is similar but having only:
<div class="Documents">
<div id="Document1" class="Document">
<h2><a href="/Document1.pdf">Document title<span>Update at
20-10-2009</span></a></h2>
</div>
...
</div>
I think in Documents list I might use the following instead:
<div class="Documents">
<p><a href="/Document1.pdf">Document title<span>Update at
20-10-2009</span></a></p>
</div>
And maybe I should use a list instead of divs?
Anyway, what do you think would be the correct markup for this?
Thank You,
Miguel