Xiaobian to share the usage of the new characteristics of the Sophisticated label in H5, I hope everyone will read the big gain after reading this article, let us discuss together!
HTML5 new features
HTML5 only a simple document types: , represents the browser resolves in accordance with the standard mode.
easy to remember the encoding type
You can now use the meta tag “charset”:
scripts and links without having to type
, for example: ,
More semantically new label
Your browser does not support the video tagthe new input types:
Color, Email, Date, Month, Week, Time, DateTime, DateTime-local, Number, Range, Search, Tel, and URL
required, autofocus, pattern, list, autocomplete and placeholder
Canvas tag draws 2D graphics. Var canvas = document.getlementByid (‘canvas’); var context = canvas.getContext (‘2D’); context.beginpath (); context.moveto (100, 100); context .LineTo (300, 300); context.lineto (100,500); context.LineWidth = 5; context.StrokeStyle = “red”; context.Stroke ();
After reading this article I believe that you have a certain understanding of the usage of new features in H5, want to know more related knowledge, welcome to pay attention to Tumi Yun Industry Information Channel, thank you for reading!