I’m still amazed at how often we’re passing up the chance to use HTML5 tags in our documents. It’s hard to break old habits, I know, but it’s time to dump the mountains of DIV tags and get with some semantic markup. There are several awesome tags to start using in HTML5, but I wanted to hit six good ones to start people off.
You all remember parts of speech, right? Nouns, verbs, adjectives, pronouns, and so on from elementary school, right?
Well, some of you do.
- Code is easier to read for the developer and those that follow.
- Structure allows for future additions and creates a pattern for all future work.
- Code is testable
This comes up every few months on my various teams, so I decided to compile a nice, simple list of them for easy reference.
Advantages to shorthand:
- Easier to read
- Saves time
- Saves bytes
I recently ran a training session with my team on how to loop through arrays. The initial concept was how do you build a function that can parse out an array, with the array and the function separate items (meaning you can drop in a different array and use the function as-is).