A Bloggers Guide to HTML5

Are you someone like me who thinks HTML is the most interesting topic on the planet?

No?

Not surprising, really. Most people have other things to think about.

But even those among us – you! – who would rather think about other things have probably noticed a lot of headlines and blog posts that talk about HTML5. Maybe you’ve wondered if HTML5 is something important enough for you to start thinking about. Maybe you’ve noticed that WordPress themes are coming out in HTML5, such as these from WPMU, and you’ve thought about whether you should switch to a new theme on your blog. Maybe you’re worried that your current blog/web site will be out of date if you don’t make a move to HTML5.

This post is for the wonderers, the worriers, and those who are only marginally interested in HTML. I’ll do a little ‘splainin’ that may help you learn enough to make some decisions.

html5 logo

Fact One: HTML5 is still HTML

If you know a little about HTML already, everything you know is still good and still works. HTML5 is an evolutionary growth step, it’s not a completely new invention. HTML5 is backwards compatible. It works with whatever version of HTML or XHTML you already have on your web page. Here’s the kicker – you can take an existing web page and change it to HTML5 with just a few keystrokes.

Change the DOCTYPE to HTML5 and you’re suddenly using HTML5. For example, your existing DOCTYPE (it’s the first thing in the code on your page) might look something like this:

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”>

If you replace that with the DOCTYPE for HTML5, your web page would still work. It would still look the same. Backwards compatible, remember? What’s the new DOCTYPE?

<!DOCTYPE html>

That all there is to it. Several other things are much simpler in HTML5, like links to scripts and stylesheets. Nice, eh?

Fact Two: Choose Your Own Syntax

What if you’ve been using XHTML – with all those forward slashes at the ends of tags like <br />? In HTML5, you can still use that type of syntax if you want it. Or you can do the plain old <br> minus the XHTML required forward slash. You can write HTML the way you like best. For example, you can capitalize tags if you want to, like this:

<IMG SRC=”myimage.jpg”>

You can use quotation marks or not. So you could do this:

<img src=myimage.jpg>

HTML5 can deal with all of it. Nothing will get broken and not work.

Fact Three: New HTML Elements

There are some new elements. Some are meant to make things more semantic. Most HTML tags are self-describing. This semantic self-description among HTML elements is a very good thing. You document makes more sense to both humans and machines if the correct tags are used to mark up the content as whatever it is semantically meant to be – for example a list or a heading.

Bloggers might really be interested in the new <article> element. Think of an article as a single unit, something you could pick up and move around. Like a blog post. Each post on your blog could be an <article> in HTML5. Inside that article there could be the new <header> element with the post title, and the new <footer> element with info like the author’s name, or permalinks, or comment links.

We’re used to thinking of pages only having one header and one footer, but in HTML5 other elements can have headers and footers when they make sense – and there’s an tag for that.

Fact Four: New Form Types

You might have noticed this implemented on your phone already, though most browsers aren’t doing it yet. There are some new input types for forms, for example email, website, and phone. When you use one of those types in a form field, you get a keyboard to match. For example, if you were asked to enter an email address in a form field that was type=”email” the keyboard shown might include an @ and a period. Other new form elements may help make it easier to pick a date or select from a range of numbers.

email keyboard

More? Yes, There’s More

There’s more. There’s always more. For example there are new <audio> and <video> elements, but using them is still a pain. There are lots of other new tags and form types I didn’t mention. And there are related technologies that make HTML5 look really cool, like CSS3.

While I didn’t tell you everything, I hope I did tell you enough to help you decide if you want to learn more, and to not be frightened if you want to use a blog theme or template that’s written in HTML5.

Cross-posted at BlogHer.

Useful links: Google+ on WordPress, HTML5, YouTube SEO, Responsive Design

Three Ways To Display Your Latest Google+ Updates On WordPress from wpmods.

searching for signal gives us: The Most Important Parts of HTML5, or Why audio and video are Boring, or The New Web Platform, or an Introduction to HTML5. Yes, all that.

YouTube Tips: Blown Away by Phyllis Khare tells you some tips that will improve SEO (and accessibility) for your YouTube videos.

Beginner’s Guide to Responsive Web Design from Think Vitamin is a good resource/reference for getting people started with responsive design.

Useful links: HTML5 media, real names, Jonathan’s card

HTML5 media is a new site that promises their script will let you get HTML5 audio and video working with just one line of code. Supposed to work for all browsers and phones. Haven’t tried it – have you?

In the previous post, I linked to danah boyd’s thoughts on real names. Now Kathy E. Gill from Wired Pen chimes in with Google+, Facebook and Online Identity: The Problem With “Real Names” (And Why It Matters To You). She says,

Whatever its root cause, this is a line-in-the-sand moment. Corporations are re-designing Internet architecture in ways designed that counter the Internet’s fundamental support of anonymous, distributed, geographically-neutral behavior. The only beneficiaries of that change in architecture are governments and corporations.

And that’s politics.

An interesting social experiment with a Starbuck’s coffee card by Jonathan Stark. You can buy a coffee with his card. You can also add funds to his card. Fascinating watching what people are doing with it.

Useful links: Motion, Environments for Humans, Style Tweets, HTML5 Semantics

Motion 2011: motion is known for bringing together the brightest and most creative minds in the motion graphics, visual effects {VFX}, and animation industries. This year is no exception.

Environments for Humans has some great conferences scheduled. You get top experts and you don’t have to leave home to attend.

Style Twitter posts on your site with CSS3. Nice tutorial at .net magazine.

Understanding HTML5 Semantics is at Adobe Dev. Helpful connection linking sectioning elements to the document outline. For example,

Remember, when an element is being used simply for styling purposes or as a convenience for scripting, a div should still be used. The section element is not that generic. It is defining a portion of your page that should create a new section of the outline of the page.

Useful links: Accessibility and SEO, creative writing/programming, Edge

Jared Smith wrote an excellent WebAIM article talking about how Accessiblity and SEO are moving closer and closer together in their goals and techniques. He talks about a variety of things, including HTML5 and SEO. Look at Jared’s list of similarities (links are to WebAIM articles):

The list of accessibility and SEO practices that are closely in alignment include:

Of course content is king, in both accessibility and SEO.

Teaching Creative Writing with Programming at ReadWriteWeb is one of the most creative teaching ideas I’ve seen in years.

Adobe Launches HTML5 Web Animations Tool is the announcement at Mashable. The tool is called Edge and is free right now because Adobe wants testers and feedback. The tool uses only HTML5, CSS, and JavaScript. Stephanie Sullivan Rewis tweeted another article about Edge.

 

Adobe’s Edge summarized on MacWorld: http://srewis.me/p79ij4 #html5 #css3Wed Aug 03 01:41:56 via TweetDeck

 

Useful links: HTML5 forms, common HTML5 mistakes, Lion, Dropbox, and Bloom’s Taxonomy

The latest on browser support for HTML5 forms. From wufoo.

Avoiding Common HTML5 Mistakes from HTML5 Doctor.

Reading is Easier on Safari with Lion – Here’s Why from Mac Tips talks about several new features in Lion.

Use Dropbox to Test Your Website Locally from Digital Inspiration is sure a lot less expensive than Browser Cam.

Bet you never thought you’d see Bloom’s Taxonomy mentioned on A List Apart, but here it is. The UX of Learning.

Review: HTML5 & CSS3 for the Real World


HTML5 & CSS3 For The Real World, written by Alexis Goldstein, Louis Lazaris and Estelle Weyl, is from Sitepoint (2011). This book takes on several topics that could fill an entire book individually, yet manages to serve each topic well. As you can tell from the title, the book talks about HTML5 and CSS3, but it also goes into complementary JavaScript/API topics like geolocation, offline web apps, web storage, Canvas, SVG, drag and drop.

 The authors specifically point to the growing mobile market, and that focus is reflected in the chapters included in the book. They say,
Mobile Safari on iOS devices like the iPhone and iPad, Opera Mini and Opera Mobile, as well as the Android operating system’s web browser all provide strong levels of HTML5 and CSS3 support. New features and technologies supported by some of those browser include CSS3 colors and opacity, the Canvas API, Web Storage, SVG, CSS3 rounded corners, Offline Web Apps, and more.

The authors made a strong effort to be as up to date as one can possibly be in a hardcopy format. They mentioned very recent changes in HTML5. They knew what future versions of browsers were likely to support, and therefore, what vendor specific prefixes were no longer needed, or soon would not be needed.

The downloadable site adds valuable practical and hands-on experience with the examples in the book that many learners will appreciate. It gives you something concrete to grapple with in addition to the theoretical information behind what’s going on in a browser or other device. Since I tend to look at everything from an educator’s point of view, I think the downloadable files would be a real asset if this book was used to teach either HTML5 or CSS3 or both.

It’s a lot for one book, but it’s all handled well. Which makes this book a decent choice for someone who wants a single resource to guide them through the new technologies and tools that are available in and around HTML5 and CSS3. I wouldn’t recommend it for someone who didn’t already understand HTML and CSS, but it is certainly a valuable book for learning the latest information in those fields.

Summary: An all-inclusive resource for learning HTML5 and CSS3.

A review by Virginia DeBolt of HTML5 & CSS3 for the Real World (rating: 5 stars)