At the end of 2014, HTML5 was officially released. It introduced 30 new tags, a number of which gave media outlets better options for semantic markup.
In order to identify parts of the page that were headers, footers, the article body, etc. we would have to use divs all day long.
These IDs that were commonly used have been ported into their own tags for page use for more concise and descriptive markup.
Start a directory for your article page and an index.html file inside of it to house your content. Make sure you include the following tags on your page (in addition to your standard setup): header, article, footer. And make sure you have a headline!
Our goal is to start a feature article template, that might look something like this.
To prep, start a media directory inside your article directory to house our video files. Download the video files from Slack.
Pre-HTML5, most web video was served via Adobe's Flash. As use of Flash has fallen out of favor and JavaScript took its place, Flash still had a hold on the serving of video (and audio).
Two of the most powerful new tags in HTML5 are the video and audio tags, which allow you to simple define a source and control attributes to serve basic web video.
For both video and audio, within each tag, you will need to define source file so they know which video or audio file to play.
The source tag is an inline tag (so no closing tag) that needs the src and type attributes.
A Note: There are two main types of video file types that we use on the web - mp4 and webm. To make sure that your video works across all browers, it is best to include both file types. Firefox in particular is selective about using webm. (As with everything, this is subject to change.)
<video>
<source src="your-video-file.mp4" type="video/mp4">
<source src="your-video-file.webm" type="video/webm">
</video>
Using the Greenland video files (or one you've brought) - add a lead video to your page that autoplays and loops. Inspect the page to see what kind of default styles are being added.
To gain more control over the video element, you can utilize a javascript library, like videojs for even more interactions.
Split into groups that you'll be working with the next two weeks to build a small application using a publicly available dataset. For now, let's just get your project files started.
Make sure your README file in your project has a description of your project and your group's names on them.