This action might not be possible to undo. Are you sure you want to continue?
All rights reserved Legal Disclaimer - ESD Warning - Privacy Statement
Quick links Basics Examples Questions and Answers HTML Help Basics Tables allow the user to create sections of web sites neatly divided, such as the page you are viewing now, we have one section (the blue section) to the right which allows you to navigate by using the side of the screen while still viewing the page. This also allows you to divide up into columns almost like a spreadsheet, allowing you to have columns and rows to organize your data better or to display a chart online (such as below examples). HITS MONTH TOTAL INCREASE 324,497 January 1998 436,699 February 1998 112,172
The above chart was done with the below source code. <table border="1"> <tr> <td><strong>HITS </strong></td> <td><strong>MONTH</strong></td> <td><strong>TOTAL INCREASE</strong></td> </tr> <tr> <td>324,497</td> <td>January 1998 </td> <td align="center">-</td> </tr> <tr> <td>436,699</td> <td>February 1998 </td> <td align="center">112,172</td> </tr> </table>
however. The next three lines are similar to what was explained above. Examples Example Example Example Example Example Example 1 1 2 3 4 5 6 7 8 9 <table border="0" cellpadding="6" cellspacing="0"> <tr> <td bgcolor="#FFFF00">1 </td> <td bgcolor="#00FF00">2 </td> <td bgcolor="#00FFFF">3 </td> </tr> <tr> <td bgcolor="#FF00FF">4 </td> <td bgcolor="#FF0000">5 </td> <td bgcolor="#0000FF">6 </td> </tr> <tr> 1 2 3 4 5 . "0" would be no border. </table> This statement is to end the table without transforming the remainder of the document into the table. </tr> This statement is telling to end the first row. the strong statement is making the text bold. <td align="center">-</td> This is similar to the 2nd line. <tr> This is the statement to start the first row. The same applies for the next two lines. The next six lines are similar to what was explained above.What does it all mean? <table border ="1"> This statement is telling how wide you wish the border to be. the align="center" is the statement to tell it to center the text in the middle of the cell. <td><strong>HITS</strong></td> The <td> statement is to start the first column and </td> is to end the first column.
Example 2 The above image is actually three different images put in a table that is at 100% of the section of the screen. <table border="0" width="100%"> <tr> <td><img src="http://www. If this was 1 you would see white in between the cells. the bigger the number the more space there would be.computerhope. as explained in basics.computerhope.com/title.com/ccguy. The bgcolor="#FFFF00" is telling the browser what color to display the cell as.<td bgcolor="#008080">7 </td> <td bgcolor="#FFFF00">8 </td> <td bgcolor="#00FFFF">9 </td> </tr> </table> <table border="0" cellpadding="6" cellspacing="0"> In this statement it is first telling the browser that it does not want a border by declaring border="0". This is telling the browser that the table needs to be 100% of the open screen (please take into consideration on . For more on colors.gif"></td> <td><p align="center"><img src="http://www.gif"></p> </td> <td align="right"><img src="http://www. view our color page. in this case.com/ccguy. Cellspacing="0" is telling the browser to display space between the cells. you also could just write in yellow. #FFFF00 would be yellow.gif"></td> </tr> </table> <table border="0" width="100%"> The most important part of the above is the first line with the statement width="100%". Below is the source code used for the above example. also it is declaring that it wants the cells to have a little space by declaring cellpadding="6" this would make the cells bigger than they normally would be.computerhope. <td bgcolor="#FFFF00">1 </td> Td is declaring a new cell.
This question is asked frequently where someone wants to post images and text right next to each other. Windows 3.x. where we give examples. complete walkthroughs. game news. Helping you with software questions with such applications as DOS. one of the most advanced free web sites on the Internet. enhancements. and much more.000+ pages of free. providing cheats for tons of games. CD-ROM. helping you with all your computer related issues.gif"></td> <td valign="top">STATEMENT SHOWN ABOVE </td> </tr> </table> <td valign="top">STATEMENT SHOWN ABOVE </td> The most important line of the source code. Example 3 Welcome to Computer Hope. the below source code shows how we did the above. We condensed our statement to make it look less intimidating. Helping you with hardware questions with hundreds of technical pages of useful information with such hardware as printers. Unix. and more. right. it will automatically adjust to the full amount of the viewer's screen. Over 6. and a lot more. scanners. to have the appearance of a news paper. modems. Windows 95. <table border="0"> <tr> <td><img src="chguy. Helping you with such topics as HTML. Plus Pack. sound cards. Helping you with games. Example 4 Computer Hope <table border="10"> <tr> .the above example it is 100% of the table currently in) this is good for the fact that even if someone displays your page in a bigger/smaller resolution or screen. left. frequently updated information at your fingertips and all thanks to Computer Hope. zip drive. source code. valign="top". providing step by step instructions on conquering your favorite game. bottom. this can also be middle. tips. Adobe Photoshop. or center. tells the browser to align the starting of the text at the top of the image. and much more.
com/cooltrik. which you could link to another page just as we did above.com">ComputerHope</a></td> <td bgcolor="#00FFFF">Main page linking to all pages</td> <td bgcolor="#00FFFF"><strong>3912</strong></td> <td bgcolor="#00FFFF">Feb 98</td> </tr> <tr> <td bgcolor="#00FFFF"><a href="http://www. Example 5 WEB PAGE DESCRIPTION HITS MONTH Computer Hope Main page linking to all pages 3912 Feb 98 Cool Tricks HTML cool tricks 2514 Feb 98 <table border="0"> <tr> <td bgcolor="#0000FF"><font color="#FFFFFF"><strong>WEB PAGE</strong></font></td> <td bgcolor="#0000FF"><font color="#FFFFFF"><strong>DESCRIPTION</strong></font></td> <td bgcolor="#0000FF"><font color="#FFFFFF"><strong>HITS</strong></font></td> <td bgcolor="#0000FF"><font color="#FFFFFF"><strong>MONTH</strong></font></td> </tr> <tr> <td bgcolor="#00FFFF"><a href="http://www.computerhope.htm">Cool Tricks</a></td> <td bgcolor="#00FFFF">HTML cool tricks</td> <td bgcolor="#00FFFF"><strong>2514</strong></td> <td bgcolor="#00FFFF">Feb 98</td> </tr> </table> .computerhope.<td><a href="http://www. giving it the appearance of a button.computerhope.com">Computer Hope</a></td> </tr> </table> <table border="10"> This button effect is very simple by just making border="10" this makes the border 10 width.
<a href="" onmouseover="document. <form>Change the background color: <select name="backGround" size="1" onChange=(document.value)> <option value="000000">[Black] <option value="730200">[Dark Red] <option value="231800">[Brown] <option value="044302">[Dark Green] <option value="0D09A3">[Dark Blue] <option value="444444">[Gray] <option value="FF0400">[Red] <option value="EFE800">[Yellow] <option value="05EF00">[Green] <option value="0206FF">[Blue] <option value="AE08EF">[Violet] <option value="FF8C8A">[Mauve] <option value="FFCCCC">[Peach] <option value="FFCC99">[Orange] <option value="D5CCBB">[Tan] <option value="DDDDDD">[Light Gray] <option value="FBFF73">[Light Yellow] <option value="7CFF7D">[Light Green] <option value="A6BEFF">[Light Blue] <option value="FFFFFF" selected>[White] </select></form> Your own prompt This allows the person viewing your page to prompt themselves.bgColor='coral'">u</a> <a href="" onmouseover="document.selectedIndex].bgColor='teal'">d</a> <a href="" onmouseover="document.bgColor='brown'">r</a> <a href="" onmouseover="document. Click here to view demo page.bgColor='almond'">o</a> <a href="" onmouseover="document.bgColor='olivedrab'">n</a> <a href="" onmouseover="document.options[backGround.bgColor=backGround.bgColor='black'">color!</a></h2> </center> Another Choose your background Instead of using links this example uses a forum drop down menu that allows the user to select their background color.bgColor='navy'">c</a> <a href="" onmouseover="document. The source code for this example is shown below.bgColor='royalblue'">k</a> <a href="" onmouseover="document. We really couldn't .bgColor='Skyblue'">g</a> <a href="" onmouseover="document.
To see the Help table of contents.BAT extension.text. kind of cool. type help with no parameters. Any MS-DOS command you use at the .form. When you type the name of the batch program at the command prompt. and notes and examples. A batch file or batch program is an unformatted text file that contains one or more MS-DOS commands and is assigned a . Source: <CENTER><FORM> <TEXTAREA NAME="text" ROWS="3" COLS="30"></TEXTAREA><p> <INPUT TYPE="button" VALUE="Say it!" onClick="alert(this. type help followed by the command name at the command prompt. It includes an explanation of command syntax. For a list of MS-DOS commands. To view the command reference online. a description of each command. the commands are carried out as a group. however. type fasthelp at the command prompt.value)"> <INPUT TYPE="reset" NAME="cancel" VALUE="Clear Prompt"> </FORM></CENTER><P> What it looks like: Clear Prompt Batch Commands This chapter is a complete reference for the commands supplied with MS-DOS 6.think of anything that this could be used for except for the person to talk to themselves. This chapter is a printed version of the online Help available in MS-DOS 6.
the following MS-DOS commands are specially designed for batch programs: call choice echo for goto if pause rem shift CONFIG. In addition.SYS file and can also be typed at the command prompt: break rem set The following special CONFIG. the CONFIG. Typically. These commands configure your computer's hardware components so that MS-DOS and applications can use them.SYS file.SYS commands are used only to define multiple configurations within the CONFIG.SYS file is a text file that contains special commands. The following CONFIG.SYS Commands The CONFIG. it carries out the commands in the CONFIG.command prompt can also be put in a batch program.SYS file: buffers country device devicehigh dos drivparm fcbs files install lastdrive numlock shell stacks switches The following commands are commonly used in the CONFIG. When MS-DOS starts.SYS commands can be used only in the CONFIG.SYS file: .SYS file is located in the root directory of drive C.
MS-DOS will then prompt you to carry out or bypass each CONFIG. The CONFIG. For example. to have MSDOS ask for confirmation before carrying out the dos=high command.BAT files. when you see the text "Now starting MS-DOS.SYS commands. Insert this character just before the equal sign (=). Insert this character at the beginning of the line.SYS file can also contain the following special characters: . Bypassing CONFIG.SYS and AUTOEXEC.. press the F5 key immediately after starting your computer. you would change the command to read dos?=high.SYS file. To . (You can also insert a comment by using the rem command.BAT Commands If you are having system problems that you suspect are caused by one or more commands in your CONFIG.SYS command.SYS file.include menucolor menudefault menuitem submenu For more information about defining multiple configurations. press F5. you might want to bypass some or all of the commands in your CONFIG. To bypass all the commands in your CONFIG. see Commands for Defining Multiple Configurations.". To bypass individual CONFIG. To carry out all remaining startup commands. press the F8 key instead..SYS and AUTOEXEC.) ? Specifies that MS-DOS is to ask for confirmation before carrying out the current command. Specifies that the current line is a descriptive comment and should not be carried out.
SYS file.SYS file. see the country command.SYS DISPLAY.SYS SETVER.SYS and KEYBOARD. For more information about your CONFIG.bypass all remaining startup commands.SYS EMM386.SYS EGA. For information about loading KEYBOARD.EXE HIMEM. add the switches /n command to your CONFIG.SYS CHKSTATE.SYS.SYS are not device drivers. For information about loading COUNTRY.EXE RAMDRIVE. To disable this feature.SYS DBLSPACE. see the chapter "Configuring Your System" in the MS-DOS 6 User's Guide.SYS INTERLNK. If you do. They are data files for the country and keyb commands.EXE The files COUNTRY. see the keyb command.EXE SMARTDRV. Do not try to load either of these files with the device command.EXE POWER.SYS DRIVER.SYS. your system halts. Top of page International Commands The following commands are useful when changing country-specific settings and character . Top of page Device Drivers The following installable device drivers are provided with MS-DOS: ANSI. respectively. and you cannot restart MS-DOS. press ESC.
(Optional) In the AUTOEXEC. follow these general steps: 1. 3.SYS file for each configuration you want. you use the following special CONFIG. .SYS commands: include menucolor menudefault menuitem submenu To define multiple configurations. Define a startup menu in the CONFIG. menucolor and submenu commands can be used to define special characteristics of the startup menu. Create a configuration block in the CONFIG.SYS commands that you want MS-DOS to carry out when that configuration is selected from the startup menu.BAT file. To each block.SYS file by using a [menu] header followed by one or more menuitem commands. add the CONFIG.SYS file can define several different system configurations.BAT commands depending on the startup configuration. use batch commands such as goto and if to have MS-DOS carry out different AUTOEXEC.sets (code pages): chcp country keyb Top of page mode nlsfunc Commands for Defining Multiple Configurations A single CONFIG. To define multiple configurations. The menudefault. 2. A configuration block begins with a block header — a name surrounded by square brackets.
SYS File The following CONFIG. For more information about defining multiple configurations.BAT file. To have MSDOS carry out different sets of commands for different CONFIG values.SYS file configures the computer for either Steve or Lisa. MS-DOS defines an environment variable named CONFIG and sets it to the name of the selected configuration block. see the chapter "Configuring Your System" in the MS-DOS 6 User's Guide.When a configuration is selected from the startup menu.sys. add a goto %config % command to your AUTOEXEC.sys [Common] This CONFIG. For both configurations. buffers=15. MS-DOS carries out the three commands in the first [common] section: dos=high. Defining Multiple Configurations in Your CONFIG. Steve uses a .SYS file defines two configurations: [Menu] menuitem=Steve menuitem=Lisa [Common] dos=high buffers=15 device=c:\dos\himem. and device=c:\dos\himem.sys [Steve] files=20 device=c:dos\emm386 2048 [Lisa] files=40 device=c:\net\network.
BAT file. He does not use the network.com deskpub` . Defining Multiple Configurations in Your AUTOEXEC.c:\typeset c:\mouse\mouse. MS-DOS defines an environment variable named CONFIG and sets it to the name of the selected configuration block. The following AUTOEXEC. c:\dos\smartdrv. Go to the section that matches the current . value of the CONFIG variable goto %config% :Steve path=c:\dos. so his configuration includes a command for EMM386. This AUTOEXEC.BAT file is designed to work with the sample CONFIG. now skip Lisa's section & go to end goto end :Lisa .BAT file uses the goto command with the CONFIG variable to carry out different sets of commands. you can use the goto command to have MS-DOS carry out different sets of commands for different CONFIG values.desktop publishing program that requires expanded memory.exe set temp=c:\temp c:\dos\msav . Lisa uses the network but not desktop publishing.SYS file in the preceding section.c:\deskpub. Her configuration starts the network driver.BAT File When a configuration is selected from the startup menu. In the AUTOEXEC.
sets the TEMP environment variable.c:\utility doskey net logon lisa goto end :end When MS-DOS runs this AUTOEXEC." the search path is set differently.path=c:\dos. If the current configuration is "Lisa.SYS file) to connect the computer to the network. and runs the desktop publishing program.COM program from the C:\MOUSE directory. Top of page . MS-DOS then goes to the section that matches the value of the CONFIG variable. it starts SmartDrive. The goto end command instructs MSDOS to skip to the End section. this prevents the commands in the Lisa section from being carried out for Steve's configuration. It then sets the search path for Steve.c:\network. MS-DOS runs the Doskey program. and a Logon command instructs the network driver (loaded from the CONFIG. and starts the MS-DOS Anti-Virus program. If the name of the selected configuration is "Steve." MS-DOS goes to the Steve section. loads the MOUSE.BAT file.