User talk:SSastry (WMF)
Add topicWelcome
[edit]Welcome
Hello, SSastry (WMF), and welcome to Wikisource! Thank you for joining the project. I hope you like the place and decide to stay. Here are a few good links for newcomers:
You may be interested in participating in
Add the code {{active projects}}, {{PotM}} or {{CotW}} to your page for current wikisource projects.
You can put a brief description of your interests on your user page and contributions to another Wikimedia project, such as Wikipedia and Commons.
I hope you enjoy contributing to Wikisource, the library that is free for everyone to use! In discussions, please "sign" your comments using four tildes (~~~~); this will automatically produce your IP address (or username if you're logged in) and the date. If you need help, ask me on my talk page, or ask your question here (click edit) and place {{helpme}}
before your question.
Again, welcome! Beeswaxcandle (talk) 19:45, 31 December 2014 (UTC)
html5, <tt>, <kbd> and <code>
[edit]Recently you discussed some of the mediawiki changes due to html5. When I glanced through some of the reading about compatibility I read that we should be using <kbd> rather than <tt>. When I queried one of our more savvy css users he wondered whether we should just use <code> instead. Are you able to give some guidance on what is the preference, and the safest approach to use of these tags for our community? Thanks. — billinghurst sDrewth 09:56, 18 August 2016 (UTC)
- The canonical reference is the HTML5 spec. It says that
<kbd>
is to be used as:
The
kbd
element represents user input (typically keyboard input, although it may also be used to represent other input, such as voice commands).When the
kbd
element is nested inside asamp
element, it represents the input as it was echoed by the system.When the
kbd
element contains asamp
element, it represents input based on system output, for example invoking a menu item.When the
kbd
element is nested inside anotherkbd
element, it represents an actual key or other single unit of input as appropriate for the input mechanism.
- On the other hand, the
<tt>
element is marked "obsolete" with the note:
Use appropriate elements or CSS instead.
Where the
tt
element would have been used for marking up keyboard input, consider thekbd
element; for variables, consider thevar
element; for computer code, consider thecode
element; and for computer output, consider thesamp
element.
- Finally, the
<code>
element is described as:
The
code
element represents a fragment of computer code. This could be an XML element name, a file name, a computer program, or any other string that a computer would recognize.
- I hope this helps! Cscott (talk) 19:31, 18 August 2016 (UTC)
- I seem to have lost the purpose of the question in my detail. :-( I had meant to target the question more about did their WMF plan to move towards intervening in their use as was recently done with <span /> etc. — billinghurst sDrewth 20:31, 18 August 2016 (UTC)
- Ah, I see. No, we don't have a plan to force you to to change <tt> to <kbd>/<code>/... etc. SSastry (WMF) (talk) 21:35, 18 August 2016 (UTC)