home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="iso-8859-1"?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <title>Inline elements</title>
- <meta name="GENERATOR" content="amaya 9.0.1, see http://www.w3.org/Amaya/"
- />
- <style type="text/css">
- </style>
- <link href="../style.css" rel="stylesheet" type="text/css" />
- </head>
-
- <body xml:lang="en" lang="en">
-
- <div>
- <img border="0" alt="Amaya" src="../../../resources/icons/22x22/logo.png"
- />
-
- <p class="nav"><a href="address.html"><img alt="previous" border="0"
- src="../../../resources/icons/misc/left.png" /></a> <a
- href="../HTML.html"><img alt="top" border="0"
- src="../../../resources/icons/misc/up.png" /></a> <a
- href="40styling.html"><img alt="next" border="0"
- src="../../../resources/icons/misc/right.png" /></a></p>
- </div>
-
- <div id="page_body">
- <h1>Inline markup</h1>
-
- <p>Text within a paragraph, heading, or other block element can be marked up
- in a variety of ways, for example to emphasise it, or to highlight text that
- should be entered by a user into a computer. Most of these inline elements
- are described in this page, although links, which are inline elements, are
- described separately.</p>
-
- <div>
- <h2><a name="Inline21"></a><a name="Definition">Definitions</a></h2>
-
- <p>The <a
- href="http://www.w3.org/TR/REC-html40/struct/text.html#edef-DFN"><code>dfn</code></a>
- element is used to mark an <dfn>inline definition</dfn> (a word which is
- given as a defining instance)</p>
-
- <p><a href="../StyleSheets.html">Style sheets</a> can be used to change the
- presentation of inline definitions.</p>
- </div>
-
- <div>
- <h2><a name="Inline1">Inline Quotations</a></h2>
-
- <p>Quotations which are inline can be marked using the information type
- "quotation" - the HTML element <a
- href="http://www.w3.org/TR/REC-html40/struct/text.html#edef-Q"><code>q</code></a>.
- This element is selected from the <strong>Character elements</strong> submenu
- of the <strong>XHTML</strong> menu, or with the keyboard shortcut <var>Ctrl i
- Ctrl q</var>. It is possible to give a URI source for the quotation, using
- the <code>cite</code> attribute.</p>
-
- <p><a href="../StyleSheets.html">Style sheets</a> can be used to change the
- presentation of inline quotations. The HTML specification states that inline
- quotation should be rendered with the appropriate punctuation marks for the
- language being represented.</p>
- </div>
-
- <div>
- <h2><a name="Sample">Sample input, output and computer code</a></h2>
-
- <p>Elements are provided to mark computer code, such as
- <code>statement:do-something</code>, with separate markup for
- <var>variables</var>, as well as <kbd>user input</kbd> and <samp>program
- output</samp> - the elements <a
- href="http://www.w3.org/TR/REC-html40/struct/text.html#edef-CODE"><code>code</code></a>,
- <a
- href="http://www.w3.org/TR/REC-html40/struct/text.html#edef-VAR"><code>var</code></a>,
- <a
- href="http://www.w3.org/TR/REC-html40/struct/text.html#edef-KBD"><code>kbd</code></a>
- and <a
- href="http://www.w3.org/TR/REC-html40/struct/text.html#edef-SAMP"><code>samp</code></a>.
- These elements are found in the <strong>Information types</strong> submenu of
- the <strong>XHTML</strong> menu, and there are keyboard shortcuts for all of
- them - <kbd>Ctrl i</kbd> followed by <kbd>Ctrl t</kbd> for code, <kbd>Ctrl
- v</kbd> for variables, <kbd>Ctrl k</kbd> for user input and <kbd>Ctrl m</kbd>
- for sample output.</p>
-
- <p><a href="../StyleSheets.html">Style sheets</a> can be used to change the
- presentation of these elements.</p>
- </div>
-
- <div>
- <h2><a name="Inline">Acronyms and abbreviations</a></h2>
-
- <p>Acronyms and abbreviations should be marked as such, using the <a
- href="http://www.w3.org/TR/REC-html40/struct/text.html#edef-ABBR"><code>abbr</code></a>
- and <a
- href="http://www.w3.org/TR/REC-html40/struct/text.html#edef-ACRONYM"><code>acronym</code></a>
- elements available in the <strong>Information types</strong> submenu of the
- <strong>XHTML</strong> menu. There is also the shortcut <kbd>Ctrl i Ctrl
- y</kbd> for acronym. This allows recognition for different types of systems.
- The <code>title</code> attribute can also be used to specify the expansion of
- the acronym. Select the text to be marked, for example <acronym
- title="World Wide Web Consortium">W3C</acronym>, select the
- <strong>XHTML</strong> menu, the information types submenu, and the option
- acronym. Then select the entire element (<kbd>F2 key</kbd> on Windows), open
- the Attributes menu, select title, enter <kbd>World Wide Web
- Consortium</kbd>, and apply it.</p>
-
- <p><a href="../StyleSheets.html">Style sheets</a> can be used to change the
- presentation of acronyms or abbreviations.</p>
- </div>
-
- <div>
- <h2><a name="Inline2">Insertions and deletions</a></h2>
-
- <p>The <a href="http://www.w3.org/TR/REC-html40/struct/text.html#edef-del"
- name="DEL"><code>del</code></a> and <a
- href="http://www.w3.org/TR/REC-html40/struct/text.html#edef-ins"><code>ins</code></a>
- elements are available in the <strong>Information types</strong> submenu of
- the <strong>XHTML</strong> menu to mark text <del>which ought</del> to be
- deleted or which has <ins>already</ins> been inserted.</p>
-
- <p><a href="../StyleSheets.html">Style sheets</a> can be used to change the
- presentation of insertions and deletions.</p>
- </div>
-
- <div>
- <h2><a name="Emphasis">Emphasis elements</a></h2>
-
- <p>HTML has elements to define two levels of emphasis:</p>
- <ol>
- <li><em>Ordinary emphasis</em>, using the <a
- href="http://www.w3.org/TR/REC-html40/struct/text.html#edef-EM">em</a>
- element and</li>
- <li><strong>Strong emphasis</strong>, using the <code><a
- href="http://www.w3.org/TR/REC-html40/struct/text.html#edef-STRONG">strong</a></code>
- element.</li>
- </ol>
-
- <p>Both types of emphasis can be applied from the toolbar using the <img
- src="../../../resources/icons/22x22/XHTML_I.png" alt="Emphasis" /> and <img
- src="../../../resources/icons/22x22/XHTML_B.png" alt="Strong" /> buttons, or
- from the <strong>Information types</strong> submenu of the
- <strong>XHTML</strong> menu. There are also standard keyboard shortcuts -
- <kbd>Ctrl i Ctrl e</kbd> for emphasis (because the default rendering is often
- italicised text) and <kbd>Ctrl i Ctrl s</kbd> for strong emphasis (becuase
- the default rendering is often bold text). If there is a current selection,
- the emphaisis is applied to that, otherwise the appropriate element is
- created, as a child of the current element.</p>
-
- <p>The emphasis elements are toggled in Amaya - to remove an emphasis select
- the element and reapply the appropriate emphasis. For example place the
- cursor somewhere in a <code>STRONG</code> element, use the <kbd>F2</kbd> key
- to select the element, and then use the keyboard shortcut, menu item, or the
- <img src="../../../resources/icons/22x22/XHTML_B.png" alt="Strong" /> button
- - the <code>STRONG</code> element will be removed.</p>
-
- <p><a href="../StyleSheets.html">Style sheets</a> can be used to change the
- presentation of both types of emphasis.</p>
-
- <h2 id="L260">SPAN element</h2>
-
- <p>The <a
- href="http://www.w3.org/TR/REC-html40/struct/global.html#edef-SPAN">span</a>
- element in conjunction with a <a
- href="http://www.w3.org/TR/REC-html40/struct/global.html#adef-id"
- name="id">id</a> (<a href="../StyleSheets.html.fr#Creating"
- name="style">style</a> or <a
- href="http://www.w3.org/TR/REC-html40/struct/global.html#adef-class"
- name="class">class</a>) attribute offers a generic mechanism for adding
- structure to a document. This element is generated by Amaya when the user
- applies an attribute to a piece of text. It's removed when the attribute is
- deleted.</p>
- </div>
- </div>
- </body>
- </html>
-