• Building a website?

    We build professional, user-friendly and engaging websites for businesses and individuals who require an impressive online presence.

    We're ready to discuss your project today —

    Contact Creative World

  • Keep in touch

    Sign up for our 'not so monthly' newsletter - updates, offers, tips and more.





  • Archives

  • Related Pages

    No related posts.

  • Related Posts

Adding HTML5 tags to Dreamweaver CS4

At last night’s Brisbane Web Design meetup, Carolyn King (@cazazz) mentioned how current versions of Dreamweaver don’t recognize the new HTML5 tags (ie, <header>, <article>, <aside>, <footer> etc.) and she asked if it’s possible to add support for it some how…

Here’s how:

  1. Start Dreamweaver and go to Edit > Tag Library Editor
  2. Click on the plus “+” icon and select New Tag Library
  3. Give your new tag library a name, something like “HTML5 tags”
  4. Select the type of documents you want the HTML5 tags to be used in from the “Used in“ list
  5. Now, click on the plus “+” icon again and select New Tags this time
  6. Type the HTML5 tags you’d like to add
    TIP: add multiple tags at once – copy and paste this selection of tags if you like:
    article, aside, audio, canvas,  command, datagrid, datalist, details, dialog, figure, footer, header, hgroup, mark, meter, nav, output, progress, rp, rt, ruby, section, source, time, video
  7. Next, you can add HTML5 global attributes to these tags. Click on the plus “+” icon and select Add Attributes
  8. Select the HTML5 tags library you created before and select the tag you want to give attributes to. You can comfortably add the global attributes to all new HTML5 tags:
    class, id, style, contenteditable, irrelevant, tabindex, contextmenu, lang, template, dir, ref, title, draggable, registrationmark
    However check to see if any specific tag attributes should be added too …and click OK.
  9. Once that is done you can also assign attribute types where possible, ie: class = CssStyle or dir = Enumerator (with values: ltr, rtl) etc.
  10. That’s it!

Another (easier) way to add HTML5 tag support to Dreamweaver is by importing a HTML5 DTD Schema - however, at the time of writing a Document Type Declaration for HTML5 does not exist because HTML5 isn’t a standard yet.

There’s no official formal schema for HTML5 because we have found that providing an official formal schema leads to people using that schema even if it is buggy, never considering writing their own. By not having an official formal schema, we have found that implementors are more likely to write their own code, competing on quality. Ian Hickson

Until then the method above is is the only way of adding (partial) HTML5 support to Dreamweaver (that I know of). The steps above were written for Dreamweaver CS4 on Windows (I’m assuming it’s a similar process for other platforms and/or previous versions of Dreamweaver. Dreamweaver CS5 has suggested that it will support HTML5.

Setting up your new HTML5 Tag Library in Dreamweaver can take some time, but once it’s setup correctly the learning and coding process for HTML5 just got a lot easier. Good luck!

Tags: , , , ,


Author | Leon Poole

Leon Poole is owner and founder of the Brisbane Web Design company Creative World. He has a passion for designing websites, solving problems and improving the user experience. You can follow me on Twitter or Google+.

11 Responses to Adding HTML5 tags to Dreamweaver CS4

  1. Menno Was says:

    Thanks a bunch Leon. Copy and paste… Your article made it easy to add HTML5 tags & attributes. Yeah!

  2. Great…!
    Its very useful for me to use HTML5 in DW CS4. Thanks a lot for posting Leon..
    I had a trouble in using HTML5 in CS4. U gave me a right solution for it. Thanks u so much man !!!!!!!

  3. gr8… i am very happy to use this tutorials and it’s very helpful..:)

  4. Useful html5 tags information, inspiring stuff – will look into using the html5 on my Dreamweaver CS5 this afternoon – thanks for the info

  5. valeu obrigado pelo post….

  6. Hey, Leon! Awesome tutorial– it’s clear, concise and especially useful to developers who haven’t had much practice adding HTML5 tags. I’m bookmarking it now for our new developers who come aboard. Thanks for sharing a great post!

  7. Pingback: HTML5: Video and all that | OliJ

  8. Enjoyed the adobe post. This blog was worth bookmarking but this is going on Delicious now!

  9. Thanks, you’re a star! Very clear instructions, only took a few minutes. Will make it loads easier to use html5. Adobe, eat your heart out ;-)

    • Hehe, Carolyn. :) They built DW to do just this—that’s why you have an extensible tag library—and they told me how to do it. They LIKE it when we do things like this. I’ve been using DW this way for a while. They just couldn’t have added the tags themselves yet because, well, when they started CS5 development a couple years ago, the spec wasn’t done. (Still isn’t ;) )

      Thanks Leon for writing the steps – now someone just needs to turn it into an extension with all the elements and attributes. :)

Leave a Reply...

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>