|
||||||||||||||||
|
Web Services
|
||||||||||||||||
HTML/CSS GuidePage Template | Headings | Paragraphs and Line Breaks | Bold/Strong | Italic/Emphasized | Pullquotes | Blockquote | Horizontal Rule | Lists | Tables Page TemplateAll pages should begin with a <title> tag and an <h1>: <title>PAGENAME - DEPARTMENT: Antioch University New England</title> HeadingsThis is an H1 - only used for page headingThis is an H2 - can be use as a subheadingThis is an h3 - usually used as a paragraph or sub-subheadingCODE: <h1>This is an H!</h1> Paragraphs and Line BreaksThis is a paragraph with a top margin of 0. Most paragraphs have a default top margin of about 15 pixels, but when you want a paragraph directly below a heading tag you need to apply the class="top0" attribute. CODE: <p class="top0">Paragraph text goes here.^lt;/p> Regular paragraphs have a blank line above and below the text. Lipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation. CODE: <p>Paragraph text goes here.^lt;/p> And sometimes you need CODE: <p>And sometimes you need<br> Bold/Strong TextThis is an example of bold/strong text. CODE: <strong>Text displayed as strong also known as bold</strong> Italic/Emphasized TextThis is an example of italicized/emphasized text, which should only be used for titles. CODE: <em>Text displayed in italics.</em> Pullquotes“This is a pullquote that spans the full width of the page. - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.”
CODE: <div class="pullquote">“PULLQUOTE TEXT GOES HERE”<span class="pqauthor"> — AUTHOR, TITLE</span></div> If you do not want the author cited, remove this part of the code: BlockquoteLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. CODE: <blockquote>BLOCKQUOTE text goes here</blockquote> Horizontal RuleThe orange lines above and below are called horizontal rules. CODE: <hr> Lists (Ordered and Undordered)Unordered/Bulleted ListThis is an example of an unordered list with three list items. You can add more items by repeating the line of code with the <li> tags:
CODE: Ordered ListThis is an example of an ordered list with three list items. You can add more items by repeating the line of code with the 'li' tags:
CODE: Space between List ItemsTo add more spacing between lite items add class="margin05" or class="margin10" to the <ul> or <ul> tag.
CODE: TablesHTML tables allow you to arrange rows and columns of data. Since HTML has no other way of aligning text and images, tables have also been used to create complex page layouts with graphics, text, and other elements. For our purposes, tables are primarily used to display data or columns of text. The <table> tag should include the following attributes and values:width="100%" (optional) class="tbl3" border="0" or border="1" <table border="1" class="tbl3"> <tr valign="top"> <td><strong>Name</strong></td> <td><strong>Height</strong></td> <td><strong>Sport</strong></td> </tr> <tr valign="top"> <td>Jill</td> <td>5'6"</td> <td>Soccer</td> </tr> <tr valign="top"> <td>Jenn</td> <td>5'9"</td> <td>Track</td> </tr> <tr valign="top"> <td>Joanne</td> <td>5'2"</td> <td>Hockey</td> </tr> </table> The<table> and </table> tags open and close the table. The <tr> and </tr> tag enclose each row and the <td> and </td> tags open and close each cell within the row. Most of our tables have cell contents aligned to the top of the cell. The valign attribute is used within the <tr> or <td> tags to define vertical alignment within the cell (e.g., <tr valign="top">). By default, cell contents are placed in the middle of the cell, but valign can be set to "top". This is what the table looks like:
| ||||||||||||||||
© 2007 Antioch University New England, 40 Avon Street, Keene, NH 03431-3516 800.553.8920
Last Updated: 11/10/08
|
||||||||||||||||