What does HTML5 look like and how to use it? In fact, in the first chapter of our HTML tutorial, the codes used in the examples we gave you were all written in HTML. Let’s take a closer look at HTML5
## Introduction to HTML5
HTML5 is the latest revised version of HTML. The standard was completed by the World Wide Web Consortium (W3C) in October 2014. HTML5 is designed to support multimedia on mobile devices. HTML5 is simple and easy to learn.
What is HTML5?
HTML5 is the next generation HTML standard.
HTML, the previous version of HTML 4.01 was born in 1999. The world of the Web has changed dramatically since then.
HTML5 is still a work in progress. However, most modern browsers already have some HTML5 support.
How did HTML5 get started?
HTML5 is the result of collaboration between W3C and WHATWG, which stands for Web Hypertext Application Technology Working Group. .
The WHATWG focuses on web forms and applications, while the W3C focuses on XHTML 2.0. In 2006, the two parties decided to collaborate to create a new version of HTML.
Some interesting new features in HTML5:
Canvas element for drawing
Video and audio elements for media playback
For local Better support for offline storage
New special content elements, such as article, footer, header, nav, section
New form controls, such as calendar, date, time, email, url, search
HTML5 <!DOCTYPE>
<! The doctype> declaration must be located on the first line of the HTML5 document and is very simple to use:
<!DOCTYPE html>
You can see if our first chapter example starts with <!DOCTYPE>
You You can find a video locally, put the location and name of the video in src, try itHTML5 browser support
Latest versions of Safari, Chrome, Firefox, and Opera support some HTML5 features. Internet Explorer 9 will support certain HTML5 features.
You can make some older browsers (that do not support HTML5) support HTML5.
Modern browsers support HTML5.
Additionally, all browsers, old and new, will automatically treat unrecognized elements as inline elements.
Because of this, you can "teach the browser" to handle "Unknown" HTML elements.
You can even teach the IE6 (Windows XP 2001) browser to handle unknown HTML elements.
##Defining HTML5 elements as block elements
HTML5 defines 8 new HTML semantic elements. All these elements are block-level elements. In order to allow older versions of browsers to display these elements correctly, you can set the CSS display attribute value to block:
html5shiv is a better solution for IE browser. html5shiv mainly solves the problem that the new elements proposed by HTML5 are not recognized by IE6-8. These new elements cannot be used as parent nodes to wrap child elements, and CSS styles cannot be applied.
The courseware is not available for download at the moment. The staff is currently organizing it. Please pay more attention to this course in the future~
Students who have watched this course are also learning