h5 new features: drag and drop API, semantic tags, audio and video API, canvas API, geography API, form controls, etc. New features of css3: 1. RGBA and HSLA; 2. text-shadow; 3. border-radius, box-shadow, box-sizing, etc.
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
html5 is a language description method for constructing web content. HTML5 is the next generation standard for the Internet. css3 is an upgraded version of css (cascading style sheets) technology. Let’s take a look at the new features of HTML5 and CSS3.
New features of CSS3:
1. Color: new RGBA, HSLA mode
2. Text-shadow
3. Border: Rounded corners (border-radius) Border shadow: box-shadow
4. Box model: box-sizing
5. Background: background-size Set background image The size background-origin sets the origin of the background image
background-clip sets the cropping area of the background image, separated by "," you can set multiple backgrounds for adaptive layout
6. Gradient: linear-gradient, radial-gradient
7. Transition: transition, animation can be realized
8. Custom animation
9. The only pseudo pseudo code introduced in CSS3 The elements are: :selection.
10. Media query, multi-column layout
11. border-image
12.2D transformation: transform: translate(x, y) rotate (x, y) skew(x, y) scale(x, y)
13. 3D conversion
CSS3 new pseudo-class:
p:first-of-type selects each
element that is the first
element of its parent.
p:last-of-type selects each
element that is the last
element of its parent element.
p:only-of-type Selects every
element that is the only
element of its parent.
p:only-child Selects each
element that is the only child element of its parent element.
p:nth-child(2) Selects each
element that is the second child of its parent element.
:enabled, :disabled Control the disabled state of the form control.
:checked, the radio button or check box is selected.
html5 new features:
1. Drag and drop API
2. Better semantic content tags (header ,nav,footer,aside,article,section)
3. Audio, video API(audio,video)
4. Canvas API
5. Geography (Geolocation) API
6. Local offline storage localStorage long-term storage data, the data will not be lost after the browser is closed;
7. The sessionStorage data will be automatically deleted after the browser is closed
8. Form controls, calendar, date, time, email, url, search
9. New technologies webworker, websocket, Geolocation
For more programming related knowledge, please visit:Introduction to Programming! !
The above is the detailed content of What are the new features of h5 and css3. For more information, please follow other related articles on the PHP Chinese website!