HTML, as a language for displaying documents, contains tags that use their functionality rather than the effects to name them, which is the logical font tag. Logical font marks are generally applicable to English fonts. In addition, the general homepage is rarely used when making these tags, because their display results, generally can use the <FONT>, <B>, <I> and other tags to achieve. However, a little understanding can help us to understand other people's HTML code.
Big and SMALL
Big and small change the size of the font.
Example:
Normal <BIG> big characters </BIG> <SMALL> fine print </SMALL>
Show Results:
Normal print characters
CITE
Cite's full name is citation, quote, citation. The text used to represent a reference, or it can be used to represent a title. The content of cite is usually shown in italics.
Example:
<cite>html Novice on the road </CITE> is a book about the homepage made.
Show Results:
HTML Novice on the road is a book about the homepage made.
CODE
Code is used to display computer codes specifically. However, it is generally a relatively short code. A lot of code, you can use <PRE> to keep the original format. The font for text in code is unchanged, and is an equal spacing font.
Example:
<code>response.write "Hello, world!" </CODE>
Show Results:
Response.Write "Hello, world!"
DFN
Dfn-definition denotes the definition of something. expressed in italics.
Example:
<DFN> Tiger is a cat animal. </DFN>
Show Results:
The tiger is an animal of cat.
Em
Em-emphasis, focus. The text in EM is the part that you want to emphasize. EM is also shown in italics.
Example:
<em> Chapter Three </em> is the focus of this book.
Show Results:
The third chapter is the focus of this book.
KBD
Kbd-keyboard, keyboard. Used to display the part that represents the user input, using a typewriter font of equal spacing.
Example:
Enter <kbd>your name</kbd>
Show Results:
Enter your name
Samp
Samp-sample, but it is not used to show examples, but to display some language, literary text. The text in the Samp uses the equal spacing font.
Example:
To learn English pronunciation, you must first learn <SAMP> phonetic symbols </SAMP>.
Show Results:
To learn English pronunciation, you must learn the phonetic transcription first.
Strong
Strong is also used to indicate that the middle text is shown in bold.
Example:
<STRONG> one can not be less </STRONG>
Show Results:
One is not less.
Sub and SUP
Sub-subscript, subscript, text narrowing, bottom and normal text alignment. Sup-superscript, superscript, text narrowing, upper end and normal text alignment.
Example:
Text <SUP> superscript </SUP> <SUB> subscript </SUB>
Show Results:
Superscript subscript on text
Var
Var-variable, used to represent variables mentioned in a computer program. Use italic representation.
Example:
<VAR>strSQL</VAR> is a string variable.
Show Results:
strSQL is a string variable.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.