This article will share with you some interesting new features of html5, which are very practical. Friends who are interested in the new features of html5, let’s learn together.
1. Some interesting new features in HTML5:
Canvas elements for painting
Video and audio elements for media playback
Better support for local offline storage
New special content elements, such as article, footer, header, nav, section
New form controls, such as calendar, date, time, email, url, search
2. HTML5 video <video>
1. Video formatOgg = Ogg file with Theora video encoding and Vorbis audio encoding
MPEG4 = MPEG 4 file with H.264 video encoding and AAC audio encoding
WebM = WebM file with VP8 video encoding and Vorbis audio encoding
2. Properties of <video> tags*The tag <source> specifies that multimedia resources can be multiple
3. Example(1)
Copy the code