HTML

From Discworld MUD Wiki
Jump to: navigation, search

HTML is an acronym for Hyper-Text Markup Language. It is a markup language used to define the content and layout of webpages, and allows the use of hyperlinks. If you need to know more than this, then you are on the wrong website. If you would like to know more, however, try one of the websites listed below.

Newspaper editing within the Mud uses a limited subset of HTML elements:

Opening Tag Closing Tag Type Use
<b> </b> in-line bold text
<br /> none in-line line break
<center> </center> block centered text
<code> </code> block code
<dd> </dd> block definition within definition list, follows term to which it applies
<dl> </dl> block definition list, contains one or more dt + dd element pairs
<dt> </dt> block term within definition list, precedes relevant definition
<i> </i> in-line italic text
<li> </li> block list item within ordered or unordered list
<ol> </ol> block ordered list, contains one or more li items
<p> </p> block paragraph
<pre> </pre> block preformatted text
<ul> </ul> block unordered list, contains one or more li items

Every element should be closed within the containing element inside which it was opened. So, for example, a centered paragraph containing bold italic content could be marked up as:

<center> <p><b><i>Content line 1<br /> Content line 2</i></b></p> </center>

but must not be marked up as:

<center> <p><b><i>Content line 1<br /> Content line 2</b></i></p> </center>

as in the latter case, the italic element has not been closed within the bold element within which it was opened.

Block type elements may generally contain other block type elements or in-line type elements. In-line type elements should not contain block type elements, but may contain in-line type elements.

External Links