IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Reply to this topicStart new topic

Webmaster Level 1

, The sequel to my smash hit HTML tutorial


GM-University
no avatar
Super Member
*********
Group: Members
Posts: 287
Joined: 23-February 05
Member No.: 3,945



Post #1 post Mar 22 2005, 03:10 AM
Here is the link to my first HTML turtorial, which will help as a refresher course, even if you already know HTML pretty wel. http://www.trap17.com/forums/Html-t8780.html

WebMaster Level 1

Lesson 1 a Breif Refresher Course

Remeber the tutorial I wrote up a few days ago? Well this is the sequel, it includes some heavy HTML, some CSS. First of all we should make sure your still up to date, so take this simple little quiz, it you get 2 or more wrong please go back to the first tutorial and do a little reveiwing.
True or False?
1.) The basic structure of HTML is built on semi colons?
2.) When coding in HTML it is nesscary to add an ending tag to end the effect of a beggining tag?
3.) The tag required to make a bullet or numbered item is always
HTML
<li>

Multiple Choice
4.) The code for code to make text bold is...
A)
HTML
<u>Text Here</u>

B.)
HTML
<b>Text Here</b>

C)
HTML
<i>Text Here<i>

D)
HTML
<BoldIt>Text Here</BoldIt>[html]
5.) Which of these sets of code [u]WILL[/u] work?
A) [html]<img src="http://www.trap17.com/forums/style_images/1/folder_post_icons/icon1.gif">

B.)
HTML
<img src=http://www.trap17.com/forums/style_images/1/folder_post_icons/icon1.gif>

C)
HTML
<src="http://www.trap17.com/forums/style_images/1/folder_post_icons/icon1.gif">

D)
HTML
<img=http://www.trap17.com/forums/style_images/1/folder_post_icons/icon1.gif>[html]
6.) If you wanted to end the effect on a selection of text you would add what tag...
A) [html]<end>

B.)
HTML
</text>

C)
HTML
</font>[html]
D) [html]</text/>[html]
7.) Which of the folowing will mess up up the HTML document shown below?
[html]<font color="FF0000"><u>Hello welcome to this site!</u></font><br><br><hr><div align=left><a href=www.sistersite.com>Click Here for our sister site.</a></div><align=center><img src="http://www.mysite.org/go_to_the_zoo.gif"></align>

I. <font color="FF0000">
II. <a href=www.sistersite.com>Click Here for our sister site.</a>
III. <align=center><img src="http://www.mysite.org/go_to_the_zoo.gif"></align>
IV. <br><br>
A) I / IV
B.) II / III
C I / II
D) III / IV
8.) What is the starting tag for a series of bullets?
A) <li>
B.) <ol>
C) <hr>
D) <ul>
9.) What does HTML stand for?
A) Hexagonal Text Making Langauge
B.) Hyper Text Markup Langauge
C) Horticultural Turbo Masking Langause
D) None of The above.
10.) The best way to get a good look for you page is by...
A) Mixing diferent effects in a pleasent and complimenting way
B.) Filling the page with as many link as possible
C) Using lot's of bullets and numbered lists
D) Never using the <b> tag or divides
-
-
-
-
-
Answers

1.) False
2.) True
3.) True
4.) B.)
5.) A)
6.) C)
7.) B.)
8.) D)
9.) B.)
10.) A)

If you got 2 or more wrong I would recomend going back to my topic entitled HTML in the Tutorials Section.

Lesson 2 Contact

I thought we'd start off easy just to make sure your in your HTML mode before things get heavy, so we'll start E-Mail Links. take a look at the code bellow (you@emailprovider.domain should be replaced with your email address)
HTML
<a href="mailto:you@emailprovider.domain">Displayed Text Here</a>
Simple as any other link right? Just make sure you put in the mailto: and put the whole little jumble in your tag after href= in quotes.
So that's lesson 2, short huh?

Lesson 3 Tables

Tables are one of THE best ways to precisely lay out your website, a table is essentially a grid, with an X, and a Y axis. There are rows, which go across horizontaly, and collunms which go veritcaly. When rows rows and collums intersect the form a cell, cells will each hold a selection of text, or any other code you put in them. When you start a table, it should be started with
HTML
<table>
and ended with
HTML
</table
These are like the tags we used to declare and end our bullets and numbered lists, and you will find there is a lot in common and a lot different about them. When we want to create a row we must put
HTML
<tr>
We must follow that (after hitting enter...) with data cell tag, which will have more HTML after it typically, here is an example of a table
HTML
<table>
<tr>
<td> the <td> tag creates a data cell
<td> This is another data cell, the tag after this, the </tr> will end the row
</tr>
</table>

The last </table> ends the table, make sure to hit enter after each tag, it's good HTML practice... smile.gif
Ok, now we will learn how to make our table less bland than the default one our browser provides... First of all we can change the border size, here is the code (note: the only nessescary changes are to the <table> tag, so I will not bother creating a whole tabel)
HTML
<table border=1>
Now, we might want to give that little border a nice color to it, so here's the code, refer to the first tutorial for some Hex codes, or you can use the names of some COMMON/ BASIC colors.
HTML
<table border=1 bordercolor=CCCCFF>

Now we can change the backround color of our table to compliment the border, here is the code to change that...
HTML
<table border=1 bgcolor=CCCCFF>

Now if we want to change but one row of our table we can use this little fella instead
HTML
<tr bgcolor=CCCCFF>

Now if we only want to change one data cell we can use this code
HTML
<td bgcolor=CCCCFF>

Ok, last but not least we should learn to change our tables size... Here is the code (pixel version) (leave out width or height according to which (if any) you don't want changed)
HTML
<table width=Pixels height=Pixels>

Now, we will make our table a difined percent of the screen (like when we made our divides)
HTML
<table width=10% height=10%>


Adding Music
Music can add a nice effect to pages, use it wisely, but don't abuse it...
HTML can do some pretty cool things, here is one such example, the code bellow will create a player much like "Real Audio Player" (replace TheURLOfYourSound with the location of your sound)
HTML
<embed src="TheURLOfYourSound" width=300 height=60>
<noembed>
<bgsound src="TheURLOfYourSound">
</noembed>

The embed tag will run on Netscape and other browsers, while bgsound will run on Internet Explorer and such, alway include both to insure it works.
You can add autostart=true loop=true to make the sound continuosly play, here is an example of this
HTML
<embed src="TheURLOfYourSound" width=300 height=60 autostart=true loop=true>
<noembed>
<bgsound src="TheURLOfYourSound" loop=infinite>
</noembed>

Now we will learn to make backround music where no player will be seen, this is very simpl, add hidden=true to your tag, like so
HTML
<embed src="TheURLOfYourSound" hidden=true autostart=true>
<noembed>
<bgsound src="TheURLOfYourSound" loop=infinite>
</noembed>


Lesson 4 A little CSS

CSS is both like and different from HTML, it allows you to change things you couldn't before, such as easily setting the font for the whole page, or changing things like the scrollbar and such.
We already learned how to change the backround color with HTML, but we should learn it in CSS too, take a look here... (here is the common/ basic color name one)
CODE
<style> body {background: fixed; background-color: red;}</style>
or you can use the Hex code version for more colors, which is here
CODE
<style> body {background: fixed; background-color: #9c2000;}</style>

Notice the
CODE
<style>
tags, these are used to define a stylesheet which is the purpose of CSS, a stylesheet is something that we can easily add to all pages in our website to make them look alike, they can also be used in PHPBB and IPB boards.
Now, we will add a picture as our backround, also know as a backround image, here is the code (put the location of the image where it says ImageURL)
CODE
<style> body { background: url("ImageURL");background-attachment: fixed}</style>

Ok, here is the code to change the font for the whole page
CODE
<style> body {font-family:verdana; color:#EFA6FF; font-size:small;} </style>

- Font-family defines what font is displayed, ex: arial, times, courier, etc..
- color defines the color of all text on your page
- font-size sets the size of text on the page you are limitted to small, medium, or large
If you want to change the backround too, you simply add the code to change your backround to the CSS in between the <style> and </style> tags, like so
CODE
<style> body {background: fixed; background-color: #9c2000; font-family:arial; color:#EFA6FF; font-size:small;} </style>


Lesson 5 Some Cool Fun You (Last Lesson)

Well, we covered some hard stuff here, and now it gets harder =O laugh.gif Don't worry, this is kinda hard, but I will do my best to explain it, and you will be able to see that the reward is very cool.
We will be using one of my favorite HTML tags, the <marquee> this is the tag that makes those cool scrolling things. Note: I'm not going to right a big thing about this, read what I wrote in the variables and such, figure out what to put, if you have a question ask me...
HTML
<marquee height="pixel" width="pixels" direction="direction the text should move, up or down" scrolldelay="have the scolling wait a bit before it starts" scrollamount="scrolling speed" style=put some CSS here><font face="font type" size="size">PUT YOUR HTML HERE (put almost anything in here...)</marquee>
P.S. You can create nice news buluiteins by putting these in tables, and labeling them with a top row with a backround...

Wrap-Up

You've probably heard this before "HTML is so useless, use php" to some extent they are right, but look what we just did with useless old HTML, biggrin.gif remember wisely mix effects, and practice your HTML skills, next time we meet we will deal with IFrames, advanced CSS, a little PHP, and more.


Note:
These are all condensed forms of co
urses I have on my website, if you want to enroll
in them PM me right away, and I will contact you as soon as they are all ready and polished up a bit.
Go to the top of the page
+Quote Post
snlildude87
no avatar
Moderator
***************
Group: Members
Posts: 2,325
Joined: 8-March 05
From: Mawson, Antarctica
Member No.: 4,254



Post #2 post Mar 22 2005, 05:24 AM
GMU, the direction could also be "up", "down", "left", or "right." Other than that, GREAT TUTORIAL! I already know all of it myself, but it should help HTML n00bs. smile.gif

(Your credits must be extremely high by now!)smile.gif
Go to the top of the page
+Quote Post
GM-University
no avatar
Super Member
*********
Group: Members
Posts: 287
Joined: 23-February 05
Member No.: 3,945



Post #3 post Mar 22 2005, 09:15 PM
Actually I only got 4 credits for this, and 3 for the first. I think that it might not count stuff in [code] or [html] tags, but I don't really care either way, it's easy enough to get credits.
Go to the top of the page
+Quote Post
rectab
no avatar
Newbie [Level 2]
**
Group: Members
Posts: 32
Joined: 25-March 05
Member No.: 4,889



Post #4 post Mar 25 2005, 04:46 PM
haha really nice
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   1 LunchBox 315 13th August 2004 - 10:21 AM
Last post by: OpaQue
No new   19 cyberoidx 1,045 15th October 2004 - 09:03 AM
Last post by: Lyubomyr
No New Posts   2 Raptrex 343 19th September 2004 - 04:37 AM
Last post by: Spectre
No New Posts   12 deejames 1,114 29th September 2004 - 02:53 PM
Last post by: Spectre
No New Posts   1 MuTeD 308 25th October 2004 - 06:56 AM
Last post by: -prodigy-
No New Posts   4 gta 418 21st November 2004 - 04:43 AM
Last post by: gta
No New Posts   13 Mario 1,331 9th December 2004 - 03:34 PM
Last post by: icedragn
No New Posts   0 Spectre 677 27th November 2004 - 07:07 AM
Last post by: Spectre
No New Posts   0 faceofdie 516 31st December 2004 - 10:09 AM
Last post by: faceofdie
No New Posts   9 nol 9,428 22nd December 2008 - 03:17 PM
Last post by: Tramposch
No New Posts 4 trace-uk 339 16th June 2006 - 06:57 PM
Last post by: trace-uk
No New Posts   8 SaNJ 183 2nd November 2008 - 08:16 AM
Last post by: joeblogg
No New Posts   4 -nukedesigns- 584 10th March 2005 - 02:51 AM
Last post by: -pweb-
No New Posts   9 lionel 528 22nd April 2005 - 05:15 PM
Last post by: serverph
No New Posts   8 guangdian 614 25th May 2005 - 09:39 AM
Last post by: alperuzi


 



RSS Open Discussion Time is now: 8th January 2009 - 08:22 AM