3. Redefined d015d241ae6d34c34210679b5204fe85 d015d241ae6d34c34210679b5204fe85 has been redefined and is now used to mean Small typesetting, such as the copyright statement at the bottom of the website 4. Remove the type attribute in the link and script tags 5. Add/without brackets HTML5 does not have strict requirements for attributes Add quotes, close or not, but it is recommended to add quotes and closing tags 6. To make your content editable, just add a contenteditable attribute 7. Email Inputs If When we set the input type to email, the browser will verify whether the input is of email type. Of course, we cannot just rely on the front-end verification, the back-end must also have corresponding verification 8. Placeholders The meaning of this input attribute is that there is no need to use javascript to achieve the placeholder effect 9. Local Storage Using Local Storage can permanently store large data fragments on the client (unless Active deletion), currently supported by most browsers, you can check whether window.localStorage exists before using it 10. Semantic header and footer 11. More HTML5 form features 12. IE and HTML5 By default, HTML5 new elements are rendered inline, but you can use the following method to render them in block
17. Video supportMuch like Audio, the 39000f942b2545a5315c57fa3276f220 tag provides support for video. Since the HTML5 document does not specify a specific encoding for video, the browser decides to support it. Which encoding caused a lot of inconsistencies. Safari and IE support H.264 encoding format, Firefox and Opera support Theora and Vorbis encoding format. When using HTML5 video, you must provide both:
18. PreloadingVIDEOThe preload attribute is as simple as its literal meaning. You need to decide whether you need to preload the video when the page loads
19. Display video Control
20. Regular ExpressionDue to the pattern attribute, we can use regular expressions directly in your markup
21. Detecting attribute supportIn addition to Modernizr, we can also simply detect whether some attributes are supported through javascript, such as:
22. Mark elementThink of the f920514e6447cf1d171079d1371f007f element as a highlight. When I select a piece of text, the markup effect of javascript on HTML should be like this:
Search Results
They were interrupted, just after Quato said, ”Open your Mind”.
23. When to use e388a4556c0f65e1904146cc1a846beeHTML5 has introduced so many elements, so do we still need to use p? You can use p when there is no better element.
24. Want to use HTML5 immediately?Don’t wait for 2022, you can use it now, just do it.
25. What is not HTML51)SVG 2)CSS3 3)Geolocation 4)Client Storage 5)Web Sockets
The above is the detailed content of Detailed introduction of 28 new features of h5. For more information, please follow other related articles on the PHP Chinese website!
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn