10 Semantic Tips

10 design tips for a semantic website

  1. Standardize objects – Make things that are similar use the same class tag.
  2. Use comments – Make sure you and anyone else looking at the code understands what is going on.
  3. Semantics can be described as – describing with out specifically saying what it is.
  4. You have to be sure there is only one of something on a page to use ID tag instead of Class tag.
  5. If you have two tags on an object, the second one will override the first.
  6. Part of being semantic is keeping your code clean.
  7. Screen readers read from top to bottom according to the code.
  8. You should use labels on your text fields even if you will kick it off the page later.
  9. You can use a tag multiple times and style it differently by specifying the area of the code IE:

h4 {   color: red; } .p3 h4 {   color: green; }

Making the only difference being it is green instead of red, in the p3 class.

  1. <small> is meant for extremely small text such as copyright info.

dewantara-academic