... published April 25, 2007
So, you got the idea how the basic HTML page is build? If not, read the HTML Tutorial 101: Basics before you continue
Ok, so you think your page got already some interesting content…but I bet the layout is…uhm…let’s say boring…white background and black text…depending on the server default…so, the good news is there are tags which allow you to manipulate how a page is displayed.
Maybe you think there has to be a bad news if I only mention the good news above. Well, there are two bad news:
to write valid XHTML code you need to
1. learn some CSS (=Cascading Style Sheet) and
2. define the DTD (=DocTypeDefinition).
Before you start searching my blog (or the web) for a CSS tutorial you should know that I will cover some basic CSS knowledge in this tutorial and write some CSS Tutorials at a later date.
Now, after you calmed down, let’s go on with this tutorial:
Update: Because of the recent update of the W3C validator I’m introducing here, I had to expand the tutorial and added a couple more things at the bottom of the tutorial. Continue…
... published April 24, 2007
Requirements for the HTML Tutorials:
- a good freeware HTML editor or at least Notepad (not recommended though)
- a place to upload your files, although you can also test your HTML pages on your PC
—————————————–
What is HTML?
HTML stands for HyperText Markup Language and it is the code which is used to create the websites you see.
Since HTML4.01 is less used these days, I will only talk about XHTML1.0 from now on. For a HTML4.01 Tutorial I can only advise you to visit the W3Schools website
So…then what is XHTML?
Basically it is like HTML4.01 although the “X” stands for “EXtensible”.
XHTML is the latest HTML standard and consists of HTML4.01 which was reformulated in XML.
Hey, I know HTML4.01 and I love it! Why should I use XHTML?
My personal opinion:
XHTML is the future of webcoding and it is easier to write valid HTML code. I’m sure you know the famous info texts on older webpages, stating “Optimized for IE” or any other browser. You have less problems to write valid code as all current browsers treat XHTML the same way.
No more “browser-optimizing”!
Even better, XHTML is backwards compatible, meaning the page is displayed the same in IE7 and IE5 or older.
So switch to XHTML, it is really easy
Well, what are the basics you should know about XHTML. Let me explain it two ways: Continue…
... published April 23, 2007
So, here it is, my first tutorial ever!
I will try to explain how to create your first PHP “script”.
Requirements for the PHP Tutorials:
- at least good knowledge about HTML
- Webspace or local server with PHP Support
- Additional: knowledge about CSS
—————————————–
Well, let’s start with the script itself, I will explain everything later:
<?PHP
echo "Hello World!<br />";
print 'Hello World!<br />';
echo "<a href=\"http://www.ruelicke.net\">Hello World link</a><br />";
print '<a href="http://www.ruelicke.net">Hello World link</a>';
?>
Create a HTML file, insert the code above into the <body> and save it. Then rename the HTML file from foo.html to foo.php
Upload the file and access it.
If everything is working, then you should see “Hello World” (without the quotes) 4 times. Congratulations, looks like you just wrote your first PHP script.
Continue…