相关文章:
初学者接触HTML了解一些HTML标记(5)
这些所介绍的HTML标记不一定完全符合XHTML规范。各位在实际布局时应有所取舍,如:B标记,FONT标记,都是不符合XHTML规范的。
1、基本TAG元素
--------------------------------------------------------------------------
文件格式 (HTML文件的开头与结尾)
主题
(必须放在文头区段)
文头区段 (描述文件,如「主题」)
内文区段 (内容所在)
2、与结构相关的元素
--------------------------------------------------------------------------
标题
?> (有六种:H1,H2,H3,H4,H5,H6)
标题对齐
?>
区段
区段对齐
Short Quotes
and
are for some quoted files if the quoted part is not long. Then you can consider using this tag, which is the new syntax of HTML3.0.
Citation section
(usually indented when displayed) blockquote is used to indicate that the document in the area refers to a person or information in a document. Commonly quoted text is marked using
and
. Then most browsers will represent it in another way when reading these words. This representation simply reminds readers that this is a reference to someone else.
Emphasis
(usually shown in italics)
Strong emphasis
(usually shown in bold) This character that particularly emphasizes the tone is STRONG, which is the same as
EM They are all used to strengthen the tone. Most browsers use boldface to represent words marked with
and .
Quotation sentences
(usually shown in italics) Use
and to mark quotes from others
Program source code
If the reader is writing something about computers , then you can use the tag CODE
to mark some related words, and the method used is also to use
与
to mark related words.
Program output sample
without modification in HTML, if you want to print out the syntax of HTML
. Then readers may need to use some special techniques to print these characters. Outside these characters, readers can use the SAMP
symbol to mark them. The characteristic of this label is that the marked text will be represented by a fixed width.
Keyboard input
KBD This tag is usually used to inform readers which words can be typed. These words marked as
KBD are usually represented by fixed-width bold fonts. But some browsers only use fixed-width characters.
Program Variables
For some words that may change, HTML provides a
VAR tag to display it. This tag means variables or words that may be easily changed, etc. They can be marked using
and
. This alerts the user that these variables are subject to change.
Definition (Some browsers do not have this function) If the reader uses some definition words in HTML
. Then readers can consider using the DFN tag. If the reader uses Mosaic browser. Then the text marked by and
will be in italics. Other browsers may not.
Author address
Large letters
Small letters
Language
In a document, if you use two If there are more than one language, you can use and to mark it. This is also the new syntax of HTML3.0.
Author (AU)
and do not represent general AU files. This tag means if it is in the reader's article. If certain authors are mentioned, they can be marked with a tag. This is also a tag specially designed for authors by
HTML 3.0.
Personal
(PERSON) In many indexing programs, the program sometimes displays some information pages, and when displaying these information pages. If some individuals are mentioned by name. Then you can use
and to mark these names. This syntax is also new in HTML 3.0.
A word made up of several words (ACRONYM)
In English, some words are made up of several words. If readers encounter such words, readers may consider using and
tags to specifically bracket them. Although this is new syntax in HTML3.0. But for those of us who use Chinese, such a grammar is not very helpful.
The abbreviation (ABBREV) is the same as ACRONYM. There are many abbreviations in English. HTML 3.0
also has a new tag for these abbreviations. This new tag is called . Of course, it also has an end. The symbol is called .
Insertion (INS) In HTML files, if a certain word is inserted into an original document, readers can consider using and
to mark these words. This will make it easier for readers to know whether this document has been revised when checking it. Of course, this syntax is also new in HTML 3.0
.
Delete (DEL) This syntax is used to tell readers that certain words will be deleted, or some parts about deletion. This kind of new tag also appears in HTML3.0.
3. TAG elements related to display mode
---------------------------------- ---------------------------------------
Bold
Italics
Underline (Some browsers do not have this feature)
Strikethrough (Some browsers do not have this feature)
Strikethrough (some browsers do not have this feature)
Subscripts
Superscripts
打字机体 (空白字元与其他文元之宽度相同的字体)
依据预定格式 (保持文字间的相对位置)
预定格式的宽度 (以字元计)
对中 (文字与图形都会对中)
闪烁
字体大小 (由 1到 7)
改变字体大小
基本字体大小 (默认值为 3)
字体颜色
指定字形
多栏位
栏位内文与边缘间隔 (默认值为10象素)
栏位宽度
留白
留白型态
留白大小
留白尺寸
留白位置
4、超文本连结与图形元素
--------------------------------------------------------------------------
连结指定URL
连结到锚点 (锚点在另一份文件)
(锚点在同一文件)
连结到指定之FRAME TARGET="HTML Tutorial: Collection of Commonly Used HTML Tags (6)_HTML/Xhtml_Web Page Production|_blank|_self|_parent|_top">
设定「锚点」
正向关连 (有些浏览器无此功能)
反向关连 (有些浏览器无此功能)
显示图形
图形位置
图形位置
替代图形文字 (如果无法显示图形而显示的文字)
可点选图形 (需要与.map文件配合)
客户端端可点选图形
点选图名称
指定可点选区域
图形尺寸 (以象素为单位)描述图形显示的宽度和高度。
边线大小 (以象素为单位) 图形外的框线宽度。
四周留白 (以象素为单位)
vspace,hspace描述图形和文字的垂直和水平间隔。
低解析度图形 用户端定时更新 HTTP-EQUIV="Refresh" CONTENT="?; URL=URL">
Plug-in 物件