| 1 |
[[!comment format=mdwn |
| 2 |
username="smcv" |
| 3 |
ip="81.100.115.242" |
| 4 |
subject="comment 5" |
| 5 |
date="2014-09-17T11:35:07Z" |
| 6 |
content=""" |
| 7 |
`<div>` is not specifically preferred, any block-level element will do |
| 8 |
(e.g. `<p>`); but `<div>` is something you can wrap around any block, |
| 9 |
so it's good for a generic `\[[!template]]`. |
| 10 |
|
| 11 |
The difference between the use of a `dir` attribute and the use |
| 12 |
of a `class` attribute is that `dir` has a spec-defined semantic |
| 13 |
meaning in HTML4 and HTML5: search engines can look at |
| 14 |
`<div dir=\"rtl\">` and know that it is definitely right-to-left. |
| 15 |
|
| 16 |
`<div class=\"rtl\">` *might* mean right-to-left, but it could equally |
| 17 |
well mean (for instance) documentation about a run-time library, |
| 18 |
or something; classes have no built-in semantic meaning that generic |
| 19 |
user-agents like browsers and search engines can rely on. |
| 20 |
"""]] |