![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
If the only reason not use <pre> is it "has no semantic meaning" you could give it meaning, like: pre><code>...</code></pre |
#12
| |||
| |||
|
|
By HTML specifications, tab stops should appear in a certain way _and_ authors should not rely on this. Use the safe way: spaces. Can you explain this further? |
|
I do not want to use spaces there since that’s not what I use in the original file as well. |
|
I could wrap the whole thing in a table, right, but that would make it more work than it’s worth. |
#13
| |||
| |||
|
|
Scripsit Stanimir Stamenkov: If the only reason not use <pre> is it "has no semantic meaning" you could give it meaning, like: pre><code>...</code></pre That does not give any meaning to <pre>. Using semantic markup inside non-semantic markup does not make the outer markup any more markup. Au contraire, it empasizes its semantic emptyness. Yet, <pre> is the only way in HTML to specify that whitespace is significant, so if your data has "a b" that shall be intepreted as different from "a b" in meaning, then <pre> is the correct markup. |
#14
| |||
| |||
|
|
So combining "the <pre> meaning is a block where whitespace matters" further marking the content as <code> seems good way to go, or I'm missing something? |
#15
| |||
| |||
|
|
Thu, 19 Jun 2008 20:00:52 +0300, /Jukka K. Korpela/: Scripsit Stanimir Stamenkov: If the only reason not use <pre> is it "has no semantic meaning" you could give it meaning, like: pre><code>...</code></pre That does not give any meaning to <pre>. Using semantic markup inside non-semantic markup does not make the outer markup any more markup. Au contraire, it empasizes its semantic emptyness. Yet, <pre> is the only way in HTML to specify that whitespace is significant, so if your data has "a b" that shall be intepreted as different from "a b" in meaning, then <pre> is the correct markup. So combining "the <pre> meaning is a block where whitespace matters" further marking the content as <code> seems good way to go, or I'm missing something? |
![]() |
| Thread Tools | |
| Display Modes | |
| |