Let's get started!
XHTML
XHTML stands for Extensible Hyper Text Markup Language
XHTML uses markup tags which we call tags.They usually come in pairs, with an opening tag and a closing tag.
Example <html> </html>
<html> .....This tag tells the browser it is reading an xhtml/html document.
<head> .....The head contains the title, meta information and document scripts.
<title> ......Name of the document goes here, it shows up on the title bar at the top of your webpage.
</title> .....Closing tag.
</head> ....Closing tag.
<body> .....What we see on the webpage is written in the body.
</body> ....Closing tag.
</html> ....This is a closing tag, this tag tells the browser the xhtml/html page has ended.
How to save your html page
The first thing you must do is make a new folder, name this folder "webpage". xhtml/html is written in Notepad. After you have written your basic xhtml tags you must save it as a .html file. Name your document index.html. Don't forget to change the file type to all files. Save your html document into your webpage folder.
The first page of any website is always the index page. The index page is your homepage of the website.
Web browsers have to make sense of your html coding and display it on the web. It's important to always write safe xhtml/html codes. If the web browser can't read your codes, what you have written may not look okay on the screen.
Web browers = Internet Explorer, Mozilla Firefox, Netscape, Opera, Sarari.
When writing xhtml/html you must always nest your tags correctly. This means they must be in the right order. Take a look at the Basic Tags above. You will see that the opening title tag and closing title tag are nested inside the head tags.
All xhtml tags require opening and closing tags. Make sure you have all your tags written correctly, otherwise the browser won't read it.
The browsers only understand American spelling. We have to use color and center.
When you are browsing the web and find a really nice looking web page you might like to see how it is written in html/xhtml code. Just go to the top tool bar on your screen, click on VIEW and select SOURCE. In Mozilla it's Page Source.
While writing your own web page it's a good iea to have your source page and web page open at the same time. Have two minimised windows open on your screen, this makes it easy to see what is happening to your web page once you have written the code, saved it and refreshed your web page.
All xhtml/html tags are written inside brackets. <> Often they are called left hand and right hand arrows. Anything you write inside these brackets will not show up on your web page.
It is a good idea to get into the habit of only using lower case when writing xhtml/html codes. Even though you can write <B> or <b> and it will work, when it comes to writing the xhtml/html codes for image files, you must write them exactly the same way as they have been saved into your folder.
So take my advice and only write code in lower case.