After a series of advanced courses over the last few weeks, it's really great to be back to basics for a week ... with HTML and simple PHP scripts being the target - training for an organisation who are using PHP to web enable some admin tasks on their intranet.
Back to basics with HTML ...
1. Directives to the browser on how to format are written as tags - <xxx>
through to </xxx>
as the close tag.
1a. Alternative - open and close in one - <xxx />
1b. Attributes can be set in open tags - <xxx yyy="zzz">
Attributes ought be in quotes (but sometimes we forget), and tag and attribute names really should all be lower case these days.
1c. Tags must be "well" nested - i.e. if you open "a" then "b", you must close "b" before "a".
2. All text outside tags displays 'as is' except for new line characters and multiple white spaces, which become single white spaces. Use <br />
for a line break.
2a. If you want an &
character, use &
- there are plenty of others such as ©
for a copyright symbol.
3. Overall page structure - surrounding <html>
tags, with <head>
4. Code to be run on the SERVER to be enclosed in <?php
tag (breaks nromal rule) and this code to generate valid HTML.
<title>Staying at hotels in Leek</title>
<h1>The Peak Weaver's</h1>
This is some HTML. I find it <u>hard to know</u> what
to say when I'm doing a demo!<br /><br />
<Copyright>, & me, <?php print(date("Y")); ?>.<hr />
What a wonderful way of writing text documents!<br />
Please see <a href=smith.html>the chap on my left</a> if
you want the StevEbay stuff. If you want to search,
try <a href=http://www.google.com/>Google</a><hr />
Your height <input type=text name=high><br />
Your weight <input name=heavy><br />
Associated topics are indexed underQ624 - Object Orientation and General technical topics - HTML - An Overview 
The VERY basics of a web page ... and web site - (2013-03-09) 
Text formating for HTML, with PHP - (2008-10-11) 
All the special characters in HTML ... - (2007-12-07) 
Strikingly busy - (2006-09-06) 
FTP - how to make the right transfers - (2005-09-01)W502 - Web and Intranet - HTML Document Anatomy 
How big is a web page these days? Does the size of your pages matter? - (2011-12-26) 
Tags used in writing this blog - (2011-11-12) 
Redirecting to your main domain for correct security keys - (2010-03-13) 
What difference does using the XHTML standard really make? - (2009-06-18) 
Alternative URLs using % symbol encoding - (2008-09-27) 
Getting the community on line - some basics - (2007-11-13) 
Updating a page strictly every minute (PHP, Perl) - (2007-05-14) 
Positioning with Cascading Style Sheets - (2006-12-16)
Some other Articles
Grand Central StationA better alternative to cutting and pasting codeCheddleton, StaffordshireA contrast in room rates and facilitiesHTML - example of a simple web pageIt can take more that one plus one to get two.Private Java Course - A customer's picturesSpeed Networking - a great evening and how we arranged itTwo by One by WiltshirePointers in C