My First Web PageSo we're set? You have your text-editor at the ready. Be sure you use NotePad, NOT Word or even WordPad. Great, let's get going. Ok, let's just go through the steps involved before I actually introduce the code. Today,
A basic page formatAll pages follow this basic structure. Let's start with the first tags you're going to learn. Tags, eh?Yeah. They are the things between the < > brackets. I'm sure you've seen them in someone's code before, and if you haven't, right click this page and select 'View Source'. The code behind this page will appear. Have a quick glance through it. Yes, it probably makes no sense, but that doesn't matter yet. See how, later on, there's some text? It's the words you're reading now. Surrounding all that is a load of stuff, all being encased by these brackets < >. That's all the stuff that goes into making this page. Structure of TagsTags follow a common structure too. For example, to make text
bold, you use the tag So let's make a pageOh yeah. Ok, first step. Open Notepad on a PC, or Simpletext on a Mac. Type this :
These are the standard start and end tags on any page. Note that when I say 'standard', that means 'you must put it there'. This pair are called container tags because they will have other elements contained inside them. Now we'll add in the rest of the structure. Modify your page to this : The smart people would have just copied and pasted that..... That complicated looking bit at the top isn't something you need to worry about just yet. It basically tells your browser which version of HTML you're using in your page. You are going to be using HTML 4.01, the most recent version of HTML. Later you may move to XHTML, but HTML 4 is fine for your first few sites. HTML pages are made up of two distinct parts — the
That's about as complicated as I'm going to make this tutorial. If you want to format your writing, check the next page where you will find all the tags needed to make your page more presentable. For now, stick with saving your page and checking how it looks... Next Step> Saving your masterpiece... |