There are in total nearly a hundred HTML tags with good ones as well as bad ones in terms of XHTML. In the creation of a template or theme, after designing for the overall layout, artistic feel as well as the entire set of visual elements, the designer will be preparing the ready-to-use styles needed for common content tags such as the headings <h1>, <h2>, <h3> and <blockquote> and so forth, even though they may not have been used yet in the design. This article tries to be a rough guide on what tags to be styled before hand.
Here’s a shortened list for the most common scenario:
- <a>, the hyperlink, of course.
- <acronym>, usually for acronyms and abbreviations such as HTML. Industry standard is to style it with a dotted border at the bottom. However, <acronym> tag has fallen out of favor of HTML5, use <abbr> instead.
- <cite>, author, <q>, inline quotations, <blockquote>, large paragraphs of quoting which is one of the most necessary tags that need to be styled before hand.
- <button>, you may or may not prescribe a global visual style for all button tags across the template
- <caption>, table caption / title, centered and bold by default, come out with a better one in case the content contains a lot of tables. <table>, <tr>, <th>, <td>, <thead>, <tfoot>, <tbody>, â€¦ for table styles
- <code>, for templates dealing with code samples.
- <dfn>, for definition terms, frequently used with a lot of inline terms and definitions.
- <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, content headings.
- <img>, content image styles.
- <fieldset>, form fieldsets. <legend>, form fieldset title.
- <form>, forms.
- <input type=”text“>, <input type=”checkbox“>, <input type=”radio“>, <input type=”file“>, <input type=”password“>, <textarea>, input controls of forms.
- <label>, form field labels.
- <li>, <ol>, <ul>, ordered list styles and unordered list styles.
- <p>, paragraph styles.
- <select>, <option>, <optgroup>, select list styles.