HTML 4.0 New Features Example

Source: Internet
Author: User
Tags button type contains html tags insert new features opening and closing tags reset variable
Example as early as December 1997, the consortium published the final technology specification for HTML 4.0, which added and enhanced many features. But many web-page authors are not very familiar with these features, it is possible that the web-making tools are becoming more and more advanced, pay attention to what they see, thus sacrificing the skills and flexibility of the manual production of Web pages. In fact, we found that the overall framework of using tools to build a Web page is good, but it is still very inflexible in many details. So mastering the knowledge of HTML tags is good for optimizing Web pages. Let's talk a little bit about some of the property features added to HTML 4.0.

Acronym (abbreviation): denotes a short abbreviation. This is a block element.
Sample:<acronym>msn</acronym>

Addres (address): Specify such information as address, signature, and author, which is actually shown in italics. Block element.
Example:<addres> address will be shown in italics </ADDRES>

Button: Submits an HTML button that displays the text between the opening and closing tags as a label on the button. The type attribute of this label has three kinds: button,reset,submit. They have the same functionality as the properties of the same name in the input label, but using button labels is more consistent with the buttons as they are, which is what HTML 4.0 adds to the label. There is also a accesskey attribute in the button, as the name suggests, which is to provide an accelerator for the tag, to hold down Alt+accesskey's property value (the key value) to accelerate, and to include the accesskey attribute in many tags.
Example:
<button type=button> I'm a button </BUTTON>
<button type=sumbmit> I filled out </BUTTON>
<button type=reset> Reset </BUTTON>

CAPTION (title): Specifies a caption for a table. Block element.
Example:<table><caption> This section of the title is displayed on the table founder Center </CAPTION><>tr><td>...</td></tr> </table>

DEL (delete): Indicates that the text has been deleted from a document and is actually displayed as a penetration line. Block element.
Example:<del> through-line display content </DEL>

DIR: Represents a list of directories that consist of an item, each of which starts with an LI tag and contains no more than 20 characters. Block element.
Example:<dir><li> Art <LI> Sports <LI> literature </DIR>

fieldset (field group): Draws a box around the text or around other elements it contains. This element is particularly useful for grouping elements in a form, or for distinguishing text that is marked in a document. Block element. The functionality of segmented groups has become commonplace in software, and is now available on the web.
Sample:<fieldset><legend> Input Information </legend>abc...</fieldset>

INS (Insert): represents text that is inserted into a document and is actually displayed as an underscore. Block element.
Example:<ins> underline display content </INS>

KBD: Submits text in fixed-width characters. Block element.
Example:<kbd> fixed-width character display content </KBD>

LEGEND (Legend): Inserts a caption into the box drawn with the Filedset element. This element must be the first element in the Filedset. Block element.
Example: See FieldSet label.

Menu: A block that consists of a single item that is set up behind. Block element.
Example:
<MENU>
Art
Sports
Literary
</MENU>

Q (citation): references a paragraph of text in a literal. Block element.
Example:<p> He said:<q> "Hey! "</Q>

S (full length): Submit text in full-length type. Block element.
Example:<s> through-line display content </S>

SAMP (sample): Specify a code sample. Block element.
Sample:<s> content with small fixed-width fonts </S>

VAR (variable): a placeholder (placeholder) text that represents a variable, and a small, fixed-width font display. Block element.
Sample:<var> content with small fixed-width fonts </VAR>

XMP: Represents the fixed-width font text used for instance text. Block element. Note: This tag is useful if we want to display a piece of text as it is, we usually think of the pre tag, but the pre cannot contain HTML elements, and XMP does not have this restriction and is displayed exactly as it was in the original text. If you want to insert text from a Web page that resembles a source program, you can use that label.
Example:
<XMP>
It doesn't matter if you insert a <pre> label.
Inserting the program is no problem:
function {
....
}
In fact, any content will be displayed as it is.
</XMP>

The above is a brief introduction to some of the new tags in HTML 4.0 and their functions, a more detailed description of these tags can refer to the HTML 4.0 manual.
I hope everyone's Web page is making more and more good.



Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.