Wednesday, December 15, 2010

How to Use the Required XHTML Tags for a Web Page


There are only a few XHTML tags needed to build a Web page. These tags are:
<html></html>
<head></head>
<title></title>
<body></body>

Once you've finished reading about how to use these elements, try out the tags in your text editor or online.

HTML vs. XHTML
When you create a Web page you are essentially writing text. But you have to provide instructions for how that text will look.
For example, when you write a letter in Word, the default font is usually something like "Times New Roman". But if you change that font, you have given a directive to Word to change how the text looks on the page. Word hides these directives inside the actual meat of the document, but in XHTML they are all out in the open.
XHTML is written as text, surrounded by tags that define how the text should be interpreted by the browser. You can recognize an HTML tag because it is surrounded by less-than (<) and greater-than (>) signs.
A line of XHTML might look like this:
<p>This text is <i>italic</i> and <b>bold</b>.</p>
NOTE: Some email clients do not display the code correctly, go to the online page for most accurate examples.
The browser would write just the sentence "This text is italic and bold." and would do special things to the words surrounded by the <i> </i> and the <b> </b>.
There are also some differences between XHTML and HTML. Read the above link to learn more about the differences between XHTML and HTML.


Web Hosting
What is Web Hosting?
Where you keep your Web page is called "hosting". There are all different types of hosting options, from very expensive commercial Web hosts, to free Web hosts.
In order to work on your Web page, you need a hosting option. There are lots of free Web hosting providers. 110MB is free and dis one of the top 10 most highly rated hosts by my readers. Or you can use your own hosting service through your ISP.
For this class, you will need a place to host your Web pages.

Transferring Your Files to Your Web Host
Once you have a hosting provider, you'll need to get an FTP client or use an online file transfer program provided by your hosting service. Many hosts offer a Web based file transfer program that is easy to use.

Windows, Macintosh, WebTV and Online

When building a Web page there are only a few things you need:
  • a computer or Web appliance with Internet access
  • a text editor, such as Notepad (Windows) or TextEdit (Mac0S X) SimpleText (older Macs)
  • a Web browser
For this class, you should use Notepad if you are on Windows or TextEdit/SimpleText if you are on a Macintosh. You may use any Web browser you are comfortable with.