Hey guys, nobody knows me here so I thought that I would make my first post about something interesting. I have been working in web design since i was about 12. My mother - yes, my mother, taught me how to use Windows XP's FTP command when I was 13. I'm now 19. I code programs in C++, Java, AutoIt(lul), and Python; and websites using flash ActionScript, php, html(and css), asp, and javascript.
I now work with a Web Design company based in Atlanta, GA where i am the head coder. The graphics department gives me two versions of a layout, digital, and a hard copy. Its basically a picture of how they want the page to be laid out. I also get about half a page explaining what language to use (some people just like HTML over PHP, or want ASP for a Windows server), what standards, any elements they'd like included, certain forms, what the form needs to do, or where it needs to get sent to, etc.
It's been a while since i've really worked with HTML as I mostly work with dynamic websites using Php (SQL integration of course), and Javascript.
There are some important tags I would have gone over if I were the one writing this tutorial - one being the table. If you're serious about authoring HTML, you're going to
NEED to understand tables. There are 3 main tags INSIDE of the table tag. Th, Tr, and Td. Table Header, Table Row, and Table Data (cell). You don't
really need th unless you're extremely concerned about the validity of your HTML (
Validity check) The basic syntax is:
- Code:
-
<table>
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
</tr>
</table>
This would look like:
- Code:
-
1 2
3 4
Also, the <script> tag isn't always Javascript. By default, <script> will work with javascript - yes. BUT, you can use almost any scripting language supported by your server. Vbscript, Javascript - even TCL!
One of the replies to this thread uses the "Alert" comand in javascript - using a basic <script> tag. If you were concerned with validity, you should have used:
- Code:
-
<script type='text/javascript'>
function alertBox{
alert ("ERICMS RULES")
//anything else you need to do
}
function otherFunctions{
//any other functions you need
}
</script>
OR, if you have a lot of Javascript and want to make your pages load a bit faster, just put all your functions in a .js file and link it in your html page (in the header)... like this:
- Code:
-
<script type="text/javascript" src="scripts.js"></script>
and then, add to the scripts.js file something like...:
- Code:
-
window.onload = startFunctions; //Tells the browser to load startFunctions()
function startFunctions(){ //contains all of your other functions
sayHello();
otherFunctions();
}
function sayHello{
var name=prompt("What's your name?");
if(name!=null){
document.write("Hey " + name + "! Whats up?");
}
else{
alert("Fine, don't tell me your name. :(")
}
}
function otherFunctions{
//any other functions you need
}
Yeah,... I think I explained everything okay. I recommend that if anyone here is interested in coding, start learning right now. Theres SOOO much out there, and theres so many things for you to learn. Its amazing, and the IT field is growing FAST. So really, if you want to get into programming, don't let anyone stop you.
I'd be more than happy to help with, or explain anything you guys have questions on - just ask!
</pointlesspost>