In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
The editor will share with you what new features have appeared in html5. I hope you will get something after reading this article. Let's discuss it together.
Some new features have emerged in html5:
Canvas elements Video video and Audio audio elements
Support for local offline storage (localStorage,sessionStorage)
Add special content elements: article, footer, header, nav, section
Add form controls: calendar, date, time, email, url, search.
Look at video and audio today: the standard method for video is specified in html5: video
Your browser still does not support it. We can also set multiple source. The browser will select the first recognizable video for us to play, such as: your browser does not support oh video attribute:
Property value description autoplayautoplay if this attribute appears, the video plays as soon as it is ready. Controlscontrols if this property appears, the control is displayed to the user, such as a play button. Height pixels set the height of the video player. If this attribute appears in looploop, the playback starts again after the media file has finished playing. Preloadpreload
If this property appears, the video is loaded when the page is loaded and ready to play.
If "autoplay" is used, this attribute is ignored.
Srcurl video address the URL of the video to be played. Width pixels set the width of the video player.
Autobuffer
Autobuffer
(automatic buffering)
When a web page is displayed, the binary attribute indicates whether the content is buffered automatically by the user agent (browser) or by the user using the relevant API for content buffering
Poster
Url picture address
When the video is unresponsive or insufficient buffering, the attribute value is linked to an image. The image will be displayed in a certain proportion.
The audio standard in HTML5 is defined as the audio element, and the audio element can play sound files or audio streams.
Audio format is similar to video: direct line multiple source:
The code is as follows:
Your browser doesn't support it yet.
Its attributes have fewer height, width, and poster than video. Multimedia is becoming more and more important in our development, and these video and audio have emerged in html5.
After reading this article, I believe you have a certain understanding of "what are the new features in html5". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.