Shoutbox

Website coding tutorial websites - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Website coding tutorial websites (/showthread.php?tid=56676)

Website coding tutorial websites by DJKAL on 03-11-2006 at 10:24 AM

HEY!
i was looking for a few tutorial websites for coding.
i currently use W3schools but would like to try and see/use some others to create more effects and things which i havent been able to see how to do within W3schools.
so if anyone knows a few goods sites please post links
im sure this thread will come in handy for other people who want to create websites and have no or little experience much like myself not long ago and i still have little experience now and am only creating basic websites.

W3schools


RE: Website coding tutorial websites by rav0 on 03-11-2006 at 10:57 AM

Webmonkey: The Web Developer's Resource

I'd recomend using a few websites as reference, not following tutorials. That way, you learn to really code and find a style that best suits you, not just verbatim copy templates.


RE: Website coding tutorial websites by DJKAL on 03-11-2006 at 11:00 AM

i havent just copyed any templates for the website im working on ATM, i did for my first one (calumsdiscos.co.uk) but im recoding that with loads more CSS anyway. this 1 i have used tutorials as reference but coded as much asi could without referring to them. i have struggled to use websites for reference as i sometimes get confused on "why"or "what" tags are for... but with a tut it is easy ad explained making it easy to learn from for first few websites, obviosuly.


RE: Website coding tutorial websites by rav0 on 03-11-2006 at 11:03 AM

Of course thay are useful, expecially since they are complete, so you can look up many things in them. Plain old references might have a few things missing, while a tutorial would have to have them, unless it said "Step 7 - Guess what to do now".


RE: Website coding tutorial websites by DJKAL on 03-11-2006 at 11:06 AM

quote:
Originally posted by rav0
while a tutorial would have to have them, unless it said "Step 7 - Guess what to do now".
:lol:
yer -  i do see what you mean by using other websites to code from but you'd need to find websites which are close to what you want but a tutorial gives you the stuff for what everyone wnats (well...sometimes)
i just want to see what other tutorial websites there are so that i can maybe learn from another one aswell and combine 2 or mroe website tutorials to create a realy good website :)
RE: Website coding tutorial websites by RaceProUK on 03-11-2006 at 03:06 PM

You're probably best off using W3Schools as a reference, and analysing tutorial code and website code to see examples of usage in the 'real world'. Then, based on all that info, experiment ;) Nothing beats learning by screwing up repeatedly ;) That's how I learned XHTML and CSS, and bits of the Win32 API as well.


RE: Website coding tutorial websites by absorbation on 03-11-2006 at 03:54 PM

raceprouk is sooooo right. Best way I learnt was by stealing others code and ideas and devloped them into my own. You need something to practice on, show off your skills, how about trying this ;)

Using tables create this template:

[Image: attachment.php?pid=616303]

Try making it XHTML valid while you are coding, you will learn so much by coding something so simple :)


RE: Website coding tutorial websites by DJKAL on 03-11-2006 at 03:56 PM

i havent yet used tables to create anything like that.
I am making my current website XHTML compatable but have not yet added the XHTML tag at the top as i couldnt see the screen to find out which one i needed.
also my own website (calumsdiscos.co.uk) will be recoded from scratch after the one i am working on now to use more CSS, less HTML and be CHTML compatable :)


RE: Website coding tutorial websites by absorbation on 03-11-2006 at 03:59 PM

lol good to hear, XHTML is really no different from html, but is a better way to code. :P

I suggest this doctype for you ;)

code:
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

And use W3 to validate it

Also try my design, it is simple and you will learn all about tables from it ;) Practice on different things is the way forward :)
RE: Website coding tutorial websites by DJKAL on 03-11-2006 at 04:05 PM

do i keep the

quote:
Originally posted by Absorbation
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
that bit set as w3.org/TR.....
or do i change it to something to do with my website?

quote:
Originally posted by W3 validator

I was not able to extract a character encoding labeling from any of the valid sources for such information. Without encoding information it is impossible to reliably validate the document. I'm falling back to the "UTF-8" encoding and will attempt to perform the validation, but this is likely to fail for all non-trivial documents.

huh? :$

RE: Website coding tutorial websites by absorbation on 03-11-2006 at 04:07 PM

Look at the forum source, same doctype, you place at the top of the page before any code starts ;)


RE: Website coding tutorial websites by DJKAL on 03-11-2006 at 04:08 PM

oh yes :) i see now :P

what about the other bit i asked about {my edit}


RE: Website coding tutorial websites by absorbation on 03-11-2006 at 04:11 PM

Oh you need to add the encoding. You see some browsers may not pick up certain symbols etc so by adding an encoding W3 can reconise how your website was coded :)

So in the head tags:

code:
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

Add that and it should work :)
RE: Website coding tutorial websites by DJKAL on 03-11-2006 at 04:15 PM

ok it works now - sort of...
it keeps saying things arent aloud in DOCTYPE
like: <br> and: <ul>
etc
here is the result page:
http://validator.w3.org/check?uri=http%3A%2F%2Fww...er.net%2Findex.htm


RE: Website coding tutorial websites by absorbation on 03-11-2006 at 04:20 PM

ya change <br> to <br /> tags. Why? Because every tag must be closed, so when you do <b>hi</b> you close the tag.

But you do not go <br></br> Now do we, so we just use a traling slash at the end <br /> :P


RE: Website coding tutorial websites by DJKAL on 03-11-2006 at 04:21 PM

i did though .. with most if not all :S
i have been careful doing that with this website:P
edit: checked by using "CRTL+F" and it says there are no "<br>" 's


RE: Website coding tutorial websites by absorbation on 03-11-2006 at 04:25 PM

Oh right for some reason you can't use <br /> tags in <li> tags. I had this problem before but i never really use <li>. There must be some reason, next time when you space do the next bullet point close the <li> tag before <br /> ;)

Edit: and that seems to be your only problem, the rest of the coding is great (y)

just

code:
alt = ""
in your image tags ;)

Edit 2:Atually change this code from your <h3> tags:

code:
       <h3>
           <ul>
               <li>
                   <a href="welcome.htm"> Welcome</a> </li>
                   <li>
                       <a href="flying.htm"> Flying</a> </li>
                       <li>
                           <a href="shooting.htm"> Shooting</a> </li>
                           <li>
                               <a href="sport.htm"> Sports</a> </li>
                                   <li>
                                <a href="annual_camps.htm"> Annual camps</a> </li>   
                <li>
                <a href="duke_of_edinburgh.htm"> Duke of                             Edinburgh Award</a> </li>
                             <li>
                                <a href="events.htm"> Events</a> </li>
             <li>
                 <a href="photos.htm"> Photos </li>
                     <li>
                         <a href="staff.htm"> Staff</a> </li>
                  <li>
                     <a href="forum" target="_blank"> Forums</a> </li>
          </ul>     
      </h3>


RE: Website coding tutorial websites by Lou on 03-11-2006 at 04:28 PM

http://pixel2life.com has some nice tutorials!


RE: Website coding tutorial websites by DJKAL on 03-11-2006 at 04:39 PM

i knew about the alternative text for images - i'll add that in a sec

quote:
Originally posted by Absorbation
There must be some reason, next time when you space do the next bullet point close the <li> tag before <br />

i thought i had done that - hmmmm :dodgy:

and


is the code in "edit 2" the code i use now {you edited it} or do i edit that? - i dont understand what you mean sorry
RE: Website coding tutorial websites by absorbation on 03-11-2006 at 04:44 PM

Use the code I provided and it should work ;)


RE: Website coding tutorial websites by Plik on 03-11-2006 at 04:44 PM

Remove the h3 tags around the ul and use css to change the formating, like it is designed to do :dodgy:
header tags (h1 to h5) are not ment to style your content, the are intended to be used for headers (captain obvious :P).
Infact you should never use html tags to apply a certain styling to your page, you should always use css rules.
HTML marks up the page, and CSS styles it ;)

Also get rid of that 500kb gif +o( it looks pants because it's over compressed, and its huuuudge.

quote:
Originally posted by Absorbation
just
code:
alt = ""
in your image tags ;)

you better not be implying that he uses blank alts to sidestep the validator, if you are then you should be shot :P
Doing things like that just to sidestep validation make your page no better. Alt attributes are important for people using text browsers and incase the image dies (along with countless other reasons)
if you meant include alt tags that arn't blank then ignore me :P

RE: Website coding tutorial websites by DJKAL on 03-11-2006 at 04:49 PM

ok :)
so i'll change all of the text formatting in my website:| and then sort that (deleting html - replace with CSS :D )
and i did set the "alt=" " " as text anyway :P

and the 504kb image is the background and i want a fade much like that one and the only way to do it that i can think of is to set an image like that - and it has to be big to cover all of the area that the website takes up.
are there any other ways i can get a similar fade without that image?


EDIT:
i think...i think... i think i've sorted it :D
apart from a few errors (11) which i cant see how to fix i think it's ok :D
i am now using CSS instead of HTML for the text :D
and i have alt: "" tags
and DOCTYPE
and META tags
i think its ok

(to check go to: www.2347atc.teaspoondiner.net/index.htm
its only the homepahe in XHTML at the moment!
* DJKAL is happy and runs around bedroom dancing and being hyper
8-)
* DJKAL doesnt do hyper or dancing! so i was lying :dodgy:

Result:       Passed validation
YAAAAAAYYYYYYYYYYYY


RE: Website coding tutorial websites by RaceProUK on 03-12-2006 at 02:22 AM

Instead of using a GIF, use a PNG for the background. It allows full 32-bit colour, and will compress well.


RE: Website coding tutorial websites by DJKAL on 03-12-2006 at 09:22 AM

i thought PNG took longer to load on the internet because if its huge size...

thats why i used gif and not PNG even though i considered PNG for that colour reason


RE: Website coding tutorial websites by absorbation on 03-12-2006 at 12:17 PM

Try PNG8 instead of PNG32, also you can strech the image so it does not need to be so big :P


RE: Website coding tutorial websites by Plik on 03-12-2006 at 12:23 PM

quote:
Originally posted by Absorbation
Try PNG8 instead of PNG32, also you can strech the image so it does not need to be so big :P
PNG8 will mess the colours up exactly like gif, because they both work by limiting the amount of colours in an image :dodgy:

And how would he go about stretching a background image? :-/
RE: Website coding tutorial websites by DJKAL on 03-12-2006 at 12:51 PM

i have saved it as PNG
try and see what its like now :)
www.2347atc.teaspoondiner.net


RE: Website coding tutorial websites by Plik on 03-12-2006 at 01:04 PM

quote:
Originally posted by DJKAL
i have saved it as PNG
try and see what its like now :)
www.2347atc.teaspoondiner.net
1.4 MEGABYTES O.o

it should be illegal to use images of that size as a background image O.o
It took me over 6 seconds to load it :-/
And think of the bandwidth usage, if you have 100 unique visitors, then thats 140mbs of bandwidth just used on a background :-/

Try just having a plain background colour, it wouldn't look that bad, promise :P
RE: Website coding tutorial websites by DJKAL on 03-12-2006 at 01:10 PM

i know the size is a bit :|:O:|:O
but i dont know any way to compress it

nah he wants a fade like that ( the site is for my mate's AC squadron )

EDIT:
the home page (i think)is to plain,
i was wondering if it was possable to get the hyperlinks on the left to go from where they are now and move to the left of the "2347ATC logo" (alt. text:P) but keeping the logo in the same place (centered)

i used:

code:
img.x
{
position:absolute;
left:0px;
top:0px;
z-index:-1
}

but it didnt work  - it jsut made the image "dissapear" behing the background i think.
any way to solve this as the home page would look much better
RE: Website coding tutorial websites by absorbation on 03-12-2006 at 03:20 PM

You can make it fade going down very easy, I suggest you try that ;)


RE: Website coding tutorial websites by DJKAL on 03-12-2006 at 03:21 PM

quote:
Originally posted by Absorbation
You can make it fade going down very easy, I suggest you try that
by coding?

:Ohow?!
RE: Website coding tutorial websites by John Anderton on 03-12-2006 at 03:23 PM

quote:
Originally posted by DJKAL
quote:
Originally posted by Absorbation
You can make it fade going down very easy, I suggest you try that
by coding?

:Ohow?!
http://gtmf.us

You can find almost everytrick in the book on w3schools tbh
RE: Website coding tutorial websites by DJKAL on 03-12-2006 at 03:26 PM

quote:
Originally posted by John Anderton
You can find almost everytrick in the book on w3schools tbh
i havent seen how to set an image to fade though :undecided:
RE: Website coding tutorial websites by absorbation on 03-12-2006 at 03:27 PM

Well you make a background image that takes most of the page (down) but like 1px thick. You then using css make it repeat to the side and stop repeating down. Then add a background colour to finished the fade effect :)

Check out this

code:
<style type="text/css">
body
{
background-color: #000000;
background-image: url('bgdesert.jpg');
background-repeat: repeat-x
}
</style>

RE: Website coding tutorial websites by DJKAL on 03-12-2006 at 03:54 PM

ok - i've done that and its fine.... thanks :D

still no ideas on sorting out the image on the homepage though?


RE: Website coding tutorial websites by absorbation on 03-12-2006 at 03:59 PM

quote:
Originally posted by DJKAL
ok - i've done that and its fine.... thanks :D

still no ideas on sorting out the image on the homepage though?


Easy in your img tag add
code:
align="right"
and it should work. Remove the <br /> tags underneath the logo ;)
RE: Website coding tutorial websites by DJKAL on 03-12-2006 at 04:11 PM

the image wont be in the center then though will it?
i want the image in the center...but the text (hyperlinks)  to the left of it


RE: Website coding tutorial websites by RaceProUK on 03-12-2006 at 04:40 PM

Just one question: why is the page so long? Home pages should really have all the main links in the top part, so you don't have to scroll.


RE: Website coding tutorial websites by DJKAL on 03-12-2006 at 04:43 PM

thats what im tryng to sort ...
i want the links to "rise" and be next to the 2347ATC logo image but whilst keeping that in the center.
to make it "less plain" and also to stop veiwers havint to scrolll


RE: Website coding tutorial websites by RaceProUK on 03-12-2006 at 05:05 PM

I heartily recommend you think about XHTML Strict, and move all formatting to CSS. Of course, if you wish to stick to Transitional, that's fine: it's for 'transitioning' between old HTML and XHTML Strict, after all.

Anyway:
- Remove all the <br />s from around the image
- Swap the h1 and h2
- Use CSS to set the image to 'float', with some positioning attributes to make it float in the right place (you may want to look at <div> tags for this)


RE: Website coding tutorial websites by DJKAL on 03-12-2006 at 05:23 PM

mabye im wrong in my outlook on this bit - but:

quote:
Originally posted by raceprouk
Remove all the <br />s from around the image
their there to mvoe the text down away from the image,
quote:
Originally posted by raceprouk
- Swap the h1 and h2
thats like that to have "a heading" - 2347ATC (Porthcawl)
but the h1 is there to show the page information
quote:
Originally posted by raceprouk
Use CSS to set the image to 'float', with some positioning attributes to make it float in the right place (you may want to look at <div> tags for this)

ummmm... il have to look into doing that 1
RE: Website coding tutorial websites by RaceProUK on 03-12-2006 at 11:46 PM

<h1> is meant to be the page title, <h2> a subtitle. There's a reason there's 6 different heading tags ;)
As for the image: CSS margin-top ;)


RE: Website coding tutorial websites by DJKAL on 03-12-2006 at 11:48 PM

quote:
Originally posted by raceprouk
meant to be

key words - doesnt have to be tha way though :P

why do i need to add a top maring for the image?
RE: Website coding tutorial websites by RaceProUK on 03-13-2006 at 12:00 AM

Adding a margin-top to the image will allow you pixel-fine control of the image location. In fact, since you have two images, assign an ID to each one, then use the '#id' selector to set the margin CSS properties.
Example:
<img src="logo.gif" alt="Logo" id="Logo"/>
with CSS
#Logo {
margin-top: 25px;
}


RE: Website coding tutorial websites by DJKAL on 03-13-2006 at 12:09 AM

ok, :)
can the ID be anything?

but this doesnt make the links able to move up the float next to the logo image whilst keeping that in the center


RE: Website coding tutorial websites by RaceProUK on 03-13-2006 at 12:13 AM

I know it doesn't make the image float: I only told you how to position the top :P
To get the 'floating', try this: wrap the <ul> in a div, wrap that <div> and the <img> in another div, and set the inner <div> to 'float: left;'. Scrap that: it doesn't want to work. Just experiment ;)


RE: Website coding tutorial websites by DJKAL on 03-13-2006 at 12:22 AM

uuuuuhhhoooooooooohhhhhh :cheesy:
ready for my major screw up.....

code:
div.two {float: left}

code:

<div class="two"><img src="2347atc.gif" alt="2347ATC logo" />
                <br />
                <br />
<div><ul>

LIST HERE


</ul></div></div>



is that right? :$

andout of curiosity - what does <div> do?:$:'(
RE: Website coding tutorial websites by Jhrono on 03-13-2006 at 12:24 AM

http://www.google.com/search?sitesearch=www.w3schools.com&as_q=div


RE: Website coding tutorial websites by DJKAL on 03-13-2006 at 11:22 PM

so - the <div> can be used to customise paragraphs and headinhs/= or links differently whiklst only coding it once :cheesy:

i think *-)


RE: Website coding tutorial websites by Plik on 03-14-2006 at 12:11 AM

quote:
Originally posted by DJKAL
so - the <div> can be used to customise paragraphs and headinhs/= or links differently whiklst only coding it once :cheesy:

i think *-)
No, thats what classes are for :dodgy:

Div's act as containers for elements, so you can group them together, which is why they are used so often in modern webdesign, as they allow the coder to group certain elements and position them. Take a look at most div based webdesigns, divs are used to contain the header, and used to seperate multiple columns.

However if you just want to apply the same style to multiple elements you can use the class attribute of the element. See the class selector section of the css syntax page on w3schools.
RE: Website coding tutorial websites by DJKAL on 03-14-2006 at 03:30 AM

i have used the class attributes on the website i've just finished coding (but have just decided to change some of the codes to make it neater ... im gunna link back to a CSS style sheet :) }
but is that code in my other post correct for floating the image to the right of text - but keeping it in the center?