Skip to main contentdfsdf

Pranshu Arya's List: Dive Into HTML5

    • A <canvas> element has no content and no border of its own.
    • You can have more than one <canvas> element on the same page. Each canvas will show up in the DOM, and each canvas maintains its own state. If you give each canvas an id attribute, you can access them just like any other element.

    31 more annotations...

    • That leaves us with this root element:

      <html lang="en">
    • The HTTP header is the preferred method, and it overrides the <meta> tag if present.

    48 more annotations...

    • In browsers that support HTML5 features, certain objects will have unique properties. A quick peek at the DOM will tell you which features are supported.

    17 more annotations...

    • Everything has its own MIME type. The web runs on MIME types.
    • some popular web browsers will ignore the Content-Type header under certain circumstances. (This is called “content sniffing.”)

    2 more annotations...

    • HTML5 is not one big thing; it is a collection of individual features. So you can’t detect “HTML5 support,” because that doesn’t make any sense. But you can detect support for individual features, like canvas, video, or geolocation.
    • HTML5 doesn’t just define a <video> tag; there is also a corresponding DOM API for video objects in the DOM.

    4 more annotations...

    • You may think of video files as “AVI files” or “MP4 files.” In reality, “AVI” and “MP4″ are just container formats.
      Just like a ZIP file can contain any sort of file within it, video container formats only define how to store things within them, not what kinds of data are stored
1 - 6 of 6
20 items/page
List Comments (0)