- slide 1 of 1
HTML Tag Codes N - S
HTML tags code utilizes the less-than (<) and greater-than (>) keys found on your keyboard. In order for the HTML code to be executed, each element must contain both a corresponding beginning and ending tag. An ending tag is differentiated from a beginning tag by using the forward slash key (/) prior to the element name, as seen in the following example:
<ELEMENT> content here </ELEMENT>
For the purpose of displaying these articles, the less-than and greater-than symbols have been replaced by an asterisk (*) in the code examples provided. The specific tag element is shown in all-caps, but HTML tag codes do not register letter case, so either may be used with programming.
NON-BREAKING SPACE: In text displayed by HTML, the code only registers one space between characters or letters. It does not read typical extra spaces produced by the keyboard spacebar. The following code can be inserted in the coded document to add an additional non-breaking space. It does not need the standard less-than or greater-than structure.
NUMBERED LIST: The numbered (or ordered) list tag is similar to a bulleted list except bullets are replaced by numbers. It contains two parts: the ordered list element code and the list item code. The list item code appears between the ordered list beginning and ending tags and should precede each item in the list. It does not require an ending tag. The following code example displays an ordered list with item two items.
Code: *OL* *LI* list content here *LI* list content here */OL*
PARAGRAPH: The paragraph tag is used to separate elements by the equivalent of a double space return.
Code: *P* content here */P*
REGISTERED TRADEMARK SYMBOL: The circle R registration symbol requires a special text code for display in HTML. It can be inserted anywhere within the body tag, and does not require the less-than or greater-than configuration.
STRIKE: The strike tag is used to display text with a line running through the center.
Code: *S* content here */S*
STRONG: The strong tag is used to emphasize text and usually displays as a bold version of the selected font. It is often used interchangeably with the bold *B* tag.
Code: *STRONG* content here */STRONG*
SUBSCRIPT: The subscript tag is used to display text proportionally smaller and at the bottom of the baseline as subscripts.
Code: *SUB* content here */SUB*
SUPERSCRIPT: The superscript tag is used to display text proportionally smaller and at the top of the baseline as superscripts.
Code: *SUP* content here */SUP*
A Glossary of HTML Tags: N-S
The series offers an on-going glossary of alphabetized HTML tags. Beginning with an overview of HTML and its correct syntax, it serves as a resource for learning how to code various HTML functions in your web pages.