--- title: The 3-minute HTML tutorial section: computing --- As computer formats go, HTML is easy and logical. It's all just text that you can edit with any basic text editor, like `gedit` under Gnome, or notepad in Windows. Let's start out with an example. Say you have a sentence, and you want one word in it to be bold. That sentence would look like this: Guess which word is bold? As you may have guessed, the bold word in that sentence is "bold", in between `` and `` tags. The sentence will show up like so: > Guess which word is bold? You now know HTML, the rest is just learning the names of the tags. --- Here's a slightly larger example:
Welcome to my first ever web page! It features:
> Welcome to my first ever web page! > It features: >
>` and `
` is a paragraph. Since HTML treats spaces the same as line breaks, you need to use paragraph tags around each paragraph. Inside the example paragraph is our old friend bold. Then, there's `This is an image, and this is a link.
Which will show up like this: >This is an alt="face" /> image, and > this is a link. The example above has an image tag, with two "attributes", "src" and "alt". The "src" attribute in an `` tag gives the URL to a picture, and the "alt" attribute is the text that's displayed to people who can't see images (blind users, folks without graphics capabilities, or if there's a problem on your web server). The "alt" attribute is required, but you can set it to `""` if there's nothing appropriate for alternate text. Lastly, the link, enclosed inside of `` and ``. The "href" attribute gives the URL that the browser will go to if you click the link. --- That's it for basic HTML, and it should be enough to get you started writing your own pages. So go write something! The best way to learn it is to try stuff out and see what it does. For more neat HTML tags, check out [HTML 3.2 by Examples](http://www.cs.tut.fi/~jkorpela/HTML3.2/), which is what I used to learn HTML.