Comments on: The small & hr elements https://stevefaulkner.github.io/html5doctored/small-hr-element/ helping you implement HTML5 today Mon, 13 Jun 2016 09:06:06 +0000 hourly 1 By: Rhys Lloyd https://stevefaulkner.github.io/html5doctored/small-hr-element/#comment-1991584 Fri, 26 Jun 2015 02:48:13 +0000 http://html5doctor.com/?p=1506#comment-1991584 I have similar confusions around the <small> element for blocks of legal/disclaimer text.

Quite often terms and conditions are in an ordered list form. It seems to make sense to me that I should be able to mark the entire block or blocks as disclaimer text.

Although the spec doesn’t seem to support that, so do I then need to mark up disclaimers such as:


<p><small>Disclaimer intro paragraph.</small></p>
<ol>
<li><small>Point one is often short.</small></li>
<li><small>Point two is usually a little bit longer..</small></li>
<li><small>Point three is usually quite verbose but who really reads it anway.</small></li>
</ol>

It just doesn’t feel efficient. Surely it would make more sense to wrap the whole block?


<small>
<p>Disclaimer intro paragraph.</p>
<ol>
<li>Point one is often short.</li>
<li>Point two is usually a little bit longer.</li>
<li>Point three is usually quite verbose but who really reads it anway.</li>
</ol>
</small>

]]>
By: Yoannis Jamar https://stevefaulkner.github.io/html5doctored/small-hr-element/#comment-1850060 Fri, 10 Apr 2015 09:35:32 +0000 http://html5doctor.com/?p=1506#comment-1850060 I am a little confused by the don’t use small for block-level content, when it should be used for small print – which may contain multiple paragraphs.

For multiple paragraphs of small print, I see two possible markup patterns illustrated below.

1. Wrap full paragraphs content inside <small> tags:

<p><small>The figures presented in this article are the results of tests performed on a sample of 400 users, ...</small></p>
<p><small>Different use cases may result in different figures, as ...</small></p>

2. Put all paragraphs inside an <aside> element (uses a smallprint class to apply the same styles as a <small> element via CSS):

<aside class="smallprint">
<p>The figures presented in this article are the results of tests performed on a sample of 400 users, ...</p>
<p>Different use cases may result in different figures, as ...<p>
</aside>

I wonder what the differences are between each of these two patterns’ semantic implications, and when it is best to use one rather than the other. Does <small> is […] the inline equivalent of <aside> mean that the markup in my second example is preferable ?

Another similar use-case I see is with side-notes, which are also side-content. Should every side-note’s text content be wrapped inside a <small> tag, or would it be better to put the whole list of side-notes inside an <aside> ?

]]>
By: Andrew https://stevefaulkner.github.io/html5doctored/small-hr-element/#comment-38335 Sun, 22 Sep 2013 06:48:20 +0000 http://html5doctor.com/?p=1506#comment-38335 I was hoping they’d ditch them too. They probably had to keep them for one reason or another and just decided to make them as useful as possible.

I actually am glad now that the tag was kept – I use it exclusively for icons.

As for HR tags, you can style the ever loving crap out of them in CSS3 and are an option to break up sections without closing/opening containers. I used them in a documentation project last year and styled them with a shadow code that styled them like creases in paper. They worked nicely.

Speaking of old tags, I came across an HTML5 doctype’d website today that had FONT TAGS. And it was a digital agency’s site. I was speechless, so I just exited out of it and went onward with my business.

]]>
By: SelenIT https://stevefaulkner.github.io/html5doctored/small-hr-element/#comment-29127 Tue, 30 Oct 2012 16:44:59 +0000 http://html5doctor.com/?p=1506#comment-29127 @Dr. Oli — thanks a lot! The next line of Hixie’s quote explains it all.

]]>
By: Oli Studholme https://stevefaulkner.github.io/html5doctored/small-hr-element/#comment-29098 Tue, 23 Oct 2012 18:24:58 +0000 http://html5doctor.com/?p=1506#comment-29098 @SelenIT — yeah, you’re right, I phrased that poorly. Hixie’s original quote was:

<hr> basically says “end of one section, start of another”

So roughly equivalent inference, but not equivalent HTML semantics.

Related: This also demonstrates why a link in <q cite> is metacrap. Hung in my own noose! :)

]]>
By: SelenIT https://stevefaulkner.github.io/html5doctored/small-hr-element/#comment-29056 Wed, 17 Oct 2012 16:49:46 +0000 http://html5doctor.com/?p=1506#comment-29056 @Dr. Oli

<hr> actually means “end of one section, start of another”, which is the same semantically as </section><section>.

Could you explain this point a bit? As far as I know, they can’t be exactly the same at least because hr element doesn’t affect document outline (so these constructs result in different outlines, and are hence semantically different). Could you help me with this confusion?

]]>
By: Personalizar menús en WordPress con un Walker | César Hernández https://stevefaulkner.github.io/html5doctored/small-hr-element/#comment-28186 Fri, 15 Jun 2012 16:27:50 +0000 http://html5doctor.com/?p=1506#comment-28186 […] [^2]: De hecho los enlaces son tratados como entradas en la base de datos de WordPress [^3]: Ver https://stevefaulkner.github.io/html5doctored/small-hr-element/ [gist]: https://gist.github.com/2904437 &#8617; Posted in […]

]]>
By: Angelo https://stevefaulkner.github.io/html5doctored/small-hr-element/#comment-25118 Mon, 26 Mar 2012 08:01:53 +0000 http://html5doctor.com/?p=1506#comment-25118 Will do, thanks for your help :) Certainly something I need to take a deeper look at.

]]>
By: Oli Studholme https://stevefaulkner.github.io/html5doctored/small-hr-element/#comment-25116 Mon, 26 Mar 2012 07:08:03 +0000 http://html5doctor.com/?p=1506#comment-25116 @Angelo — <hr> seems pretty styleable in modern browsers to me — here are some examples of styling <hr>.

“XHTML is valid code” — this doesn’t make sense. XHTML is as (in-)valid as HTML5. You can’t have a <footer> in a <header> or vice versa, the spec explicitly forbids this. You can use “XHTML style” closing tags if you want, as I wrote in point 9 of 12 common problems with HTML5 back in 2009. Actually please read that entire article, you might find it illuminating :) After that check out the HTML5 Doctor article archive ;)

]]>
By: Angelo https://stevefaulkner.github.io/html5doctored/small-hr-element/#comment-25115 Mon, 26 Mar 2012 06:28:06 +0000 http://html5doctor.com/?p=1506#comment-25115 @Dr. Oli

The HR property limits my control. The HR divide is very think and when I try to remove a border to make the divide thinner it won’t let me. Just to illustrate on your website you have nice thin borders, where are not HR tags, you simply but a border-top.

The only issue I have is that a HR tag would have good appropriate for my situation but considering is placed a double-lined space I think I would rather pass. If my HR tag was invisible it would have been ideal, but for styling I would not recommend it.

I look at things from a presentational point of view, I agree semantically it’s better, but presentationally it’s worse.

What XHTML coding practices do you feel are better?

XHTML is valid code. HTML5 uses the tags such as the which act the same way as DIV’s. In other words you can have a footer in the header and vice versa. The tags aren’t closed any more, which is confusing since such a deal was made back in university on closing tags.

]]>