background preloader

All Standards and Drafts

All Standards and Drafts
Related:  html5 css

Media formats supported by the HTML audio and video elements - HTML (HyperText Markup Language) | MDN The <audio> and <video> elements provide support for playing audio and video media without requiring plug-ins. Video codecs and audio codecs are used to handle video and audio, and different codecs offer different levels of compression and quality. A container format is used to store and transmit the coded video and audio (both together, the case of a video with a soundtrack). Many combinations of codecs and container formats exist, although only a handful of these are relevant on the Web. Different browsers do not support the same media formats in their implementations of HTML5 video and audio, mainly because of patent issues. The area of media formats on the Web has greatly suffered from patent law in many countries including the USA and EU countries (the notes on patents in this article is provided as-is and without any warranty.) WebM The WebM format is based on a restricted version of the Matroska container format. Gecko recognizes the following MIME types as WebM files: video/webm

Slick login form with HTML5 & CSS3 We already know that CSS3 has the ability to create a lot of new possibilities to design and implement better web forms. Also, HTML5 has its important role when it comes about creating more usable forms, without actually needing any Javascript code. Knowing that, check out the below preview to see the login form we're going to create in this article: View demo Markup <form id="login"><h1>Log In</h1><fieldset id="inputs"><input id="username" type="text" placeholder="Username" autofocus required><input id="password" type="password" placeholder="Password" required></fieldset><fieldset id="actions"><input type="submit" id="submit" value="Log in"><a href="">Forgot your password? The HTML5 stuff New HTML5 attributes descriptions, according to latest specifications: The CSS For this article, I will not paste the whole lines here. Paper stack effect Box-shadow will help us creating this nice effect by defining multiple shadows that actually overlap. Stitch effect Subtle gradient lines The final result

Terms for describing people Abstract This document defines a set of terms for describing people. It defines how to describe people's characteristics such as names or addresses and how to relate people to other things, for example to organizations or projects. For each term, guidance on the usage within a running example is provided. This document also defines mappings to widely used vocabularies to enable interoperability. Status of This Document This section describes the status of this document at the time of its publication. This document is work in progress. This document was published by the Government Linked Data (GLD) Working Group as a First Public Working Draft. Publication as a Working Draft does not imply endorsement by the W3C Membership. This document was produced by a group operating under the 5 February 2004 W3C Patent Policy. Scope This document is aimed at both publishers and consumers of Linked Data. 1. This section is non-normative. 1.1 Terminology source data publisher consumer 1.2 Conventions 2. 3. 4.

Controlling Media with JavaScript Because the <audio> and <video> elements are part of the HTML5 standard, there are JavaScript methods, properties, and DOM events associated with them. There are methods for loading, playing, pausing, and jumping to a time. There are also properties you can set programmatically, such as the src URL and the height and width of a video, as well as read-only properties such as the video’s native height. Finally, there are DOM events you can listen for, such as load progress, media playing, media paused, and media done playing. This chapter shows you how to do the following: For a complete description of all the methods, properties, and DOM events associated with HTML5 media, see Safari DOM Additions Reference. A Simple JavaScript Media Controller and Resizer Listing 4-1 creates a simple play/pause movie control in JavaScript, with additional controls to toggle the video size between normal and doubled. Listing 4-1 Adding simple JavaScript controls Using DOM Events to Monitor Load Progress

Front-end development - RedTeamDesign BIO: A vocabulary for biographical information Creators David Galbraith This document describes a vocabulary for describing biographical information about people, both living and dead. The BIO vocabulary contains terms useful for finding out more about people and their backgrounds and has some cross-over into genealogical information. The approach taken is to describe a person's life as a series of interconnected key events, around which other information can be woven. The BIO vocabulary defines a number of core classes and properties for describing biographical information: Figure: Biography Vocabulary Core Classes (PNG version, SVG version) At its heart the BIO vocabulary is concerned with people, their relationships and the events in their lives. The sequence of events and intervals build a timeline of history against which people and their relationships can be placed. Figure: Biography Vocabulary Timelines(PNG version, SVG version) Please see for the master version of this vocabulary. History Namespace

WEBBEM - Home | Collecting all the cheat sheets An organization ontology Last update: First released: Revision: Revision: 0.4 Editors: Dave Reynolds (Epimorphics Ltd) Copyright © 2010 Epimorphics Ltd This work is licensed under a Creative Commons License. Abstract This document describes a core ontology for organizational structures, aimed at supporting linked-data publishing of organizational information across a number of domains. Status of this document This is an editor's draft without any formal standing. Changes to the ontology will be announced on the public-lod mail list. Table of Contents 1. This ontology was original motivated by a need to publish information relating to government organizational structure as part of the initiative. The ontology gives minimal basic terms to support representation of: This coverage corresponds to the type of information typically found in organizational charts. The ontology does not provide category structures for organization type, organization purpose or roles. Overview of ontology Namespace Design notes 2. 3. 4. 5.

HTML5 Microdata Format Generator | Barry Ko Following up on a previous entry on the Microdata Format, I’ve created a completely free, for non-commercial purposes, Microdata Generator for some of the more popular item types: Books, Movies, People, Organizations and Companies, Stores, Restaurants, and Local Businesses. While there are other Microdata Generators and Creators out there, I haven’t found one that correctly nests multiple item types, or integrates the correct Hours of Operation (date/time) item property, which is essential for local businesses and restaurants. Furthermore, I’ve taken the extra step of giving you the option to include line breaks (for those who prefer the raw text format), the option to wrap the labels in a <span> tag, and the option to insert a class into the label span for custom css styling!

10 CSS Rules Every Web Designer Should Know Through experience as web designers we memorise all kinds of code syntax, hacks and snippets. With CSS in particular there is a number of rules and declarations that can really help transform your website designs and open up new possibilities when compared to older techniques. This post rounds up 10 declarations and tips that every web designer should have available in their CSS arsenal. @media screen and (max-width: 960px) { } The @media rule not only allows you to specify styling for your web page when printed. A cool and extremely useful CSS3 property that has now gained thorough browser support is background-size. One CSS3 property that has really helped transform the web over recent years is @font-face. The clever margin: 0 auto; declaration is one of the first snippets you learn when getting to grips with CSS. For those float clearing situations where overflow: hidden; doesn’t work, the best alternative is the clearfix technique.

FOAF Vocabulary Specification Classes Class: foaf:Agent Agent - An agent (eg. person, group, software or physical artifact). The Agent class is the class of agents; things that do stuff. The Agent class is useful in a few places in FOAF where Person would have been overly specific. [#] [back to top] Class: foaf:Document Document - A document. The Document class represents those things which are, broadly conceived, 'documents'. The Image class is a sub-class of Document, since all images are documents. We do not (currently) distinguish precisely between physical and electronic documents, or between copies of a work and the abstraction those copies embody. [#] [back to top] Class: foaf:Group Group - A class of Agents. The Group class represents a collection of individual agents (and may itself play the role of a Agent, ie. something that can perform actions). This concept is intentionally quite broad, covering informal and ad-hoc groups, long-lived communities, organizational groups within a workplace, etc. Here is an example.

Promote Your Content with Structured Data Markup   |   Structured Data   |   Google Developers Google Search works hard to understand the content of a page. You can help us by providing explicit clues about the meaning of a page to Google by including structured data on the page. Structured data is a standardized format for providing information about a page and classifying the page content; for example, on a recipe page, what are the ingredients, the cooking time and temperature, the calories, and so on. Google uses structured data that it finds on the web to understand the content of the page, as well as to gather information about the web and the world in general. For example, here is a JSON-LD structured data snippet that might appear on the contact page of the Unlimited Ball Bearings corporation, describing their contact information: Google Search also uses structured data to enable special search result features and enhancements. Structured data is coded using in-page markup on the page that the information applies to. Structured data format Structured data guidelines