HTML5 section 2 and alloy Equipment Section 5

Source: Internet
Author: User

HTML5 section 2 and alloy Equipment Section 5

Second round: New HTML5 features

Compared with HTML4.01, HTML5 adds a lot of changes:

New semantic Element: <Article>, <aside>, <figure>, <figcaption>, <footer>,

New element features: New element attributes, form elements, and verification functions are added.

Multimedia: Adds <audio> audio and <video> video elements.

2D/3D drawing: Adds a <canvas> Drawing Element.

Storage: Added online and offline storage features.

Connectivity: Added two pieces of interaction between the client and the Server: Web Sockets (persistent connection between the client and the Server) and Server-sent events (Server push data.

7.Integration: Provides powerful functions such as Web Workers, History API, requestAnimationFrame, and geographic location.

BytesDevice Access: Supports cameras and mobile devices.

BytesCSS3 Style: Provides New Background style features, animations, borders, and other styles.

The following example shows how to use each label and how h5 works with c3.

The html code is as follows:

<! DOCTYPE html> 
The css code is as follows:
Body {background-color: # CCCCCC; font-family: Geneva, Arial, Helvetica, sans-serif; margin: 0px auto; max-width: 900px; border: solid; border-color: # FFFFFF;} header {background-color: # F47D31; display: block; color: # FFFFFF; text-align: center;} header h2 {margin: 0px;} h1 {font-size: 72px; margin: 0px;} h2 {font-size: 24px; margin: 0px; text-align: center; color: # F47D31 ;} h3 {font-size: 18px; margin: 0px; text-align: center; color: # F47D31 ;}h4 {color: # F47D31; background-color: # fff; -webkit-box-shadow: 2px 2px 20px #888;-webkit-transform: rotate (-45deg);-moz-box-shadow: 2px 2px 20px #888; -moz-transform: rotate (-45deg); position: absolute; padding: 0px 150px; top: 50px; left:-120px; text-align: center;} nav {display: block; width: 25%; float: left;} nav a: link, nav a: visited {display: block; border-bottom: 3px solid # fff; padding: 10px; text-decoration: none; font-weight: bold; margin: 5px;} nav a: hover {color: white; background-color: # F47D31;} nav h3 {margin: 15px; color: white ;}# container {background-color: #888 ;}section {display: block; width: 50%; float: left;} article {background-color: # eee; display: block; margin: 10px; padding: 10px;-webkit-border-radius: 10px;-moz-border-radius: 10px; border-radius: 10px ;} article header {-webkit-border-radius: 10px;-moz-border-radius: 10px; border-radius: 10px; padding: 5px ;} article footer {-webkit-border-radius: 10px;-moz-border-radius: 10px; border-radius: 10px; padding: 5px;} article h1 {font-size: 18px;} aside {display: block; width: 25%; float: left;} aside h3 {margin: 15px; color: white;} aside p {margin: 15px; color: white; font-weight: bold; font-style: italic;} footer {clear: both; display: block; background-color: # F47D31; color: # FFFFFF; text-align: center; padding: 15px;} footer h2 {font-size: 14px; color: white;}/* links */a {color: # F47D31;}: hover {text-decoration: underline ;}. show {-webkit-animation: show 25 s release-out infinite;-moz-animation: show 25 s release-out infinite;-o-animation: show 25 s extract-out infinite; animation: show 25 s extract-out infinite;-webkit-transform: translate3d (0, 0, 0);-ms-transform: translate3d (0, 0, 0);-o-transform: translate3d (0, 0, 0); transform: translate3d (0, 0, 0 );} /* call the animation */@-webkit-keyframes show {0% {background: # f47d31; color: white;} 50% {background: # e0a014; color: # a3d9ff ;} 100% {background: purple; color: pink;}/* define animation */
As shown in
 

I believe that everyone has a strong interest in h5, so now you can do it yourself and use the h5 Development page. In the next section, I will continue to explain the application of h5.

 

 

Related Article

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.