HTML5 a brief overview of new properties and properties that are repealed

Source: Internet
Author: User

In HTML5, many attributes are added and abolished at the same time as new additions and abolishment of many elements. Where is the www.0412pfk.net of Anshan dermatological department?

New properties

1. Form-related properties

Specifies the Autofocus property for input (Type=text), select, TextArea, and button. It gives the element the focus automatically when the screen is opened, in the way that the property is specified. Specifies the placeholder property for input (Type=text), textarea, which prompts the user for input, prompting the user to enter the content. Specifies the form property for input, output, select, TextArea, button, and fieldset. It declares which form it belongs to, and then places it anywhere on the page without losing the form. Specifies the required property for input (Type=text) and textarea. This property indicates that the user commits a check and checks that the element must have input inside it. Add several new attributes to the input tag: autocomplete, Min, max, multiple, pattern, and step. The list property is used in conjunction with the DataList element, and the DataList element is used in conjunction with the AutoComplete property. The multiple property allows uploading of multiple files at once while uploading; The Pattern property is used to validate the mode of the input field, which is actually a regular expression. The Step property specifies the legal number interval for the input field (if step= "3", the legal number should be-3, 0, 3, 6, and so on), the Step property can be used with the Max and Min properties to create a range of legal values. Adds FormAction, Formenctype, FormMethod, formnovalidate, and Formtarget attributes to the input, button element. The user overloads the action, Enctype, method, Novalidate, and target properties of the form element. To add the disabled property to the FIELDSET element, you can set its child elements to disabled state. To add the Novalidate property to input, button, and form, you can cancel the check that is made at the time of submission, and the form can be submitted unconditionally.

2. Link related attributes

Add media properties for a and area. Specifies why the target URL is optimized for the type of media/device. This attribute is used to specify that the destination URL is designed for special devices (such as the IPhone), voice, or print media. This property can accept multiple values. Can only be used when the href attribute is present. Add Herflang and Rel properties for area. The Hreflang property specifies the language of the text in the document being linked. This property can be used only if the href attribute is set. Note: This property is purely advisory. The rel attribute specifies the relationship between the current document and the linked document/resource. The Rel attribute can be used only when the href attribute is used. Increase the Size property for link. The sizes attribute specifies the size of the linked resource. You can use this property only if the linked resource is an icon (rel= "icon"). This property can accept multiple values. Values are separated by a space. Adding the target property to the base element is primarily to maintain consistency with the a element. Www.0412pfk.net of Anshan skin disease Specialty Hospital

3. Other properties

Increase the reversed property for OL, which specifies that the list is displayed in reverse order. Add the CharSet property for meta to menu to add the Type and label properties. Label defines a callout for a courseware for a menu, and the type attribute is only available when the context menu, toolbar, and list are cande but three forms are present. Adds the scoped property to the style. It allows us to define the style for the specified part of the document, rather than the entire document. If you use the "scoped" property, the specified style can only be applied to the parent element of the style element and its child elements. Add or subtract attributes for script, which defines whether the scripts execute asynchronously. The Async property applies only to external scripts (when using the SRC attribute) there are several ways to execute external scripts: if async= "Async": The script executes asynchronously relative to the rest of the page (when the page resumes parsing, the script is executed) if Async is not used and defer= "Defer": The script will be executed when the page finishes parsing if neither async nor defer: reads and executes the script to add manifest to the HTML element immediately before the browser continues to parse the page, and when developing an offline Web application he uses it in conjunction with the API, Defines a URL that describes the cached information for a document at this URL. Add a property to the IFrame, sandbox, seamless, srcdoc. Used to improve page security and prevent untrusted Web pages from performing certain operations.

HTML5 a brief overview of new properties and properties that are repealed

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.