Each of the US States Listed Inside Option Tags for HTML Forms

If you’re working with all the US states and you need to list all of them in a form, download the following Gist from GitHub: https://gist.github.com/code-warrior/acbd72bb34cc64b8137b#file-states-php It’s a self-submitting form (in PHP) and defaults to the GET method for posting.

The Style Keyword: The Difference Between Tag and Attribute

Introduction The style keyword in HTML is special, because it’s both a tag (<style>) and an attribute (<p style=”color: red;”>). It’s easy to confuse the two, as each represents very different ideas. The style Tag When used as a tag and without the scoped attribute (discussed below), it must be included as a child of […]

Excellent Opportunity to Use The <abbr> Element

I was recently searching for the contact info of a colleague. The search results included the division in which the employee works. The listing for the second result, highlighted with a red circle, is “PLT MNTC FM.” Exactly—I don’t know what it means, either. This was a perfect opportunity for the webmaster to use the abbreviation element […]