Target audience: Site Administrators, Site Managers, Site Editors
This article covers the basic supported HTML tags that you can use to publish content in the Web Management System.
To learn more about HTML, W3Schools provides a comprehensive tutorial.
In this article:
HTML tag | Example |
---|---|
<h2> </h2> |
Don't use headings to make your text look big or bold. Use them to indicate the structure of the page. |
<strong> </strong> | |
<em> </em> | |
<blockquote> </blockquote> | |
Define an anchor on a page:<a name="anchorname"></a> Link to an anchor within the current page: <a href="#anchorname">...</a>
Refer to any anchor from any page on your site, providing you have given the anchor a unique name, e.g., don't have two anchors named "forms" | |
Line break<br> | A line break <br> inserts a new linebut should not be used as a substitute for paragraphs. |
Horizontal rule <hr> | A horizontal rule is a line that is 1 pixel in height. Use this tag sparingly to avoid cluttering up pages. |
HTML tag | Example |
---|---|
Ordered list<ol> See also Other WMS classes | |
Unordered list <ul> | |
Definition list <dl> | |
Grid<ol class="grid"> Enables lists to be used for grid displays |
HTML tag | Example |
---|---|
Align: left Align: right Align: center | |
Right to left rendering (for non-Roman text) For more information, see Support for non-Roman characters in the WMS. |
To apply a table class, add the class directly in the Source code.
Class | Example |
---|---|
zebra (default table style) | |
no-zebra | |
zero | |
tablesorter Note: In order to use this class, the table must have a header row. | If you are using HTML to create your table, please ensure that the row containing your header cells <th> is placed inside the table header <thead> tags, not in the table body <tbody>. The table code should look like this: <table class="tablesorter"> |
Collapse |
Default table style (zebra) without collapse class: with collapse class: |
Beyond standard HTML elements, the WMS also provides custom classes designed for a variety of uses. These classes are tested across a variety of browsers, operating systems, and devices.
Class | Example |
---|---|
highlight-inline
Sets a yellow background | |
highlight-icon
Add an information icon over a yellow background. Use sparingly to make key pieces of text stand out. | |
note
Wraps an element in a yellow box with a red dotted border. | |
box
Wraps an element in a box with a 1-pixel border. | |
enhance
Adds graphical styling to the numbers in an ordered list. | |
pull-quote
Lifts a key quote and sets it off from the surrounding text. The span tag is embedded within the paragraph, where it wraps around the text to be pulled. |
This is a non-exhaustive list of HTML Do’s and Don’ts in the McGill Web Management System (WMS).
In order to maintain both the integrity and accessibility for visitors of the overall design of web pages published through the McGill WMS, we strongly advise following the guidelines listed below. Use of unsupported tags may result in broken pages; we reserve the right to remove these tags from web pages in the McGill WMS or replace them with accessible tags.
<p></p>
)<br>,
which just signifies a line break.)<strong>
and <em>
in place of <b>
and <i>
<p>
tags<ul>
and <ol>
in <p>
tags<font>
, <u>
, <body>
, <blink>
, <head>
, <link>
, <title>
); they will be filtered out by the system (See Unsupported tags below.)<u>
tags: the standard web convention is to reserve underlining for links ONLY.)<big>
tags; these MUST be removed (use <h2>
or <h3>
tags, <class="smalltype">
for smaller type, or <strong>
or <em>
tags; nothing else is allowed)
The following are tags that are NOT to be used in web pages published in the McGill WMS. Many do not meet accessibility standards, and some have been replaced by newer standard tags (e.g., <strong>
is now recommended rather than <b>
).<blink>
, <font>
, <body>
, <head>
, <link>
, <title>
, <center>
, <marquee>
, <b>
, <i>
, <u> <!-- -->