Global (BD) IT Solution

How to mark up subheadings, subtitles, alternative titles and taglines

If you don’t already know, the hgroup element is obsolete in HTML5. Advice is now provided in the HTML spec on how to mark up subheadings, subtitles, alternative titles and taglines using existing and implemented HTML features. Russian Translation of this article: Разметка для подзаголовков by Frontender magazine Advice for marking up subheadings and the like The important question for developers is: How do I mark up these buggers??? ... Read More

The main element

Recently, <main> was formally added to the W3C HTML specification. Now that the dust has settled, it’s about time we dive in to find out where and when it’s appropriate to use <main>. Let’s get started. ... Read More

Correct Way in Adding JS/CSS to a Block in Drupal 7

In Drupal, drupal_add_js() and drupal_add_css() are great functions for adding JS/CSS to the module or theme layer. However, if you do this inside of the ‘#markup’ call in Drupal 7, you are doing it wrong. This becomes obvious when you turn block caching or anonymous page caching on, because the JS/CSS won’t be included on the page. ... Read More