Skip to main content
gamedev.net
🔒 Locked

[web] HTML help

Started by namingway Jun 6, 2006 at 4:02 AM 1 replies 1k views
Original Post
namingway
namingway
I don't quite understand what the following do; Computer code Keyboard input Teletype text Sample text Computer variable I'm guessing there self explanitory but I still don't get how they can be used.
igni ferroque
igni ferroque
They indicate that the text enclosed in them represents computer code, keyboard input, teletype text, sample text, or a variable (respectively). Many computer books will use different typographical styles for those types of text, and they'll tell you about them towards the beginning. They exist in HTML to preserve semantics for screenreaders and other software (that wouldn't know that something enclosed in is a code example), and so that those types of text have consistent styling (which you can specify with CSS).
Free Mac Mini (I know, I'm a tool)
khsoh
khsoh
Adding to Igni's response, see http://www.w3.org/TR/html401/struct/text.html#h-9.2.1 for details.

For example, you can have a CSS style such as ...

kbd { background-color: silver; border-style: outset; }

... so that each element is displayed looking like a keyboard button.
Kam-Hung Sohhttp://softwaresalariman.blogspot.com

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.