Week 8 homework
This week we were asked to post a screenshot of our code and discuss how we’re using semantic markup and good usability techniques to increase our search engine optimization. According to the Web Style Guide, “Semantic markup is a fancy term for common-sense HTML usage: if you write a headline, mark it with a heading tag (<h1>, <h2>). If you write basic paragraph text, place the text between paragraph tags (<p>…</p>).” In other words, these tags indicate hierarchy to search engines and create a logical structure for anyone who might be reading your code.
Below is the screenshot of my code. In it, h1 is my logo, h2 is the main heading on my landing page, h3 are the main headings on my inner pages, and h4 are subheads. Another way I maintain logical document structure is by using an external Cascading Style Sheet and putting my JavaScript into external files. By doing this, my page content is still near the top where it is more likely to be found by search engines. Search engines can also find me more easily through the key words and phrases in my meta tags.
The Web Style Guide can be found:
http://webstyleguide.com/wsq3/5-site-structure/2-semantic-markup.html