Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 318 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
318
Dung lượng
18,55 MB
Nội dung
[...]... elements and features we aren t discussing further, here are a few resources for you to consume at your leisure Introducing HTML5, by Bruce Lawson and Remy Sharp [http://introducinghtml5.com/] HTML5 Doctor [http://html5doctor.com/ ] Dive Into HTML5, by Mark Pilgrim [http://diveintohtml5.org/ ] WHATWG HTML5 Specification [www.whatwg.org/specs/web-apps/current- work/multipage/ ] 22 Chapter 2 Foundation. .. of HTML5, which is still ongoing to this day I explained the reasons why HTML5 is needed, and how it is going to meet those needs We ve taken a look at all of the major new elements andand features of HTML5, learning their purpose and the ways they can be used You ve learned how to put all of this together to construct a Web page in HTML5 Lastly, I ve made clear the confusion surrounding HTML5 and. .. YouTube and Vimeo are already rolling out experimental HTML5 video support in preparation for the maturing and future uptake of HTML5 In any case, you can always use a traditional Flash video as fallback for a HTML5 video if you really want to use it on your website Note: A major reason why HTML5 media is so important is that it provides a completely open way of implementing audio and video Before this... to HTML in both development and use CSS3 is not part of the HTML5 specification (it never was, and never will be) They are two completely different technologies – one for structure and layout, the other for presentation – that, because of their close proximity in use, have been bundled together for some reason The bottom line? Don t refer to CSS3 as HTML5 Is CSS3 part of HTML5? No – it s a styling technology;... aren t part of the HTML5 umbrella, they all solve a distinct purpose and they should be embraced and used together with HTML5 whenever possible The point of this section is to highlight the reason why these technologies aren t part of HTML5, not to put you off using them altogether For example, by combining WebSockets with HTML5 canvas you can create amazing real-time multiplayer games Now that s a... introduced with HTML5 to save the day You d be forgiven for thinking video is harder to implement in HTML5 than audio Fortunately for us, these two media elements stem from the same guidelines, meaning that they use similar attributes and are implemented in similar ways A simple video element would look something like this (see Figure 1-2 ) 7 10 https://wiki.mozilla.org/Audio_Data_API INTRODUCING HTML5