I've got the following footer for a project I'm working on:
<footer>
License: <a href="#">Creative Commons BY</a>
Email: <a href="mailto:#">email@mail.com</a>
Telephone: <a href="tel:#">0123456789</a>
</footer>
For this footer I want each link (and their prefixes) to be displayed on a separate line, and I would like to do it as semantically valid as possible, without adding unneccesary markup.
I've already considered:
The
<br>
tag, but it is only considered semantic in poetry (or similar content where the line-break is an inherent part of the information, so I cannot use that to break the lines (see this question: <br> tag semantic alternative usage)Using an
ul
, but it isn't really a list, so wrapping it in anul
also isn't really a valid option.Using fixed widths, but I would really like to find a dynamic solution.
Surrounding each line with a
<p>
, which seems a bit overdone, because it isn't really paragraphs, but single lines that I'm wrapping.
What would be the best way to break these lines in a semantically sensible way, without adding extra markup?
all the way IMHO,
– Richlewis Apr 11 '13 at 10:23should not be used, and why not add any more markup, few lines of css and your good to go