Self-Paced Web Design by Lesley

 


S.E.O.

You can always test simple code in the website code tester, as long as the code you are testing doesn't rely on another file. You feel free to use use free website code from Lesley the Web Resource. Meanwhile, take a look at some starting pointers on coding your website.

HTML Schema
PHP Schema
Combining PHP & HTML

Books by Lesley the Web Resource

 

Available Summer 2010:

Book
Description
Fix mistakes before your web visitors see them.
Facsinating information about your website.
Fix mistakes after they happen.

Basic Building Blocks

 

HTML Schema[top]
Though stricter versions of HTML exist, the minimum proper format you should follow is:

<html>
<head>
<title>
</title>
</head>
<body>
</body>
<html>

You may put your code in between the <body> and </body> tags and remain confident that anyone with a web browser will see it.

PHP Schema[top]
What's not to love about PHP...except coding! At least you can be confident that all who have a browser will be able to see code that is strictly php-based (e.g., no javascript or any other script residing in it), because it is dependent on whether or not your server accomodates the code. So if you have the ability to render php, your users will see it!

Minimally, your code should begin and end like this:

<?php

?>

Combining PHP & HTML[top]
Whenever combining HTML & PHP (yes, it can be done), you must save it as .php in order to share it across the world wide web.

<?php
?>

<html>
<head>
<title>
</title>
</head>
<body>
</body>
</html>

or

<html>
<head>
<title>
</title>
</head>
<body>


<?php
? >

</body>
</html>

It matters not which code starts. It only matters that you (1) get your code working, and (2) allow your code to be seen - save it with and publish it as .php.