Home > SSW Standards > Templates > SSW Web Template - Test Visual Studio .Net
New web pages are to be consistent with the SSW Template. All new pages must also abide by the rules set out in SSW Rules to Better Websites. Please also read the standard on SSW Branding before you create a new page...
This document has pretty good HTML (as per Jelliot). Note these rules:
Add this Include file for all SSW Products:
Verdana is our standard Web font. This text is written in Verdana. By using our ssw.css you will automatically be using this font. Dont use the font tags eg. <font face="Verdana, Arial,Helvetica, sans-serif" size="2"> Instead this line is used in our css font-family: Verdana, Arial, Helvetica
Formatting will not be in a HTML file, as an example this will be in the CSS, not the HTML file style="{font-weight: bold; color: #ffffff; background-color: #7d7d7d}
When you have large blocks of text, it's imporant to break up the page to make it visually appealling. Using text boxes like this is a good idea... eg. <table class="clsSSWTable" cellspacing="2" cellpadding="2" summary="Formatting Table" align="right" style="{width:40%;}">
When you have tables on your pages use the ssw colours ie. a red border (as below). Don't specify these colours in your HTML
BAD <table bgcolor=white cellpadding=0 cellspacing=0 width="100%" border=0>
GOOD <table class="clsSSWTable" cellspacing="2" cellpadding="2" summary="Tips On How to Show a Table" style="{width:90%;}">
Don't specify anything your <tr> or <td> tags
BAD <tr bordercolor="#cccccc" bgcolor="#cccccc">
GOOD <tr>
The heading is in a div tag ie. <div id="topTextShadow"> Note: We no longer use the Adobe Photoshop template for the Heading, located at //roo/ssw/ImagesPsd/hd_short.psd *** This image to be deleted ***
Orders of rules/lists often change. If you use named anchors like "#13" they become meaningless when the list order changes. Always use a meaningul anchor name.
When you have tables on your pages use the SSW colours i.e. a red border (as below). Just include the Table style by adding "class="clsSSWTable"" into the Table tag.
When you have tables that are displaying data (like a DataGrid) then use this color scheme.
Always write code in the CODE tag...
BAD <font face="Courier New, Courier, mono" size="2">
GOOD <code>Code in Here</code>
Option Explicit Function Isloaded() End Function
You will always close a lot of tags that offically need closing eg. <p>, <li>. You also may want to close tags such as <br/>, <img/> as it will make it easier to go to XHTML in a couple of years.
Now that we are using a .NET template there are a couple things you will be aware of.
<%@ Register TagPrefix="SSW" TagName="incBottom" Src="/ssw/Include/incBottom.ascx" %> <%@ Register TagPrefix="SSW" TagName="incTop" Src="/ssw/Include/incTop.ascx" %>
Now you can call the header template:
<SSW:INCTOP id="Inctop" runat="server" PageTitle="SSW Template"></SSW:INCTOP>
At the end of your page you call the footer that will close the table structure and put the footer image on the page:
<SSW:INCBOTTOM id="incBottom" runat="server"></SSW:INCBOTTOM>
<SSW:INCTOP id="Inctop" runat="server" PageTitle="Page Title Here"></SSW:INCTOP>
<%@ Page Language="vb" src="Login.aspx.vb" AutoEventWireup="false" Inherits="SSW. LoginMaintancePage " %>
Public Class LoginMaintancePage
The Nav Bar is edited using by altering the appropriate table in SQL Server on Joey. Then you need to use a special web page on Seal to generate a new static text file from this table.
You will acknowledge any contributers in accordance with standard convention. If you are quoting another author directly you will use direct quotes - for example: As Cameron Shaw says in the SSW Web Template "You will acknowledge any contributers". OR, if you are just referring to another persons idea don't quote the author directly, but mention that it is his idea - for example: Adam Cogan recommends on his site (www.ssw.com.au) that every coding company will have a series of rules and standards that every developer must adhere to." Following this standard will ensure we don't get accused of plagiarism.
Finally if you are not sure then see www.w3.org