Log in

View Full Version : Basic building code request please!



RisingWar
06-11-2006, 04:18 PM
Ok sorry to bother you guys again and on this most basic noob question.

But what is the baisc Body and Heading coding so I can add in buttons on to my site. Plus where \ how do I add them in?

Sorry on this royal pain here.. But I do need to know.

P.S. ill check back later for I am late to work. ~.~

Jack
06-11-2006, 04:47 PM
Hiya RisingWar,

Something I like to do is to view the source of a web page. For example, if you know of a page that is doing what you’re looking for view its source to find out how it's done.

Twey
06-11-2006, 06:50 PM
Buttons?

<button onclick="window.location.href = 'http://www.example.com/someotherurl.html';">Click Here To Go To www.example.com Now! Ha ha ha ha ha!</button>

djr33
06-11-2006, 07:10 PM
"What is the basic code....for a webpage?"

Well...

<html>
<head>
<!--CODE ABOUT THE PAGE GOES HERE, like title info, scripts, css (formatting),
and other special tags that do things, like set the page to refresh-->
</head>
<body><!--note that things like a background go inside the body tag itself
like <body bgcolor="#00000"> for black.>-->
<!--PAGE CONTENT GOES HERE... text, images, forms, and pretty much everything else that isn't setting up something.-->
</body>
</html>

Note that, generally, for scripts, it would be setup like this:

<html>
<head>
<script> YOURSCRIPTHERE </script>
</head>
<body>
the rest of the script can go here, like the image it makes, or the menu it makes, or text, or whatever.
</body>
</html>

Twey
06-11-2006, 07:18 PM
What is the basic code....for a webpage?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><title></title></head><body></body></html>... I'm given to believe.
But I don't think that's what the OP wanted. :)

djr33
06-11-2006, 07:19 PM
Ah, DOCTYPE. Good point.
The title will also help you.
thanks, Twey.

RisingWar
06-12-2006, 05:44 PM
This was kind of what I was hoping for but here. --> http://www.freewebs.com/uctv
That with the buttons and such I wanted to know how to get them added into a script.. lol