HTML 5 review

Sunday - 27/06/2010 22:24
I have to say that my money used to be on XHTML 2.0 eventually winning the battle for the next great web standard. Either that, or the two titans would continue to battle it out for the forseable future, leading to an increasingly fragmented web.

But now that the W3C has admitted defeat, and abandoned XHTML 2.0, there’s now no getting away f-rom the fact that HTML 5 is the future. As such, I’ve now spent some time taking a look at this emerging standard, and hope you’ll endulge my ego by taking a glance over my thoughts on the matter.

Before I get started though, I have to say that I’m very impressed by what I’ve seen. It’s a good set of standards that are being cre-ated, and I hope that they will gradually be adopted over the next few years.

New markup

HTML 5 introduces some new markup elements to encourage better structure within documents. The most important of these is <section>, which is used to define a hierarchy within a document. Sections can be nested to define subsections, and each section can be broken up into <header> and <footer> areas.

The important thing about this addition is that it removes the previous dependancy on <h1>, <h2> and related tags to define structure. Within each <section>, the top level heading is always <h1>. You can use as many <h1> tags as you like within your content, so long as they are correctly nested within <section> tags.

There’s a plethora of other new tags, all of which seem pretty useful. The best thing about all of this, however, is that there’s no reason not to start using them right away. There’s a small piece of JavaScript that’s needed to make Internet Explorer behave, but aside f-rom that it’s all good. More details about this hack are available at http://www.diveintohtml5.org

Easier media embedding

HTML 5 defines some new tags that will make it a lot easier to embed video and audio into pages. In the same way that images are embedded using <img> tags, so now can video and audio files be embedded using <video> and <audio>.

I don’t think than anyone is going to complain about these new features. They free us f-rom relying on third-party plugins, such as Adobe Flash, for such simple activities such as playing video.

Unfortunately, due to some annoying licensing conditions and a lack of support for the open-source Theora codec, actually using these tags at the moment requires that videos are encoded in two different formats. Even then, you’ll still need to still provide an Adobe Flash fallback for Internet Explorer.

You’ll need to be pretty devoted to HTML 5 to use these tags yet…

Relaxed markup rules

This is one thorny subject. You know how we’ve all been so good recently with our well-formed XHTML, quoting those attributes and closing those tags? Now there’s no need to, apparently…

On the surface, this seems like a big step backwards into the bad days of tag soup. However, if you dig deeper, the reasoning behind this decision goes something like this:

  1. It’s unnacceptable to crash out an entire HTML page just because of a simple XML syntax error.
  2. This means that browsers cannot use an XML parser, and must instead use a HTML-aware fault-tolerant parser.
  3. For consistency, all browsers should handle any such “syntax errors” (such as unquoted attributes and unclosed tags), in the same way.
  4. If all browsers are behaving in the same way, then unquoted attributes and unclosed tags are not really syntax errors any more. In fact, by leaving them out of our pages, we can save a few bytes!

This isn’t to say that you have to throw away those XHTML coding habits. It’s still all valid HTML 5. In fact, if you really want to be strict, you can set a different content-type header to enforce well-formed XHTML. But for most people, we’ll just carry on coding well-formed HTML with the odd typo, but no longer have to worry about clients screaming at us when the perfectly-rendered page doesn’t validate.

So what now?

The HTML 5 specification is getting pretty close to stable, so it’s now safe to use bits of this new standard in your code. How much you use is entirely a personal choice. However, we should all get used to the new markup over the next few years, because HTML 5 is assuredly here to stay.

Myself, I’ll be switching to the new doctype and using the new markup for document sections in my code. This step involves very little effort and does a good job of showing support for the new specification.

The new media tags are another matter. Until all platforms support a single video format, it’s simply not sustainable to be transcoding all videos into two filetypes. When this is coupled with having to provide a Flash fallback, it all seems like a pretty poor return on investment.

These features will no doubt become more useable over the next few years, as newer browser take the place of old. One day, hopefully, we’ll be able write clean, semantic pages without having to worry about backwards-compatibility.

Part of this progress relies on web developers using these new standards in our pages. By adopting new technology, we show our support for the standards it represents and place pressure on browser vendors to adhere to those standards. It’s a bit of effort in the short term, but in the long term it will pay dividends.

', 'http://www.etianen.com/blog/developers/2010/2/html-5-review/

Source: Enlightened Website Development

 Tags: HTML5

Total notes of this article: 0 in 0 rating

Click on stars to rate this article

  Reader Comments

  • Matthewsnare
    Услуги бизнес юриста важны для любой компании, стремящейся к эффективному ведению деятельности и минимизации рисков. Юридическая консультация бизнес предоставляет организациям возможность заранее проанализировать возможные правовые проблемы, что позволяет избежать серьезных финансовых потерь и обеспечивать стабильность на рынке. Специалисты в этой области помогают не только в регистрации бизнеса, но и в разработке внутренней документации, заключении договоров, а также в соблюдении норм законодательства, что является критически важным для устойчивого роста. Качественная юридическая консультация бизнес также включает представительство интересов компании в судебных инстанциях и перед государственными органами, что позволяет менеджерам сосредоточиться на ведении оперативной деятельности. Профессиональные юристы знают, как эффективно защищать права клиентов и предлагать решения в сложных ситуациях, что делает такую консультацию незаменимым инструментом для достижения бизнес-целей. Заказывая юридическую консультацию бизнес, компании получают надежного партнера, который поможет не только в текущих вопросах, но и будет предусматривать возможные правовые риски на будущее. Таким образом, услуги бизнес юриста способствуют созданию безопасной и предсказуемой деловой среды, в которой предприниматели могут сосредоточиться на росте и развитии своего бизнеса.

    Если вам потребуется юридическая консультация по бизнесу, то обращайтесь к опытному бизнес юристу
      Matthewsnare   21/11/2024 10:22
  • GeorgeSailt
    Семейные дела представляют собой одну из наиболее сложных и эмоционально насыщенных областей права, где поддержка квалифицированного юриста имеет принципиальное значение. Независимо от того, идет ли речь о разводе, вопросах опеки над детьми, распределении имущества или алиментах, грамотный юрист поможет вам обеспечить защиту ваших прав и интересов. Многие, обращаясь с запросом "сколько стоят услуги юриста по семейным делам", сталкиваются с разнообразием цен. На практике стоимость услуг зависит от множества факторов, включая регион, сложность дела, опыт и репутацию юриста. В крупных городах, таких как Москва или Санкт-Петербург, расценки могут значительно выше, чем в регионах. Также следует учитывать, что юристы могут взимать плату как за консультацию, так и за представление интересов в суде, разработку правовых документов и последующее ведение дела. В среднем, консультация может стоить от 3 до 10 тысяч рублей, а представительство в суде – от 50 тысяч рублей и выше. Однако, решая вопрос стоимости, важно помнить, что экономия на юридической поддержке может обернуться большими затратами и утратой прав. Поэтому при выборе юриста стоит обращать внимание не только на цену, но и на профессиональные навыки, рекомендации и личный подход к делу. Ведь качественная юридическая консультация способна сэкономить время, нервы и в конечном итоге значительно снизить финансовые потери.

    Если вам требуется помощь опытного адвоката по семейным делам более подробную информацию вы найдете в этом источнике
      GeorgeSailt   16/10/2024 06:08
  • Gerardoadoks
    гы во гонят....
    - The on line casino provides a visually appealing and cellular-pleasant webpage design, enhancing the consumer experience.
      Gerardoadoks   14/09/2024 20:59
  • Tonyacoock
    Браво, ваша мысль пригодится
    Дата обращения: 11 сентября 2017. Архивировано 11 сентября семнадцатого года. ». - Рио, № 19, [url=http://autoschool-progress.kz/index.php?subaction=userinfo&user=awijegis]http://autoschool-progress.kz/index.php?subaction=userinfo&user=awijegis[/url] 1988. Архивировано 24.11.18 2003 года.
      Tonyacoock   13/09/2024 19:24
  • Seanjeold
    Вы абсолютно правы. В этом что-то есть и мне кажется это отличная идея. Я согласен с Вами.
    наша корпорация располагает обширным стажем работы в отношении продажи дипломов, и является наилучшим [url=http://masterplus2014.blogspot.com/2014/12/blog-post.html]http://masterplus2014.blogspot.com/2014/12/blog-post.html[/url] в данной сфере. наша фирма ориентирована на предоставлении автотранспортных услуг по заказу дипломов подходящего диплома разных профессий с доставкой в любой уголок страны.
      Seanjeold   13/09/2024 04:12
Security Code   

Welcome to NukeViet 3.0

NukeViet developed by Vietnamese and for Vietnamese. It's the 1st opensource CMS in Vietnam. Next generation of NukeViet, version 3.0 coding ground up. Support newest web technology, include xHTML, CSS 3, XTemplate, jQuery, AJAX... NukeViet's has it own core libraries build in. So, it's doesn't...

123host_Nukeviet
Top Hits
You did not use the site, Click here to remain logged. Timeout: 60 second
Feedback