This Season
 

How to Use POSH

How to Use POSHthumbnail
Validating your HTML is a good step toward POSH

POSH is Plain Old Semantic HTML. There's a movement afoot to bring everyone who creates Web pages into agreement to use POSH for Web page production. POSH is the building block of valid, semantic, accessible and interoperable websites.

Related Searches:
    Difficulty:
    Moderately Easy

    Instructions

    Things You'll Need

    • A working knowledge of HTML
    • A working knowlege of CSS
    • A web site
    • Nothing new is needed in this section
    1. What to do

      • 1

        To write valid HTML, make friends with the tools that validate your pages. You can use the W3C Markup Validation Service (See Resources for a link). There are also many other available validation tools, such as those in the File > Check Page menu of Dreamweaver, or in the Tools menu of the Firefox Web Developer Toolbar.

        When you validate a page, go through each error and correct each one that is in your power to change.

      • 2

        Do not use tables for layout. This is probably the most glaring semantic error you can make. Using a table for layout marks up your content as table data, a confusing semantic mismatch that carries through into every device that reads your page. Other devices that might read your page include mobile phones and other mobile devices, screen readers, braille readers, text-only browsers, and search engines.

      • 3

        It is perfectly all right to use tables to create the rows and columns you need to display tabular data. That is semantically correct.

      • 4

        Use elements and attributes for their semantic purpose. See section two for how to do this.

      • 5

        Use meaningful, semantically-based names for classes and ids. Some of the recognized semantic id names in use include header, content, sidebar, footer, and nav. The name is descriptive of the purpose.

      • 6

        Don't put any presentational markup in the HTML. Move it all into the CSS.

      • 7

        Keep your HTML markup as lean and meaningful as possible. Don't use too many classes when an id assigned to a div, a list, or a blockquote can serve the same purpose.

      How to Do It

      • 1
        With no CSS, Digital Web Magazine is organized by headings making the content clear

        Use headings semantically. The heading elements go from h1 to h6. The h1 should be the site name, the h2 should be the page or article name, and lesser headings should be used to signify other important blocks of content. Think back to when you learned to make an outline. Your heading structure should create an outline (or hierarchy) of meaningful parts of your page.

        If you disable the CSS presentation, and just look at the basic HTML, as in the photo of Digital Web Magazine with CSS disabled, you should still have a meaningfully organized page structure. This is based largely on good use of heading elements.

      • 2

        Make your tables (for tabular data only!) accessible by properly using elements like caption and th. Furthermore, use summary, scope, headers and other table attributes properly (when needed) to further clarify your table structure.

      • 3

        The em and strong elements are semantic. They imply emphasis or strong emphasis. Do not use them to make text bold or italic if the text is not meant to be emphasized. If you want to use bold or italic text as presentation, stick with the old faithful b and i elements. Even better, create some presentations CSS rules to do the trick.

      • 4

        Use the cite element to identify citations such as book, magazine, and movie titles. Cite renders in italics.

      • 5

        When you quote some one or refer to a source, use either the q or the blockquote element. Do not use a blockquote to indent text: use CSS for that.

      • 6

        Use lists properly. Lists are especially useful for navigation. What is a menu but a list of links, after all? Lists can also be used to create image galleries, dialog, to-do lists, step-by-step instructions and all sort of semantically meaningful content. There are three kinds of lists: ul (unordered list), ol (ordered list), and dl (definition list). There is a resource at the end of the article with a link to The Autistic Cuckoo that will help you understand when to use each type of list.

    Tips & Warnings

    • For tips on keeping your markup as lean as possible, read my article on using descendant selectors in CSS: http://www.ehow.com/how_2084495_use-css-descendant-selectors.html

    • In addition to the cite element, there is also a cite attribute. It is used to give the URL of a source. It can be used with a cite element or with a blockquote element.

    Related Searches

    Resources

    Read Next:

    Comments

    • Virginia DeBolt Jan 15, 2008
      Thanks for the CSS Play reference. A good resource.
    • Virginia DeBolt Jan 15, 2008
      Thanks for the CSS Play reference. A good resource.
    • Virginia DeBolt Nov 09, 2007
      There are lingering browser issues with a few aspects of CSS. When you factor in all the other benefits you get from clean and semantic HTML in every possible internet capable device, you find far more good points than bad.
    • Virginia DeBolt Nov 09, 2007
      There are lingering browser issues with a few aspects of CSS. When you factor in all the other benefits you get from clean and semantic HTML in every possible internet capable device, you find far more good points than bad.
    • Jennifer Walker Nov 08, 2007
      I didn't know there was a name for this (POSH) but it's what I try to do now that I'm familiar with CSS. The results are so much better than when tables are used, anyway! The only issue this faces is that not all browsers interpret CSS correctly :(

    You May Also Like

    • How to Be Like Posh Spice

      As one fifth of the Spice Girls, Victoria Beckham, aka Posh Spice, has what many women would call a charmed life-married to...

    • How to Make Homemade Dog Food

      Sometimes the dog food you buy in stores are not safe and to be on the safe side you will want to...

    • How to Use a Colon in a Sentence

      Colons are easy to master because they are only used in a few types of sentences. Here is where to use them.

    • How Do You Use Skype?

      Skype is a free software program that works much like most typical instant messaging programs, except that it also allows users to...

    • How to Draw a Flowchart for CSS Hierarchy

      As CSS (cascading style sheets) takes the place of repetitive HTML tags in modern website programming, it can help to draw up...

    • How to Dress Like the Spice Girls for Halloween

      The Spice Girls are the most successful girl group of all time. Each member has a distinct and iconic look. In the...

    • Posh Birthday Party Ideas

      Posh Birthday Party Ideas. Want to host a posh birthday party? Posh parties can be hosted at lavish locations or tailored to...

    • Posh Halloween Costume Ideas

      Posh Halloween Costume Ideas. One of the most popular musical groups of the 1990s was the Spice Girls. The British group consisted...

    • Semantic Barriers to Effective Communication

      Among friends, co-workers or family members, effective communication is key to maintaining good relationships. When communication fails, it is often due to...

    • Posh Curtain Draping Styles

      Finding the right posh curtain draping style for the home is a matter of taste and style. Most posh curtain draping styles...

    • Posh Hotels in Ireland

      Posh Hotels in Ireland. Ireland, with its lush green countryside and thriving cities, has become a major tourist destination. The Lonely Planet...

    • Posh Hotels in London, England

      Posh Hotels in London, England. London is one of the most popular tourist destinations in the world. Each year, travelers visit famous...

    • How to Use a Napkin at the Table

      When it comes to table manners, there are so many subtle rules on proper etiquette. What to do with your napkin is...

    • How to Recover Old Web Pages

      Old websites don't die. They don't even fade away. Instead, many of them wind up stored in various nooks and crannies of...

    • How to Write "Pillows" in Chinese

      Comments. Video Transcript. Ok now let's come to this word pillow zhen tou. Ok zhen tou, tou is also a toneless character...

    • How to Write a Check

      In the era of ATM check cards, online bill paying and credit cards, the art of writing a check may be lost....

    • How to properly write a formal letter of resignation

      There comes a point in virtually everyone's career when you need to leave a job. It's customary and business-like to write a...

    • Differences Between HTML 5 & HTML 4

      Since the launch of HTML 4 in 1997, the continued evolution of the Web has brought about a growing, diverse and complex...

    Follow eHow

    Related Ads