Other HTML Tags
As mentioned before, there are logical styles that describe what the text should be and physical styles
which actually provide physical formatting. It is recommended to use the logical tags and use style
sheets to style the text in those tags.Logical Tags Physical Tags
Tag Description
Defines an abbreviation
Defines an acronym
Defines an address element
Defines a citation
Defines computer code text
Defines a long quotation
Defines text
Defines a definition term
Defines emphasized text
Defines inserted text
Defines keyboard text
Defines preformatted text
Defines a short quotation
Defines sample computer code
Defines strong text
Defines a variable
Tag Description
Defines bold text
Defines big text
Defines italic text
Defines small text
Defines superscripted text
Defines subscripted text
Defines teletype text
Deprecated. Use styles instead
Character tags like and produce the same physical display as and but are more
uniformly supported across different browsers.
Some Examples:
The following paragraph uses the tag. In the previous sentence, the blockquote tag is
enclosed in the Sample tag.
We the people of the United States, in order to form a more perfect Union, establish Justice,
insure domestic Tranquility, provide for the common defense, promote the general Welfare, and
secure the Blessings of Liberty to ourselves and our Posterity, do ordain and establish this
Constitution for the United States of America.
Although most browsers render blockquoted text by indenting it, that's not specifically what it's
designed to do. It's conceivable that some future browser may render blockquoted text in some other
way. However, for the time being, it is perfectly safe to indent blocks of text with the .
This Code Would Display
WWW WWW
When you hold your mouse pointer over the WWW, text in the title attribute will appear in.
HTML Character Entities
Some characters have a special meaning in HTML, like the less than sign ( greater than > >
& ampersand & &
" quotation mark " "
' apostrophe ' (does not work in IE) '
A character entity has three parts: an ampersand (&), an entity name or an entity number, and finally
a semicolon (;). The & means we are beginning a special character, the ; means ending a special
character and the letters in between are sort of an abbreviation for what it's for. To display a less than
sign in an HTML document we must write: < or < The advantage of using a name instead of a
number is that a name is easier to remember. The disadvantage is that not all browsers support the
newest entity names, while the support for entity numbers is very good in almost all browsers.
Note: Entities are case sensitive.
Non-breaking Space
The most common character entity in HTML is the non-breaking space . Normally HTML will
truncate spaces in your text. If you add 10 spaces in your text, HTML will remove 9 of them. To add
spaces to your text, use the character entity.
แท็ก HTML อื่น ๆดังกล่าวก่อน มีลักษณะทางกายภาพและลักษณะทางตรรกะที่อธิบายว่า ข้อความอะไรที่ควรที่จริงมีรูปแบบทางกายภาพ แนะนำการใช้แท็กตรรกะ และใช้ลักษณะแผ่นกับแบบข้อความในแท็กเหล่านั้น Tags:ตรรกะจริงแท็กป้ายคำอธิบาย กำหนดตัวย่อ กำหนดคำย่อ Defines an address element
Defines a citation
Defines computer code text
Defines a long quotation
Defines text
Defines a definition term
Defines emphasized text
Defines inserted text
Defines keyboard text
Defines preformatted text
Defines a short quotation
Defines sample computer code
Defines strong text
Defines a variable
Tag Description
Defines bold text
Defines big text
Defines italic text
Defines small text
Defines superscripted text
Defines subscripted text
Defines teletype text
Deprecated. Use styles instead
Character tags like and produce the same physical display as and but are more
uniformly supported across different browsers.
Some Examples:
The following paragraph uses the tag. In the previous sentence, the blockquote tag is
enclosed in the Sample tag.
We the people of the United States, in order to form a more perfect Union, establish Justice,
insure domestic Tranquility, provide for the common defense, promote the general Welfare, and
secure the Blessings of Liberty to ourselves and our Posterity, do ordain and establish this
Constitution for the United States of America.
Although most browsers render blockquoted text by indenting it, that's not specifically what it's
designed to do. It's conceivable that some future browser may render blockquoted text in some other
way. However, for the time being, it is perfectly safe to indent blocks of text with the .
This Code Would Display
WWW WWW
When you hold your mouse pointer over the WWW, text in the title attribute will appear in.
HTML Character Entities
Some characters have a special meaning in HTML, like the less than sign (<) that defines the start of
an HTML tag. If we want the browser to actually display these characters we must insert character
entities in place of the actual characters themselves.
The Most Common Character Entities:
Result Description Entity Name Entity Number
non-breaking space
< less than < <
> greater than > >
& ampersand & &
" quotation mark " "
' apostrophe ' (does not work in IE) '
A character entity has three parts: an ampersand (&), an entity name or an entity number, and finally
a semicolon (;). The & means we are beginning a special character, the ; means ending a special
character and the letters in between are sort of an abbreviation for what it's for. To display a less than
sign in an HTML document we must write: < or < The advantage of using a name instead of a
number is that a name is easier to remember. The disadvantage is that not all browsers support the
newest entity names, while the support for entity numbers is very good in almost all browsers.
Note: Entities are case sensitive.
Non-breaking Space
The most common character entity in HTML is the non-breaking space . Normally HTML will
truncate spaces in your text. If you add 10 spaces in your text, HTML will remove 9 of them. To add
spaces to your text, use the character entity.
การแปล กรุณารอสักครู่..
