The format of the content published in this section is plain text, but standard HTML tags are also accepted and interpreted. Notice though that this does not mean the content is HTML - it is still plain text, since line breaks will still produce a line break (unlike in HTML), and invalid tags will be shown as plain text too.
For example:
|
Will be formatted and shown as:
C++ namesIn C++, two names are the same if:
|
Attached files can be linked locally in the document. The same goes for images.
For example, if the files tutorial.pdf and tutorial.gif are attached to the document, the following code:
|
Shows the image and link:
Click on this text to download the tutorial |
External links are allowed, but not the inclusion of external images (no hotlinking, please).
Documents can contain formatted C++ source code blocks by enclosing them between the special non-standard tags <SOURCECODE>
and </SOURCECODE>
. Any code between these tags is interpreted as C++ code: white-spaces are respected, and HTML interpretation is
suspended inside the block. Special formatting is applied to the code highlighting some C++ features.
To show the results of a program, another pair of special non-standard tag exists: <OUTPUT>
and </OUTPUT>
.
For example:
|
This is formatted as:
This is the program that most programmers write for the first time:
See how we declare main as int main () in line number 4.When we compile and run this program, the screen will show:
|
Pages must be designed for a white background.
As a general rule, the title and the subtitle (if any) of a document are automatically inserted by the system as <H1>
and <H2>
.
Therefore, it is recommended to use only <H3>
(or deeper) for your main subsection titles.
A document will look sufficiently formatted by using just a few tags: <H3>
and </H3>
for the heading
of your sections, <EM>
and </EM>
to highlight specific words, and <SOURCECODE>
+</SOURCECODE>
to enclose your code snippets.
That is enough for most needs. But you are free to format the document as you find convenient to properly structure the ideas you want to express.
We encourage you to focus your HTML code on structure and semantics and not so much on specifics about formatting.
Thus, preferring tags such as <H3>
, <STRONG>
, <CODE>
or <CITE>
, over
purely formatting tags like <I>
, <TT>
, <B>
, when some kind of semantics for the text can be identified.
Most valid Strict HTML4 tags are allowed, except those invalid inside the body element (BASE
, BODY
, HEAD
, HTML
, LINK
, META
and STYLE
)
or those introducing conditional content (NOSCRIPT
and SCRIPT
) and IFRAME
.
Only non-deprecated tags are allowed and only non-deprecated attributes can be used in them (attributes to be dropped in HTML5 are also considered deprecated). Additionally, no attribute can use external URL values, and the ID attribute is not allowed.
Invalid tags or tags with invalid attributes will be shown in red when previewing the document. For more details on the specific error, hover the mouse over the invalid HTML tag.
Please edit the document and remove or correct any invalid HTML tags.
This is a list of all accepted tags and their corresponding attributes (All tags also accept the standard attributes CLASS, DIR, ID, LANG and TITLE):
Element tag | Description | Valid attributes | Notes |
---|---|---|---|
A | Anchor | HREF, HREFLANG, REL | Attribute TARGET deprecated |
ABBR | Abbreviated form | ||
ADDRESS | Contact information of author | ||
AREA | Client-side image map area | ALT, COORDS, HREF, SHAPE | Use inside <MAP> Attribute TARGET deprecated |
B | Text style: Bold | ||
BDO | Bidirectional Override | DIR | Attribute DIR required |
BLOCKQUOTE | Quote from another source | CITE | Use as general left-margin formatting tag is deprecated. |
BR | Line break | Automatically generated. Use only for extra line breaks. | |
BUTTON | Form button | DISABLED, NAME, TYPE, VALUE | |
CAPTION | Table caption | ||
CITE | Citation | ||
CODE | Code | ||
COL | Table column | SPAN | Use inside <TABLE> |
COLGROUP | Table column group | SPAN | Use inside <TABLE> |
DD | Definition description | Use inside <DL> | |
DEL | Deleted part | CITE, DATETIME | |
DFN | Definition | ||
DIV | Division | ||
DL | Definition list | ||
DT | Definition title | Use inside <DL> | |
EM | Emphasize | ||
FIELDSET | Form fieldset | ||
FORM | Form | ACTION, ACCEPT, ACCEPT-CHARSET, ENCTYPE, METHOD | |
H1, H2, H3, H4, H5, H6 | Section header | ||
HR | Horizontal line | ||
I | Text style: Italics | ||
IMG | Image | ALT, HEIGHT, SRC, USEMAP, WIDTH | Attributes ALT and SRC required |
INPUT | Form Input field | ACCEPT, ALT, CHECKED, DISABLED, MAXLENGTH, NAME, READONLY, SIZE, SRC, TYPE, VALUE | |
INS | Inserted part | CITE, DATETIME | |
KBD | Keyboard text | ||
LABEL | Label for form element | FOR | |
LEGEND | Legend for form fieldset | ||
LI | List item | Use inside <OL> or <UL> | |
MAP | Image map | NAME | |
OBJECT | Embed object | DATA, HEIGHT, NAME, TYPE, USEMAP, WIDTH | |
OL | Ordered list | Use <LI> for the list items | |
OPTGROUP | Group form options | DISABLED, LABEL | Attribute LABEL required |
OPTION | Form options | DISABLED, LABEL, SELECTED, VALUE | Use inside <SELECT> |
P | Paragraph | ||
PARAM | Object parameter | NAME, TYPE, VALUE | Attributes NAME and TYPE requiredUse inside <OBJECT> |
PRE | Preformatted text | ||
Q | Short quotation | CITE | |
SAMP | Sample computer output | ||
SELECT | Form select field | DISABLED, MULTIPLE, NAME, SIZE | Use <OPTION> for the options |
SMALL | Smaller text | ||
SPAN | Text span | ||
STRONG | Strong text | ||
SUB | Subscript text | ||
SUP | Superscript text | ||
TABLE | Table | SUMMARY | |
TBODY | Table body | Use inside <TABLE> | |
TD | Table cell | COLSPAN, HEADERS, ROWSPAN | Use inside <TR> |
TEXTAREA | Multiline text form input | COLS, DISABLED, NAME, READONLY, ROWS | |
TFOOT | Table footer | Use inside <TABLE> | |
TH | Table header cell | COLSPAN, ROWSPAN, SCOPE | Use inside <TR> |
THEAD | Table header | Use inside <TABLE> | |
TR | Table row | Use inside <TABLE> | |
UL | Unordered list | Use <LI> for the list items | |
VAR | Variable |
IMPORTANT: Documents do not go live into their respective section in the website until approved by a site editor.