What is HTML5?
##HTML5 is the latest HTML standard. (Recommended learning: html tutorial)
HTML5 is specially designed to carry rich web content and does not require additional plug-ins. HTML5 has new semantics, graphics, and multimedia elements. HTML5 provides new elements and new APIs that simplify building web applications. HTML5 is cross-platform and designed to run on different types of hardware (PCs, tablets, mobile phones, TVs, etc.).What’s new in HTML5?
HTML5’s new document type (DOCTYPE) declaration is very simple:<!DOCTYPE html> The new character encoding (charset) declaration is also very simple: <meta charset="UTF-8">
Example
<!DOCTYPE html> <html> <body> <video width="420" controls> <source src="mov_bbb.mp4" type="video/mp4"> <source src="mov_bbb.ogg" type="video/ogg"> Your browser does not support the video tag. </video> </body> </html>
The above is the detailed content of What is HTML5?. For more information, please follow other related articles on the PHP Chinese website!