W3 3.2n
4.0n
NS 3.0n
4.0n
IE 3.0n
4.0n
TV 1.2y
2.1n

<SIDEBAR>...</SIDEBAR>

Description

The WebTV interface defines the <sidebar> element to set up an area, called the sidebar, on the left side of the screen. Viewers can use the arrow buttons on the remote control to move between selectable items in the sidebar and items in the content area.

The sidebar doesn't scroll with the rest of the content of a web page.

All HTML elements within the <sidebar>...</sidebar> elements will be rendered in the sidebar area. The <sidebar>...</sidebar> pair should be placed outside the body of the web page, between definitions for the head and the body. Other elements within the a web page display in the content area, to the right of the sidebar. Note that only the first <sidebar> element in the page is respected. Additional <sidebar> elements are ignored, and their content will be rendered as part of the content area.

Although the <sidebar> element will be ignored by other browsers, the content defined within the <sidebar>...</sidebar> pair will not be ignored. The sidebar content will be displayed in other browsers at the top of the body of the web page.

Many times, sidebars in the WebTV interface have a colored background. To provide a colored background for your web page, create a table the same size as the sidebar and set the bgcolor attribute for that table.

Attributes

W3 3.2n
4.0n
NS 3.0n
4.0n
IE 3.0n
4.0n
TV 1.2y
2.1n
ALIGN
Use the align attribute to set the alignment for the content of the sidebar. Possible values are center, left, and right. The default value for align is left.
W3 3.2n
4.0n
NS 3.0n
4.0n
IE 3.0n
4.0n
TV 1.2y
2.1n
WIDTH
Use the width attribute to specify the width of the sidebar. The value for width can be a whole number of pixels or a percentage of screen width. The default value for width is 0.

Examples

Source
<SIDEBAR width="20%">Sidebar text goes here.</SIDEBAR>
 
Result
Sidebar text goes here.
Statistics