[html5] What replaces <tt> in HTML5?
Ian Hickson
ian at hixie.ch
Tue Apr 28 15:42:15 PDT 2009
On Tue, 28 Apr 2009, Jim Garrison wrote:
> > On Tue, 28 Apr 2009, Jim Garrison wrote:
> >> I am trying to figure out the best way to replace <tt> as I migrate to
> >> HTML5.
> >
> > Are you using <tt> to mark up computer code, variables, sample computer
> > output, user input, for emphasis, to give a span of text in an alternate
> > voice or mood, a span of text to be stylistically offset from the normal
> > prose without conveying any extra importance, or something else?
>
> I am trying to mark up XML code. Many of the files I want to display
> have few (if any) newlines, so I want to be able to display with
> line-wrapping enabled.
>
> From what you've said, I now believe that <code> is my best bet.
Yeah, <code> would be my recommendation.
Cheers,
--
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the Help
mailing list