<-->

Home
Start A Page
Making Links
Images
Sounds
Text
HTML Links
Questions??


HTML Basic

Here, I will tell you about the basics of page making. It all starts with HTML...

HTML:
HyperText Markup Language. In other words, all those tags and attributes that make your page work.
Tags:
A command that is used by the browser in the prosess of displaying web pages. HTML tags are inclosed in brackets.
EX: <</plaintext>tag>.<br> Some tags require a closing tag. <br> EX: <plaintext><</plaintext>tag>...<plaintext><</plaintext>/tag> <dt><U>Attributes:</u> <dd>Most tags in HTML have attributes that specify additional information to the browser. Many tags can have more than one attribute.<br> For Example, <plaintext><</plaintext>HR> is a tag that puts a line (horizontal rule) on your page. <hr> <plantext><</plaintext>HR WIDTH="60%">: This tag would create a line that is only 60% as wide as the page. <hr width="60%"> <plaintext><</plaintext>HR WIDTH="60%" AIGN="left">: This tags creates a line that is 60% wide and starts on the left side of the page. <hr width="60%" align="left"> <dt><u>Text:</u><dd>In the sence of HyperText, text includes all the text, graphics, images, links, and whatever else you put on your page. <dt><u>Browser:</u><dd>A browser the the software that translates the HTML tags and text into what you see on your screen. <HR></dl> <A NAME="page"><HR></a> <table border="0" width="100%"> <tr><td align="left"> <DT><U><blackface><h3>Structure Tags</h3></blackface></u></td> <td align="right"><a href="#start">^Top^</a> </td></tr></table> <HR> <dl> These tags are required on every HTML page.<P> <U>Structure tags</u> include:<BR> <dt><plaintext><</plaintext>HTML>.....<plaintext><</plaintext>/HTML> <dd>Incloses the entire page. <plaintext><</plaintext>HTML> is the first tag on your page. It lets the browser know that this is a HTML page. <pliantext><</plaintext>/HTML> is the last tag on your page and it lets the browser know that the page is complete. <dt><plaintext><</plaintext>HEAD>.....<plaintext><</plaintext> /HEAD><dd>Includes introductory information about your page.The Head tag may seen useless in creating a HTML page because it has no practial use, although it does have technical applications that we won't get into here. <dt><plaintext><</plaintext>TITLE>.....<plaintext><</plaintext>/TITLE><dd>This tag defines the title of your page. The title is what shows up in the status bar at the bottom of your page. The Title tags are nested inbetween the Head tags. <dt><plaintext><</plaintext>BODY>.....<plaintext><</plaintext>/BODY><dd>Everything that you want people to see must be contained between the BODY tags. The body tag also sets the style of your page. The sidebar tags always come before the body tags. <br><P><b><U>Attributes of the body tag.</u></b> <br><P><dt>BGCOLOR <dd>Sets the background color for your page. The format is a hex number or the predefined <a href="/justforwebtv/info/colorcodes.html">color codes </a> <br><dt>TEXT <dd>Sets the text color. Same format as the BGCOLOR tag. <br><dt>LINK <dd>Sets the color of your links. Again, same format. <br><dt>VLINK <dd>Sets the color fo the links that you have already visited. Same format. <br><dt>BACKGROUND <dd>This is where you put the address of the background for your page, if you use one. </dl> <P> There are more attributes for the body tag, but this is Basic HTML. You can find more attributes for this tag under <a href="http://developer.webtv.net/authoring/html/">WebTV HTML.</a> <p><u> The most basic page:</u><br> <plaintext><</plaintext>HTML><br> <plantext><</plaintext>HEAD><br> <plaintext><</plaintext>Title>Your Title...<plaintext><</plaintext>/TITLE><br> <plaintext><</plaintext>/HEAD><br> <plaintext><</plaintext>BODY><br> .... All the stuff you put on your page.......<br> <plaintext><</plaintext>/BODY><br> <plaintext><</plaintext>/HTML><br> <p>This is just enough code to make a page work. This would work....However, all you would see is the line: <br> ..... All the stuff you put on your page.......<br> <p> <table border="0" bgcolor="grey" Width="100%"> <th> TIP:</TH><TR><TD> If you save this file now, you can copy it each time you make a new page and you won`t have to retype the sturcture tags. You can cut and paste it from here.</td></tr></table> <p> <form><font color="white" effect="emboss"> <input type=button value="Click-N-Paste" onClick="javascript:this.form.txt.focus();this.form.txt.select();"> <textarea id="txt" autoactivate rows="12" cols="44" bgcolor="navyblue" cursor="white" usestyle> <HTML> <HEAD> <TITLE>Just4WebTV</TITLE> </HEAD> <BODY BGCOLOR="" BACKGROUND="" TEXT="" LINK="" VLINK=""> I Love WebTV! </BODY> </HTML> </textarea></font> </form> <br>Be sure to add <a href="/justforwebtv/info/colorcodes.html">color codes </a>between the "". The BACKGROUND="" attribute is where you put the address of your background file, if you want to use one. <p> <b><u>EX:</u></b><plaintext><</plaintext>BODY background="/justforwebtv/images/bg.gif" text="black" Link="red" Vlink="blue"> <br>This is most of the BODY tag from this page. <hr invertborder> Click below to learn more about the stucture tags. Be sure to hit the back botton to return to my pages. <hr> <a href="http://developer.webtv.net/authoring/html/">[HTML]</a> <a href="http://developer.webtv.net/authoring/html/head.html">[HEAD]</a> <a href="http://developer.webtv.net/authoring/html/title.html">[TITLE]</a> <a href="http://developer.webtv.net/authoring/html/body.html">[BODY]</a> <HR> <hr><a name="links"><hr></a> <p> <table border="0" width="100%"><tr><td align="left"> <blackface><H3>ANCHORS</H3></BLACKFACE> </td> <td align="right"> <a href="#start"> ^Top^</a></td></tr></table> <hr> <P> Anchors are what lets you link pages together. If you have more than one page, then you have to link them together, or else, people will come to your home page and never see your other pages.Also, if you want to put some links to other peoples pages, or just to some of the places like you like to go, anchors are what you need. To make an anchor, you need to know the address of the page you are linking to. The code for an anchor is `A`. There are different kinds of anchors and different attributes for the anchor tag. Now, if you just want a link to another page, the code is: <br><hr> <plaintext><</plaintext>A HREF="http://XXXXXXXXXXX">LINK NAME<plaintext><</plaintext>/A> <hr><P> In this example XXXXXXXX is the address of the page that you are linking to. LINK NAME is whatever you want to call the link. If it is a link to a page that you made about your friends then you could name the link `FRIENDS`. You can name it anything, that is just an example. <hr><b>TARGETS</b><hr> Making links within a page takes a little more work.To link to a different place on the same page, you must first make a anchor for the link to look for. That is done by using an anchor tag with the NAME attribute. And it looks like this:<br><hr> <plaintext><</plaintext>A NAME="XXXX">Target Name<plaintext><</plaintext>/a> <hr><br> The XXXXX is whatever you want to call the link. Put the anchor whereever you want the link to go to. It will not show up on your page like a clickable link, but you will know that it is there. Now, to link to the anchor that you just made, you use the HREF attribute of the anchor tag and use the `#` before the address. Like this:<br><hr> <plaintext><</plaintext>A HREF="#XXXX">Link name<plaintext><</plaintext>/A> <hr><br> <a name="images"><hr inverborder></a> <table border="0" width="100%"><tr><td align="left"> <b><blackface>Images</blackface></b></td><td align="right"><a href="#start">^TOP^</a> </td></tr></table> <hr><p> It is easy to add images to your pages. All you need is the IMG (image) tag. There are lots of attributes for the IMG tag. Attributes that can resize your image, align your image, and more! You can really change your image with this tag. <table width="100%" border="10" bgcolor="gray"> <th>IMPORTANT TIP:</th> <tr><td>Images use a lot more memory space than text or HTML code. The larger the image file is, the longer it will take to load. <B>I hate long dowdloads!</b> Also, if you use a lot of images, expecialy animated gifs, make sure you use HEIGHT and WIDTH tags! <BR>That way, the browser can leave space for your images and load the rest of your page much quicker! </td></tr></table> <center><u><b>Attribuets for the IMG tag</b></u></center> <dl> <dt><b><U>SRC</U></b> (sorce) <dd>This is where you put the address for the image. <br><b><u>EX:</u></b><plaintext><</plaintext>IMG SRC="..image addy..">. Don't forget the ""! <dt><B>HEIGHT</B> <dd>This tag will set the height of your image. The format is: HEIGHT="XX". The XX can be the number of pixels or a percentage of the page height. If you want it to be a percentage, use the'%', lie this "XX%". <br><U><B>EX:</B></U><plaintext><</plaintext>IMG SRC="ADDRESS" HEIGHT="200"> <br>Or: <br><plaintext><</plaintext>IMG SRC="ADDRESS" HEIGHT="50%"> <dt><U><B>WIDTH</B></U> <dd>Want to guess what this one does? <br>Use the same format as the HEIGHT tag. 'Nuff said. <TABLE BORDER="0" BGCOLOR="grey" WIDTH="100%"> <th>IMPORTANT TIP:</th><tr><td> <B>Always</b> use HEIGHT and WIDTH tags for your images as this will let your page load faster!</TD></TR></TABLE> <dt><B><U>ALIGN</U></B> <DD>Defines the alignment of an image in relation to surrounding text. <br><HR> <B>Values for the ALIGN tag:</B> <dl><dt>ALIGN="BOTTOM" <DD>Aligns surrounding text with the bottom of the image. <DT>ALIGN="CENTER" <DD>Aligns surrounding text with the center of the image. <DT>ALIGN="LEFT" <DD>Draws the image as a left-flush "floating image," with text flowing around it. <DT>ALIGN="MIDDLE" <DD>Aligns surrounding text with the middle of the image. <DT>ALIGN="RIGHT" <DD>Draws the image as a right-flush "floating image," with text flowing around it. <DT>ALIGN="TOP" <dd>Aligns surrounding text with the top of the image. </DL> <dt><u><B>BORDER</b></U> <DD>This tag put a border around your image. The format is: BORDER="XX" where "XX" is the size of the border in pixels. <br><B><U>EX:</U></B> <plaintext><</plaintext>IMG SRC="ADDRESS" BORDER="5"> <DT><U><B>TRANSPARENCY</B></u> <DD>Defines the transparency of an image, allowing the background to show through the image. Values range from 0 to 100 (Invisable). <TABLE BORDER="0" BGCOLOR="grey" Width="100%"> <th>Tip:</th><tr><td> You may want to use a transparency value of 50 for which WebTV uses to make Web pages load faster</td></tr></table> <U><B>Ex:</B></U><plaintext><</plaintext>IMG SRC="url" TRANSPARENCY="50"> </dl> <HR> <P>You can use an image as an anchor or link. This is very easy to do, just put the IMG tag inside the Anchor tag. Like this: <BR><plaintext><</plaintext>A HREF="LINK-ADDRESS"> <plaintext><</plaintext>IMG SRC="IMAGE-ADDRESS"> <plaintext><</plaintext>/A> <BR>See, I told you it was easy! <P><HR> <u>Now for some fun!</u> <P> <br><img src="/justforwebtv/images/i_watch_webtv.gif"> <br><plaintext><</plaintext>img src="/justforwebtv/images/i_watch_webtv.gif"> <hr> <img src="/justforwebtv/images/i_watch_webtv.gif" height="80"> <br><plaintext><</plaintext>img src="/justforwebtv/images/i_watch_webtv.gif" height="80"> <hr><img src="/justforwebtv/images/i_watch_webtv.gif" height="80" width="300"> <br><plaintext><</plaintext>img src="/justforwebtv/images/i_watch_webtv.gif" height="80" width="300"> <hr><img src="/justforwebtv/images/i_watch_webtv.gif" border="20"> <br><plaintext><</plaintext>img src="/justforwebtv/images/i_watch_webtv.gif" border="20"> <hr><img src="/justforwebtv/images/i_watch_webtv.gif" TRANSPARENCY="70"> <br><plaintext><</plaintext>img src="/justforwebtv/images/i_watch_webtv.gif" transparency="70"> <hr><img src="/justforwebtv/images/i_watch_webtv.gif" height="40" width="200" border="30" transparency="50"> <br><plaintext><</plaintext>img src="/justforwebtv/images/i_watch_webtv.gif" height="40" width="200" border="30" transparency="50"> <p>I am sure that you can see how powerful the IMG tag can be! There is <a href="http://developer.webtv.net/authoring/html/img.html">more attributes for the IMG tag</a> but, that should get you started. <center><hr><a href="/justforwebtv/paradise.html" transition="slideleft"><img src="/justforwebtv/images/box.gif" height="70" width="70" border="10" transparency="50" align="center"></a> And now, click this image for a brief intermistion. Don't worry, you will be brought right back here! You won't want to miss this! It wil blow you away! ...</center> <br><b>And here's the code!<BR> <plaintext><</plaintext>a href="/justforwebtv/paradise.html" transition="slideleft"><plaintext><</plaintext>img src="/justforwebtv/images/box.gif" height="70" width="70" border="10" transparency="50" align="center"><BR><Plaintext><</plaintext>/a><b> <a name="sounds"><hr></a> <table border="0" width="100%"><tr><td> <b><blackface>Sounds</blackface></b></td><td align="right"><a href="#start">^TOP^</a> </td></tr></table> <hr><p>You can put songs on you page that start playing as soon as they finish loading. You can also have links to songs that will play when you click on them. <table border="10" width="100%" bgcolor="grey"> <th>IMPORTANT TIP:</TH> <TR><TD>Song files can be very big. The bigger the file, the longer it will take to load. Always put the code for the song at the end of your page. That way your page can load before the song loads. This will help your page load faster! Oh yeah, <b>I hate long downloads!</b> </td></tr><table> <hr> The tag for adding a song to your page is <BR> <b><plaintext><</plaintext>BGSOUND></b> This tag inserts a background sound or "soundtrack" in a Web page. Designed to play on initial load. <hr> <blackface><u>Attributes for the BGSOUND tag</u></blackface> <dl> <p> <dt><b>SRC</b> <dd>Defines a URL for a sound file that will play in a Web page. <P><b>EX:</b><plaintext><</plaintext>BGSOUND SRC="url"><P> <dt><b>LOOP</b> <dd>Defines the number of times a sound will loop when activated in a Web page. If LOOP="-1" or if LOOP="infinite" is defined, the sound will loop indefinitely. <P><B>EX:</B><plaintext><</plaintext>BGSOUND SRC="url" LOOP="3"><br> <P><b>EX:</b><plaintext><</plaintext>BGSOUND LOOP="INFINITE" SRC="URL of song"> </dl> <hr> To make a link to a sound file, just use the address of the file in an Anchor tag. <br><P><b>EX:</b><plaintext><</plaintext>A HREF="URL of song"> XXX<plaintext><</plaintext>/a><P> <br>The XXX is whatever you want the link to be. It could be text, like the name of the song. Or, it could be an image by using the IMG tag! <hr>There are <a href="http://developer.webtv.net/authoring/html/embed.html">other ways to add music or sounds to your page</a> but, this is the easiest way. <hr>There are many places to find songs files on the internet. There are some on the <a href="links.html#music">links</a> page. <a name="text"><hr></a> <table border="0" width="100%"><tr><td align="left"> <b><blackface>Text</blackface></b></td><td align="right"><a href="#start">^TOP^</a> </td></tr></table> <HR><p> There will be times when you will want to change the size, color, or style of you text. There are a lot of ways that you can change your text.<br> <p><u><b>Some examples:</b></u><p> <br><plaintext><I> ... </I></plaintext> <i>Italics</i> <br><plaintext><B> ... </B></plaintext> <b>Bold</b> <br><plaintext><U> ... </U></plaintext> <u>Underline</u> <br><plaintext><BLACKFACE>...</BLACKFACE></plaintext> <blackface>Blackface</blackface> <br><plaintext><BIG> ... </BIG></plaintext> <big>Big</big> <br><plaintext><SMALL> ... </SMALL></plaintext> <small>Small</small> <br><plaintext><S> ... </S></plaintext> <s>Strike</s> <br><plaintext><SUB> ... </SUB></plaintext> <sub>subscript</sub> <br><plaintext><SUP> ... </SUP></plaintext> <sup>Superscript</sup> <P>Just a few of the tags that will change your text! You can use more than one tag at a time. <br><I><B>BOLD ITALICS</b></I> <BR><i><u>UNDERLINED ITALCS</U></I> <br><i><u><b>BOLD UNDERLINED ITALICS</B></U></I> <BR> <TABLE bgcolor="grey" border="10" Width="100%"> <th>IMPORTANT TIP:</TH> <TR><TD>If you use more than one tag at a time, they must be nested. If you use an I tag followed by a B tag, you must close the B tag first then close the I tag. <br><b>EX:</b> <plaintext><I><B>TEXT</B></I></plaintext> </td></tr></table> <HR> <p>The most important tag for changing your text is the FONT tag. It looks like this:<BR> <plaintext><FONT> ... </FONT></plaintext> <P>The FONT tag defines that enclosed text will display in a certain font size, color, or style. <P><B>Attributes of the FONT tag:</b> <p> <dl> <dt>COLOR <dd>Defines a color for your text.It can be specified either as hexadecimal color values or as <a href="/justforwebtv/info/colorcodes.html">predefined color names</a>. <br><b>EX:</b> <plaintext><FONT COLOR="MEDIUMSLATEBLUE">...</FONT></plaintext> <dt>EFFECT <DD>Defines an effect for a font. </DL><u><Values for the EFFECT tag:</u> <dl> <P><DL> <dt>EMBOSS <DD>Draws the text so that it seems pressed into the surface of the page. Try this one on buttons with a BLACKFACE tag. <DT>RELIEF <DD>Draws the text so that it seems raised from the surface of the page. <DT>SHADOW <DD>Draws the text with a shadow cast down and to the right of the text. I like this one with <a href="http://developer.webtv.net/authoring/html/hr.html">HEADLINE</a> tags <P><B>EX</B>: <plaintext><FONT EFFECT="relief">...</FONT></plaintext> </dl> <dt>SIZE <DD>Defines the size of the font.<br> Values range from 1 to 7 and can be set with the "+" or "-" characters in front to specify a difference relative to the current font size. <P><B>EX:</b> <plaintext><FONT SIZE="3">...</FONT></plaintext> <P><B>EX:</b> <plaintext><FONT SIZE="+2">...</FONT></plaintext> <DT>TRANSPARENCY <DD>Defines the transparency of a font, allowing the background to show through the text. <BR>Values range from 0 (fully opaque) to 100 (fully transparent). <P><B>EX:</b> <plaintext><FONT TRANSPARENCY="50">...</FONT></plaintext> </dl> <hr>You can use more than one attribute in the same FONT tag. <P><B>EX:</b> <plaintext><FONT SIZE="6" COLOR="RED" EFFECT="SHADOW"> ... </FONT></plaintext> <p>As long as you only use one FONT tag, no mater how many attributes you use, you only need one close tag! <P><B>EX:</b> <plaintext><B><I><FONT SIZE="6" COLOR="RED" EFFECT="SHADOW"> ... </FONT></I></B></plaintext> <p>Always nest your tags! <HR><br><center> <a href="#start">^Top^</a></center><hr> <center> Here is a place where you can try different attributes! <!-- BEGIN LINKEXCHANGE CODE --> <center> <a href="http://leader.linkexchange.com/1/X1389433/clickle" target="_top"><img width=468 height=60 border=0 ismap alt="" src="//leader.linkexchange.com/3/X1389433/showle?"></a><br><a href="http://leader.linkexchange.com/3/X1389433/clicklogo" target="_top"><img src="//leader.linkexchange.com/3/X1389433/showlogo?" width=468 height=16 border=0 ismap alt=""></a><br></center> <!-- END LINKEXCHANGE CODE --> <br><center> <table border="2" bgcolor="#666666"> <tr><td align=center> <form name="testbed"> <input type=button value="Click-N-Paste" onClick="javascript:this.form.txt.focus();this.form.txt.select();"> <textarea id="txt" cols=50 rows=17 name="stn" bgcolor="SKYBLUE" text="MIDNIGHTBLUE" cursor=navyblue nohighlight autoactivate> <HTML> <TITLE></TITLE> <BODY BGCOLOR="" TEXT="" LINK="" VLINK="" BACKGROUND=""> <I></I> <FONT SIZE="" EFFECT="" COLOR="" TRANSPARENCY=""> </FONT> <HR> <A HREF=""> </A> <HR WIDTH="70%"> <IMG SRC="" HEIGHT="" WIDTH="" TRANSPARENCY=""> <BGSOUND SRC="" LOOP=""> </body> </html> </textarea></center> </tr></td></table> <bgsound src="//www.oocities.org/justforwebtv/sounds/genius.mid" loop="infinite"> </body></html>