| Monash home | About Monash | Faculties | Campuses | Courses | Contact Monash |
| Staff directory | A-Z index | Site map |
Using HTML tags properlyWhen used well, HTML tags provide information about the structure and meaning of content chunks on a page. However some web designers use HTML tags just for visual effect. These two approaches are called "structural" and "presentational" markup. Presentational markup: Structural markup: Only graphical browsers will display text wrapped in the <b> tag as bold. Other types of browsers treat this text the same as other text on the page, so the effect of bolding to draw attention is lost. On the other hand, using the <strong> tag draws attention to the text wrapped inside it on all sorts of browsers. For instance, screen readers will read the text in a louder or different voice. Here is another example: Presentational markup: Structural markup: In this example, increasing the size of a page heading by using the Guidelines for using HTML markupUse heading tags to show the document structureHeadings should be properly nested. There should only be one Use ordered and unordered lists for numbered or bulleted lists
The markup for this list looks like this:
Different visual formatting effects can be applied to unordered lists through the use of stylesheets. See applying styles to content. Use the table header element for header rows in data tablesFor examples of how to use HTML tags for tables, see designing tables. Highlight text with <em> or <strong>In graphical browsers, emphasis is generally displayed as italic text This is highlighted text using emphasis. The markup for this is shown below:
and strong is generally displayed as bold. This is highlighted text using strong. The markup for this is shown below:
Do not use HTML tags for visual effect aloneFor example:
Resources |