Category Archives: HTML5

How-to for HTML5

How can I use CSS:before to add new line

CSS logoHow can I use CSS:before to add newline before an element???

That is the question that I researched today. My answer was semi-satisfying. I found that you can, and can’t do it … kinda.

What does that mean? Well, the intuitively obvious ways don’t work. The CSS method I did find will work on all browsers except the wonderful IE browser. What else in new! Love you IE …

In my situation, I wanted to customize where a link (<a>) was sitting. It was embedded in generated text I couldn’t touch. I wanted the link on the next line to highlight its existence.

I tried several things that didn’t work and wasn’t surprised by the results:

  • does not work, not a surprise.
  • doesn’t work, the content is processed as text, not as a tag.
  • failed as badly as the others … not a surprise.

What surprised me was the following works, on browsers other than IE:

There is no CSS solution, but, there is a jQuery solution. Try jQuery:

  • $(“<br/>”).insertbefore(“a”)

10 HTML5 Development Links You Should Know

HTML5 logoGet a jumpstart in your HTML5 development. You can reinvent the wheel, or check out these great sites.

  • – html5shiv.js will help make your code be backward compatible with older IE browser. Older browsers don’t recognize all html5 tags. html5shiv.js creates these tags and improves backwards compatibility.
  • – a javascript library that detects HTML 5 and CSS3 features that are available in a browser. Using this library, you can tailor your site to adapt to browsers that do not support all HTML 5 and CSS3 features you would like to use, allowing your site to degrade smoothly.
  • – HTML5boilerplate offers a framework for development with HTML5. No, it does not give you a massive infrastructure to block out areas of the page. html5boilerplate gives you the framework file structure, normalized css, modernizr,jquery, google analytics, remind the visitor to upgrade browser, and more. Remember to look at the preconfigured options that are available at Initializr.com … classic, responsive and bootstrap, they may even give you a bigger edge. Continue reading

Symbols You Might Find Useful

If you find need to enter some math equations, logical statements or simply useful symbols, you may find the following symbols helpful.

Frequently Used Symbols


&bull;


&#9744;


&diams;


&#8227;


&#10003;


&#10004;

&#10007;



&#10008;


&#9744;


&#9745;


©
&copy;


&trade;

®
&reg;

¢
&cent;

£
&pound;


&euro;

Continue reading