![]() |
|
![]() |
| |
||
| CSU Home Search CSU CVMBS Home Site Index Students WebCT |
C V M B S W e b S
i t e S t y l e G u i d eHTML/CSS Coding |
|
This is an alphabetized listing of HTML tags and vocabulary unique to our design. Block-level elements Due to a bug in how Netscape applies CSS code, you should avoid nesting one block-level element inside of another. This will cause Netscape to ignore the CSS font instructions starting at the next block-level element. An example of this can be found in this document under Lists. Body tag <BODY> Bottom links <p class="links" align="center">
... </p> Centering If you are centering a single paragraph use the align attribute on the paragraph element. Correct: <p align="center">text</p> If you have multiple paragraphs to center use the align attribute on the div element. <div align="center"> Code Nesting Incorrect: <p><strong>text</p></strong> Comments Comments are to be properly indicated by the following code: <!- - Note: There should not be any spaces between the two dashes. (They are there for display purposes in this document only.) Also, there should not be more than two dashes starting or ending the commented area. Contact Information: Only one contact e-mail address should be listed at the bottom of a page. This should be the e-mail address of the person ultimately responsible for the content of the document, not the coding of the document. Date Stamp Set Date and Time Stamp Javascript variable in the HEAD tags. Copy and
paste the following code between the HEAD tags. NOTE: In your final code there should not be spaces between the two hyphens at the beginning of the "time stamp . . ." line. Those spaces are there in this document for readability purposes only. If those spaces are left in your code, it will not work. Equal-signs in attributes Filenames
Heading <h1>Heading</h1> HR width at bottom:<hr width="25%"> Hyperlinks Correct: <a href="/images/csu_logo.gif"> If the URL for a CVMBS page ends in index.html or index.htm do not include the filename. Correct: <a href="http://www.cvmbs.colostate.edu/anatomy/"> Test all URLs to an outside (non-CVMBS) pages before linking to them. Use the URL given by the site. This may not be the URL you end up at once the page is displayed. If you are linking to a frames-based document. Link to the main URL. Do not link to an internal page that displays the other site without its frames. If a URL ends with the domain name or a directory name, include a trailing forward slash (/). Incorrect: http://www.microsoft.com or
http://www.cvmbs.colostate.edu/anatomy Internal hyperlinks must be around something. <a name="junk"></a> is not
valid. Lists <li> ... </li> A problem has appeared with the font changing to a serif font in the first paragraph after a list. To prevent this from happening do not embed a list within a paragraph. | |
|
Incorrect: <p>text |
<p>text</p> |
|
To double-space a list (done on lists containing multi-line items) use the following code: <li><p> See Page Design: Lists for when to use this. metadata <meta name="description" content ="Text describing
the content of the page."> Minor pages Page Footers Paragraphs <p> ... </p> <title></title> Coding <title>CVMBS - Descriptive Text - Colorado State University</title> Table nesting Note: This is very tedious the first few times. Use pencil and paper
to sketch out what you want the final layout to be before attempting to
code it. Top level pages |
|
|
Main | Content | Graphics | CVMBS Web Logos | Page Design | Color Palette For feedback regarding this site, contact Jill Lenz at
jill.lenz@colostate.edu.
|