wysiwyg editors do offer some good tools, however the casual code writer doesnt know how to properly use those tools, and ends up creating a real mess. HTML Kit is a freeware editor that I think you might like to try.
however most people in programming use text editors like notepad, which really offer little to no support in helping you program. personally I use Dreamweaver 8 in code view, however I am trying to learn more about the world of Linux thus I have been venturing into the world of VIM.
and as for proper coding techniques, well that can be written in like a 20page report about what to put where and how do this or do that, but a very very simple example would be something like
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>PAGE TITLE</title>
___JAVASCRIPT_/_CSS_/______
</head>
<body>
__BODY___
</body>
</html>
there are 3 basic ways of integrating javascript / css into a file.
1) Externally: create a new text file and store your code. CSS would need extension .css and havascript would have .js.
this is ideal for things that you will need to use across multiple pages (site wide)
you then would put a link between the <head> </head> to properly link the appropriate file
Code:
<link type="text/css" rel="stylesheet" href="path/to/file.css">
<script type="text/javascript" src="path/to/file.js"></script>
2) Embedded: these are put within <head><head> tag again, except these styles are intended to be used on this single page only
Code:
<style type="text/css">
selector {
property: value;
}
</style>
<script type="text/javascript">
function dText(msg) {
alert(msg);
}
</script>
3) In-line: these are things that you put within the tag you wish to affect. and these will only take effect on this perticular tag.
Code:
<a href="somepage.html" style="background-color:#000000">This will have a black background</a>
<a href="somepage.html" onclick="alert('this link has been clicked'); return false">You are about to be alerted</a>
the body portion of any page is where you should house all of the content of the page. <table> are not meant to be used as the layout schema, but rather for specific content data, such as record keeping. <div> and <p> and other html tags should be the main focus of a layout schema and together with the use of CSS you can create any layout necessary.
for some tutorials on how to do this any many others, you can do a simple search on google for css layouts or html with css or something like that. you can also visit www.w3schools.com which offer many tutorials for beginners and if you have any specific questions about how to do something please dont be afraid to ask
Bookmarks