Compatiblity with PC Browsers - Tips for MSNTV Users: |
PROPER CODING:
- Put this tag first, before the <html> tag:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> (or use 3.2 until you have upgraded each page.)
- Always nest tags properly:
- Correct: <font size="4"><b>Text here.</b></font>
Incorrect: <font size="4"><b>Text here.</font></b>
- Always use lower case letters instead of caps.
- Correct: <font size="4"><b>Text here.</b><font>
Incorrect: <FONT size="4"><B>Text here.</B></FONT>
- Always use quotes around all values (that which follows the equals sign):
- <font size="4" color="white">
<body bgcolor="black" text="yellow" link="blue" vlink="orange" fontsize="small">
|
TAGS FOR THE HEAD:
Use both of these tags: <meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="Tue, 01 Jan 1980 1:00:00 gmt"> |
TAGS FOR THE BODY:
TABLES:
- Width: always specify width in pixels, not percents.
- If you want the page to look the same on computers as it does for MSNTV:
a) Use width="544" border="0" and put the whole page within this table; b) Center the table, using
- <div align="center"> </div>
- Always make hyperlinks within a table inside the td tag:
- <table> <td> <font color="black"> <a href="url of page">
Page or Image Name</a> </font> </td> </table>
- Empty td tags collapse. Use the following to fill the td:
- <td color=??>& nbsp;</td>
Be sure to delete the space between the & and the nbsp;. This code will put a "space" (content) inside the td.
- Add a bordercolor attribute to the table tag:
- <table bgcolor="#ccccff" border="5" bordercolor="#ccccff">
|
CENTERING TAGS:
For large items on page:
- Best: <div align="center"> </div>
Older: <center> </center>
- For images and text in a table cell:
a) Horizontal alignment: align="center" or "right" (default is left) b) Vertical alignment: valign="top" or "bottom" (default is middle)
|
MSNTV BUG WARNING:
Computers will not see this JS; put it right after the body tag: <script>document.write("<") !-- put your warning here -->
NOTE: no spaces in the first line and then one empty space before the close of the hide tag. |
COMMENT TAGS:
Use proper comment tag form:
Correct: <!-- comment here --> Incorrect: <5> |
IMAGE TAGS:
- Always use the proper file extension for an image: jpg, gif, etc.
- Always include height and width of the image in pixels.
- Always add a border attribute.
Make border="0" if you do not want computer browsers to show a default border around the image.
- Always add alt="description" to image tag. Make the description short.
- Always add a line break (<br>) after an image, even though the image is full screen width for MSNTV (544 pixels).
Example image tag: <img src="url of image" height=(pixels) width=(pixels) border="0" alt="Short Description of Image">
|
SWF FILES:
- Use embed src (not img src) tags for swf files.
- Use the correct .swf or whatever extension. Do not use .gif.
- Looping #1: Do not use the attribute loop="false" unless you don't want it to loop.
- Looping #2: Do not use swf files as image links, because they will not loop, either.
*NOTE*: Some SWF files are designed NOT to loop. |
PROPER USE OF SOUND TAGS:
- Use both sound tags if computer viewers will see page.
<noembed><bgsound src="midi-url" loop=2></noembed> <embed src="midi-url" autostart="true" hidden="true" loop="4"></embed>
- Loop must be expressed as whole numbers more than 1 for computer browsers. Do not use -1 (minus 1).
- NOTE: The embed tag must be closed.
- To put more than one song on a page so viewers can click on them, leave the sound tags off.
Use <a href="url-of-song">Name of Song</a> for each song.
|
REDIRECT CODES:
Use a clickable new url, with a message such as: "This page has moved! Please click on the following url:" <a href="url of new page">Complete URL of New Page or Page Name<a> |
TEXTAREA BOXES:
- With computer browsers, text boxes are always "default" grey with black text. (The default is different for each user and their setting's.) The boxes can be resized.
- With MSNTV, you can make them different colors.
Example Sizes: Width - 10 cols equals 87 pixels. Multiply accordingly. Use 60 cols for a box of 522 pixels wide and center it.
|
COMPUTERS CAN NOT "SEE":
Block Spacers; X or Y Speed; "Fixed" Backgrounds; MSNTV's Internal "Rom border buttons"; Page Logos (in body tag); "nohighlight" Attribute in Hyperlink Tags; Some types of Javascripts and DHTML, such as JS used for scopes; and Audiocopes.
MSNTV can not "see" many types of Javascripts and DHTML that computer browsers can. |