Re: Formatting of html tags

hi all,

Personally, what I do is one of three things:


1. Inline mention

When I have to use a tag name in full, I use <tt>&lt;tag-name&gt;</tt>.
Not pretty, but not too long to write.


2. In page code sample

I use the <syntaxHighlight> extension which takes care of hilighting [0]

<syntaxHighlight lang="html5">
  <!DOCTYPE html>
  ...
<syntaxHighlight>

The syntaxHighlight escapes for us the tags, supports html and all that
jazz.

And, it works pretty well [1]


3. Create a code sample in Dabblet

see code.webplatform.org


  [0]:
http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi#Supported_languages
  [1]:
http://docs.webplatform.org/w/index.php?title=Beginners/html&action=formedit

-- 
Regards,

Renoir Boulanger  |  Developer operations engineer
W3C  |  Web Platform Project

http://w3.org/people/#renoirbhttps://renoirboulanger.com/  ✪  @renoirb
~

Received on Friday, 18 July 2014 15:51:51 UTC