Google's Matt Cutts talks at a workshop about building a better website.
Showing posts with label html. Show all posts
Showing posts with label html. Show all posts
Friday, February 5, 2010
Thursday, January 21, 2010
The forgotten 'alt' tag
Do you want more people to find your website? SEO is one of the buzzwords of the Internet age, we all want more traffic to our websites, and search engines are the best way to get that traffic.
I don't want to get into usability/accessibility to much...there are many much better resources.
[for example: Usability 101, 25-point Usability, and 50 web Usability Tips]
But, regardless of how much you spend time working on the HTML of your blog or website, there is one really simple thing you can do as an afternoon project one day. Go through all the images on your website and add alt tags.
Why: The alt tag displays text about your image when the image can't be displayed.
Do it for search engines like Google. It is the best information that a website can give directly about the image (but, of course, give your image a good name too, "img_1502.jpg" just isn't that good!). And that is going to help you in search. It isn't perfect, of course...people do use the alt tag to keyword load their website, and so it's effect gets downplayed, but it certainly matters. In my experience, it boosts my images in Google images search quiet a lot...especially using keywords for which I already do well in Google.
There is another reason...some people still use text only browser. And it isn't just blind people. I sometimes use Lynx [an open source, text only browser] when I am studying. There is just less stuff that gets in your way. I would bet that there are many efficiency
conscious people out there who would be really interested in your product or content who do use text only browsers for the same reason. Not a lot, mind you, but it could be that one person who makes the sale.
How: If you are doing your own websites, coding the HTML by hand, I am sure you have no problem. If you are using blogger and don't know much HTML, here is a step by step guideline:
1. In blogger, where you have the main "Posting" section, you have three tags at the top. There is Compose, which gives you a nice easy interface to work with, 'Edit HTML' and 'Preview'. All three should be frequently visited if you really want to optimize how many people find you. Open and start working on your new blog post in 'Compose'
2. Use the image icon to insert your images and choose how and where they sit. You can do this in just plain html if you want more control, but it is easy to just use the icon.
3. Once your image is in the page, click on the 'Edit HTML' tab.
4. Find the image tag. It starts like this <img and contains the url of the image.
5. There may already be an alt tag, saying something like alt='' This tag is within the image tag, which means it comes after you see <img. What you can do is just start typing just to the right of the image tag. Put a space and type alt="two or three words about your image"
6. Finish your blog post and Publish it. If you have Firefox, go to edit > preferences and go to the 'content' tab. Un-check the check-box that says "load images automatically" Now, check your new blog post and see what it says. Does it make sense in the context, or does it sound like you are just loading in a bunch of keywords (not what you want).
I am sure that this info will help you find your alt tags on other platforms as well.
I don't want to get into usability/accessibility to much...there are many much better resources.
[for example: Usability 101, 25-point Usability, and 50 web Usability Tips]
But, regardless of how much you spend time working on the HTML of your blog or website, there is one really simple thing you can do as an afternoon project one day. Go through all the images on your website and add alt tags.
Why: The alt tag displays text about your image when the image can't be displayed.
Do it for search engines like Google. It is the best information that a website can give directly about the image (but, of course, give your image a good name too, "img_1502.jpg" just isn't that good!). And that is going to help you in search. It isn't perfect, of course...people do use the alt tag to keyword load their website, and so it's effect gets downplayed, but it certainly matters. In my experience, it boosts my images in Google images search quiet a lot...especially using keywords for which I already do well in Google.
There is another reason...some people still use text only browser. And it isn't just blind people. I sometimes use Lynx [an open source, text only browser] when I am studying. There is just less stuff that gets in your way. I would bet that there are many efficiency
conscious people out there who would be really interested in your product or content who do use text only browsers for the same reason. Not a lot, mind you, but it could be that one person who makes the sale.
How: If you are doing your own websites, coding the HTML by hand, I am sure you have no problem. If you are using blogger and don't know much HTML, here is a step by step guideline:
1. In blogger, where you have the main "Posting" section, you have three tags at the top. There is Compose, which gives you a nice easy interface to work with, 'Edit HTML' and 'Preview'. All three should be frequently visited if you really want to optimize how many people find you. Open and start working on your new blog post in 'Compose'
2. Use the image icon to insert your images and choose how and where they sit. You can do this in just plain html if you want more control, but it is easy to just use the icon.
3. Once your image is in the page, click on the 'Edit HTML' tab.
4. Find the image tag. It starts like this <img and contains the url of the image.
5. There may already be an alt tag, saying something like alt='' This tag is within the image tag, which means it comes after you see <img. What you can do is just start typing just to the right of the image tag. Put a space and type alt="two or three words about your image"
6. Finish your blog post and Publish it. If you have Firefox, go to edit > preferences and go to the 'content' tab. Un-check the check-box that says "load images automatically" Now, check your new blog post and see what it says. Does it make sense in the context, or does it sound like you are just loading in a bunch of keywords (not what you want).
I am sure that this info will help you find your alt tags on other platforms as well.
Monday, October 5, 2009
Non NERD HTML 9 - FORMS
In the last two tutorials we covered lists and tables. Forms follow naturally on from there.
If you have followed along so far, you should be having a lot of fun? We covered the basics of how the page is structured, threw in Favicons for fun, added links and images, and then gave it structure with lists and tables.
So far, though, the only thing that has given your pages any difference from text on a peace of paper has been links, right? Your readers haven't had much to do while they were on your site.
To give them power is in the realm of JavaScript and other scripting languages. The main way that HTML gives your visitors this power of interacting with your website as a program is through forms.
Forms sound rather boring, but in the world of the World Wide Web, forms can let you do a lot of things, and not really appear to be forms.
The problem with forms is that you need scripts to deal with them. It's not tricky, it's just outside the capability of HTML. So I am going to get you started here, but we will visit forms in great detail later when we are working with php.
Form input types:
Some info:
*NOTE* If you don't remember all the others for now, don't worry to much, but try to remember this one. It is the one you are going to use most often.
The 'file' attribute is used when you want your users to load files, such as a photo sharing site like Flickr might have to let users upload their images to the website.
There is another one called 'hidden'. Don't worry about it...it doesn't mean much to us without scripting, so we'll leave it out for now.
Type in the password box...you can see what happens.
The last two are basically for dealing with the form. The Reset button is a courtesy to your users, especially if you have lots of radio or check box buttons. If they messed up, they can 'reset' the form and start over. The 'Submit' button tells the browser that the form is done and can now be sent off.
There is a totally different one. All the above tags fall as attributes of the 'input' tag. But there is one that has it's own tag, and that is 'textarea'
The 'textarea' tag is written totally different. If you look at the code above you will see that two major differences. The one is that the input tags are not closed. Instead we just add a little '/' backslash to the end of them (have a look). The other is that instead of a 'value' attribute, we add the text between the opening and closing tags.
That will be the topic of the next post...the actual structure of html. Just remember it for now.
Okay, lets talk about a couple other aspects. When we make a form, we are going to enclose it in <form> tags. These 'form' tags allow you to say what you want to do with the form.
Now, forms can be really useful, but for now lets just cover the basics.
In the 'form' tag at the top you have two attributes that are typically used with Forms. The first is the 'action' attribute. The action is simply were will we go when the form is submitted. You may simply re-load the current page, but a script in the page detects that there is a variable and accepts this information and does with it whatever it was told to. It may be emailed back to us, it may send them a confirmation email. It may be an automated ordering system. There are many possibilities. A blog post or post on a social media site. Upload pictures. So much of what you do on the web today is done through forms and the scripts behind them.
Aside from the 'action' attribute, there is another that is typically found in the opening 'form' tag, the method. Now again, this isn't going to mean that much to you yet, but will mean a lot when we start scripting. Stick with these tutorials and you will get the power.
Alright, we are almost done with this html tutorial The next section will cover the way the mark up works and include a few new things. After that we will move on to CSS, where we will keep learning some aspects of html as well.
If you have followed along so far, you should be having a lot of fun? We covered the basics of how the page is structured, threw in Favicons for fun, added links and images, and then gave it structure with lists and tables.
So far, though, the only thing that has given your pages any difference from text on a peace of paper has been links, right? Your readers haven't had much to do while they were on your site.
To give them power is in the realm of JavaScript and other scripting languages. The main way that HTML gives your visitors this power of interacting with your website as a program is through forms.
Forms sound rather boring, but in the world of the World Wide Web, forms can let you do a lot of things, and not really appear to be forms.
The problem with forms is that you need scripts to deal with them. It's not tricky, it's just outside the capability of HTML. So I am going to get you started here, but we will visit forms in great detail later when we are working with php.
Form input types:
| Name | The mark-up | How it looks |
|---|---|---|
| Text *NOTE* | <input type="text" name="x" value="Text..." /> | |
| Button | <input type="button" name="x" value="button" /> | |
| Checkbox | <input type="checkbox" name="x" /> | |
| File | <input type="file" name="x" /> | |
| Password | <input type="password" name="x" /> | |
| Radio | <input type="radio" name="x" /> | |
| Reset | <input type="reset" name="x" value="Reset the Form" /> | |
| Submit | <input type="text" name="x" value="Text..." /> |
Some info:
*NOTE* If you don't remember all the others for now, don't worry to much, but try to remember this one. It is the one you are going to use most often.
The 'file' attribute is used when you want your users to load files, such as a photo sharing site like Flickr might have to let users upload their images to the website.
There is another one called 'hidden'. Don't worry about it...it doesn't mean much to us without scripting, so we'll leave it out for now.
Type in the password box...you can see what happens.
The last two are basically for dealing with the form. The Reset button is a courtesy to your users, especially if you have lots of radio or check box buttons. If they messed up, they can 'reset' the form and start over. The 'Submit' button tells the browser that the form is done and can now be sent off.
There is a totally different one. All the above tags fall as attributes of the 'input' tag. But there is one that has it's own tag, and that is 'textarea'
| Name | The mark-up | How it looks |
|---|---|---|
| Textarea | <textarea name="x">Type here</textarea> |
The 'textarea' tag is written totally different. If you look at the code above you will see that two major differences. The one is that the input tags are not closed. Instead we just add a little '/' backslash to the end of them (have a look). The other is that instead of a 'value' attribute, we add the text between the opening and closing tags.
That will be the topic of the next post...the actual structure of html. Just remember it for now.
Okay, lets talk about a couple other aspects. When we make a form, we are going to enclose it in <form> tags. These 'form' tags allow you to say what you want to do with the form.
Now, forms can be really useful, but for now lets just cover the basics.
In the 'form' tag at the top you have two attributes that are typically used with Forms. The first is the 'action' attribute. The action is simply were will we go when the form is submitted. You may simply re-load the current page, but a script in the page detects that there is a variable and accepts this information and does with it whatever it was told to. It may be emailed back to us, it may send them a confirmation email. It may be an automated ordering system. There are many possibilities. A blog post or post on a social media site. Upload pictures. So much of what you do on the web today is done through forms and the scripts behind them.
Aside from the 'action' attribute, there is another that is typically found in the opening 'form' tag, the method. Now again, this isn't going to mean that much to you yet, but will mean a lot when we start scripting. Stick with these tutorials and you will get the power.
Alright, we are almost done with this html tutorial The next section will cover the way the mark up works and include a few new things. After that we will move on to CSS, where we will keep learning some aspects of html as well.
Posted by
Vernon
at
1:16 PM
Non NERD HTML 9 - FORMS
2009-10-05T13:16:00-07:00
Vernon
free beginner html|free tutorial|html|html form tutorial|learn html|
Comments
Labels:
free beginner html,
free tutorial,
html,
html form tutorial,
learn html
Wednesday, September 30, 2009
Non NERD HTML 8 - TABLES
In the previous tutorial we talked about lists, and they naturally lead on to TABLES, the subject of this post.
If you have kept up so far, then at this point tables become very easy to understand. Really, they are just like lists, only when you create them, they have much for structure. However, it is the most complex thing we have dealt with yet, so there is lots to learn here. But it's not hard, I think? So here is the basic HTML mark-up of a table.
<table>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
Okay, lets break it down:
So, all your "td"s fit in the "tr"s, which fit in the "table".
Keep in mind (for now, we'll talk about how to change that lower down) that you want to have the same number of cells (td) per row (tr) all the way down your table.
Well, we are getting into the more advanced stuff in this HTML tutorial now, and if you have followed along so far you should be ready for some more. So lets add one more mark-up tag associated with tables, "th". It's rather simple:
<table>
<tr>
<th></th>
<th></th>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
The "th" is for the header row, so you make all the cells of that row "th" and then use "td" the rest of the way down. What it does depends on the browser your visitors are using, and what styling you give it with CSS.
We can add a 'caption' tag if you want:
<table>
<caption>My Table</caption>
<tr>
<th>Game</th>
<th>Fun-o-meter</th>
</tr>
<tr>
<td>Catch</td>
<td>93.5%</td>
</tr>
<tr>
<td>Throw</td>
<td>95.663%</td>
</tr>
</table>
Easy so far? Okay, lets add one more thing that you may use from time to time, the "colspan" attribute. Now, I don't want to get ahead of myself, but really you need some style to understand the "colspan". The "colspan" is an attribute of the "td" or "th" tags. It means that you can extend, on that row, the cell over the distance that you put two or more cells in a "tr" below or above. Are you with me? If not, the example below should help.
<html>
<head><title>Tables</title>
<style type="text/css">
table, caption, tr, th, td{
border:1px solid grey;
background-color:#ffeedd;
}
</style>
</head>
<body style="margin:150px;">
<table>
<caption>My Table</caption>
<tr>
<th colspan="2">Game</th>
<th>Fun-o-meter</th>
</tr>
<tr>
<td>1.</td>
<td>Catch</td>
<td>93.5%</td>
</tr>
<tr>
<td>2.</td>
<td>Throw</td>
<td>95.663%</td>
</tr>
</table>
</body>
</html>
Alright, you can see how I did the style tag, and play around with it if you like for now, but we'll cover all that at length when we get into the CSS tutorial. I am not going to explain what I did there for now.
Just an additional note on style. If you look at the HTML mark up of many websites you will see that tables are used as a styling method. You are welcome to do this if you want, but I would strongly discourage it. HTML is moving along and style and mark-up is increasingly being separated. You can start using nested tables and images for corners and things like that, but I would rather say stay away from that, especially while you are first learning HTML. It is the reason why I have taught this tutorial this way. It makes the HTML rather simple, and the CSS much more tricky to grasp, but it is worth it all in the long run.
There was a lot to learn in this tutorial and the best way to get a feel of it is to play around. Try it out. Put tables into lists and tables in tables. Try out a lot of things. Even just making small changes. If you have different browsers, see what different things look like in the different browsers. If you don't, you can download some browsers for free, just Google "free browsers" and you will get lots of options. If you are on a Linux machine, why not try Lynx, a browser you use in terminal?
The next section will talk about Forms, a little more advanced topic than what we have done so far.
If you have kept up so far, then at this point tables become very easy to understand. Really, they are just like lists, only when you create them, they have much for structure. However, it is the most complex thing we have dealt with yet, so there is lots to learn here. But it's not hard, I think? So here is the basic HTML mark-up of a table.
<table>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
Okay, lets break it down:
- The "table" tags, begin and end the table.
- The "tr" tags, begin and end each row (tr - Table Row) in the table.
- The "td" tags, begin and end each cell (td - I don't know what it stands for...look it up and let me know) in the table row.
So, all your "td"s fit in the "tr"s, which fit in the "table".
Keep in mind (for now, we'll talk about how to change that lower down) that you want to have the same number of cells (td) per row (tr) all the way down your table.
Well, we are getting into the more advanced stuff in this HTML tutorial now, and if you have followed along so far you should be ready for some more. So lets add one more mark-up tag associated with tables, "th". It's rather simple:
<table>
<tr>
<th></th>
<th></th>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
The "th" is for the header row, so you make all the cells of that row "th" and then use "td" the rest of the way down. What it does depends on the browser your visitors are using, and what styling you give it with CSS.
We can add a 'caption' tag if you want:
<table>
<caption>My Table</caption>
<tr>
<th>Game</th>
<th>Fun-o-meter</th>
</tr>
<tr>
<td>Catch</td>
<td>93.5%</td>
</tr>
<tr>
<td>Throw</td>
<td>95.663%</td>
</tr>
</table>
Easy so far? Okay, lets add one more thing that you may use from time to time, the "colspan" attribute. Now, I don't want to get ahead of myself, but really you need some style to understand the "colspan". The "colspan" is an attribute of the "td" or "th" tags. It means that you can extend, on that row, the cell over the distance that you put two or more cells in a "tr" below or above. Are you with me? If not, the example below should help.
<html>
<head><title>Tables</title>
<style type="text/css">
table, caption, tr, th, td{
border:1px solid grey;
background-color:#ffeedd;
}
</style>
</head>
<body style="margin:150px;">
<table>
<caption>My Table</caption>
<tr>
<th colspan="2">Game</th>
<th>Fun-o-meter</th>
</tr>
<tr>
<td>1.</td>
<td>Catch</td>
<td>93.5%</td>
</tr>
<tr>
<td>2.</td>
<td>Throw</td>
<td>95.663%</td>
</tr>
</table>
</body>
</html>
Alright, you can see how I did the style tag, and play around with it if you like for now, but we'll cover all that at length when we get into the CSS tutorial. I am not going to explain what I did there for now.
Just an additional note on style. If you look at the HTML mark up of many websites you will see that tables are used as a styling method. You are welcome to do this if you want, but I would strongly discourage it. HTML is moving along and style and mark-up is increasingly being separated. You can start using nested tables and images for corners and things like that, but I would rather say stay away from that, especially while you are first learning HTML. It is the reason why I have taught this tutorial this way. It makes the HTML rather simple, and the CSS much more tricky to grasp, but it is worth it all in the long run.
There was a lot to learn in this tutorial and the best way to get a feel of it is to play around. Try it out. Put tables into lists and tables in tables. Try out a lot of things. Even just making small changes. If you have different browsers, see what different things look like in the different browsers. If you don't, you can download some browsers for free, just Google "free browsers" and you will get lots of options. If you are on a Linux machine, why not try Lynx, a browser you use in terminal?
The next section will talk about Forms, a little more advanced topic than what we have done so far.
Posted by
Vernon
at
11:45 PM
Non NERD HTML 8 - TABLES
2009-09-30T23:45:00-07:00
Vernon
free beginner html|free tutorial|html|html table tutorial|learn html|
Comments
Labels:
free beginner html,
free tutorial,
html,
html table tutorial,
learn html
Non Nerd HTML 7 - LISTS
The Previous Tutorial covered the basics of using images in an HTML document. In this tutorial we are going to talk about lists.
The previous few tutorial sessions have been dealing with rather tricky things. Now we are going to introduce something that is really simple. But don't underestimate the power of lists. As with many aspects of HTML we are going to discover a whole host of uses of lists when we move into styling and beyond into scripting.
Okay, easy lesson. Lists:
We have two kinds of lists in HTML:
Below you can see how to create an un-ordered list. The new tag <li></li> is used to contain the "list item" hence "li"
<ul>
<li>This is one item</li>
<li>This is another</li>
<li>And another</li>
</ul>
You would create an ordered list the same way, except with the <ol></ol> tags.
Right, that was plain and simple. As I said before, once we get to CSS you will find there is a lot you can do with the lists. For now, make sure you learn the two kinds and play around with them. You can make 'nested lists'...lists within lists. See if you can figure that out.
This section leads on to naturally to Tables, and so the next section will be an HTML introduction to Tables.
One other thing. I believe strongly in giving credit where it is due, and for this tutorial I need to keep parsing the HTML so that when I write tags here they don't just get taken as part of the document. To do that I need to parse it. One can do that by hand, but honestly, I don't remember more than about 5 different ones, so I use a tool on this page
The previous few tutorial sessions have been dealing with rather tricky things. Now we are going to introduce something that is really simple. But don't underestimate the power of lists. As with many aspects of HTML we are going to discover a whole host of uses of lists when we move into styling and beyond into scripting.
Okay, easy lesson. Lists:
We have two kinds of lists in HTML:
- Ordered list - Mark-up - <ol></ol> - Renders - like this list we are in, with numbers
- Un-ordered list - Mark-up - <ul></ul> - Renders - with bullets.
Below you can see how to create an un-ordered list. The new tag <li></li> is used to contain the "list item" hence "li"
<ul>
<li>This is one item</li>
<li>This is another</li>
<li>And another</li>
</ul>
You would create an ordered list the same way, except with the <ol></ol> tags.
Right, that was plain and simple. As I said before, once we get to CSS you will find there is a lot you can do with the lists. For now, make sure you learn the two kinds and play around with them. You can make 'nested lists'...lists within lists. See if you can figure that out.
This section leads on to naturally to Tables, and so the next section will be an HTML introduction to Tables.
One other thing. I believe strongly in giving credit where it is due, and for this tutorial I need to keep parsing the HTML so that when I write tags here they don't just get taken as part of the document. To do that I need to parse it. One can do that by hand, but honestly, I don't remember more than about 5 different ones, so I use a tool on this page
Posted by
Vernon
at
9:12 PM
Non Nerd HTML 7 - LISTS
2009-09-30T21:12:00-07:00
Vernon
free beginner html|free tutorial|html|html list tutorial|learn html|
Comments
Labels:
free beginner html,
free tutorial,
html,
html list tutorial,
learn html
Non Nerd HTML 6 - IMAGES
Okay, by the end of this tutorial you can already do quiet a lot with your websites. All it takes is a little creativity. Once we start dealing with style (CSS) later on, we get the whole thing looking much better. But we can already add content in a variety of formats.
This is another really simple technique. What you will need is a digital image on your computer. Take it to the file that your computer stuff is in (copy and paste). If you have a nice camera, then it is likely that your image will be very large. It is a good idea to reduce the size.
If you really don't have any pictures on your computer, perhaps you can get one by ding a Print Screen (Usually there is a button on your keyboard that says something like "Print Scrn"). Otherwise simply make a drawing freehand in Gimp.
Save your picture to the same place that your main html file is.
Now the majic:
<img src="myfathusband.jpg" />
Where "myfathusband.jpg" is the name of your file, as it stands in the folder. If you re-name your image, the html will no longer find it. It needs to be exactly the same.
Alright, that's all you need to know to get the image into your page. However, you should do one other thing, add an 'alt' attribute.
<img src="myfathusband.jpg" alt="My Love" />
If you want to get it from another site, you can, JUST DON'T PLAGIARIZE...ie, don't steal other people's pictures. You are welcome to use any of mine, provided you link back to the site you got it from. My Flickr page is the best to do that from. Click the image below to go to the Flickr page.

In order to put an image file like that into your page you do this:
<img src="http://farm3.static.flickr.com/2445/3936274721_ea1fb3d2e1.jpg" alt="Drill Bit" />
There is a whole host of things we can do with images. For now at least you know how to get them in there. We will get to styling them and doing different things with images when we get into CSS and scripting later on.
There are a whole bunch of file formats for images. Most of the time you are going to deal with jpg, png and gif on your web pages. Be careful of very heavy file formats...pictures become very heavy and make your page load slowly.
In the next section we are going to talk about lists and how to arrange them in HTML. Lists are often used for styling elements, so it's good to get the basics down before moving on to using them with CSS later on.
This is another really simple technique. What you will need is a digital image on your computer. Take it to the file that your computer stuff is in (copy and paste). If you have a nice camera, then it is likely that your image will be very large. It is a good idea to reduce the size.
Open Gimp Image Editor and open the picture's file (open, search through your file hierarchy, and click "open"). Click "Image" go down to "Scale Image", click it, and change the image to something like 200px width. You can play around with this, depending on what you are planning and need the image for.
If you really don't have any pictures on your computer, perhaps you can get one by ding a Print Screen (Usually there is a button on your keyboard that says something like "Print Scrn"). Otherwise simply make a drawing freehand in Gimp.
Save your picture to the same place that your main html file is.
Now the majic:
<img src="myfathusband.jpg" />
Where "myfathusband.jpg" is the name of your file, as it stands in the folder. If you re-name your image, the html will no longer find it. It needs to be exactly the same.
Alright, that's all you need to know to get the image into your page. However, you should do one other thing, add an 'alt' attribute.
<img src="myfathusband.jpg" alt="My Love" />
If you want to get it from another site, you can, JUST DON'T PLAGIARIZE...ie, don't steal other people's pictures. You are welcome to use any of mine, provided you link back to the site you got it from. My Flickr page is the best to do that from. Click the image below to go to the Flickr page.
In order to put an image file like that into your page you do this:
<img src="http://farm3.static.flickr.com/2445/3936274721_ea1fb3d2e1.jpg" alt="Drill Bit" />
There is a whole host of things we can do with images. For now at least you know how to get them in there. We will get to styling them and doing different things with images when we get into CSS and scripting later on.
There are a whole bunch of file formats for images. Most of the time you are going to deal with jpg, png and gif on your web pages. Be careful of very heavy file formats...pictures become very heavy and make your page load slowly.
In the next section we are going to talk about lists and how to arrange them in HTML. Lists are often used for styling elements, so it's good to get the basics down before moving on to using them with CSS later on.
Posted by
Vernon
at
8:41 PM
Non Nerd HTML 6 - IMAGES
2009-09-30T20:41:00-07:00
Vernon
free beginner html|free tutorial|html|html image tutorial|learn html|
Comments
Labels:
free beginner html,
free tutorial,
html,
html image tutorial,
learn html
Non Nerd HTML 5 - LINKS
The Previous Tutorial covered the basics of what the head tags are for and what might go into them.
If you understand a little of how the Internet works, then I am sure you have been biting at the bit to get to this part. There are a lot of things involved in linking, but I am going to cover the basics in a very plain and simple manner.
Here is the mark-up:
<a href=""></a>
The "a" right at the beginning tells you that it's an anchor. Don't worry about it, just remember it.
The second part is the href, it is the "hypertext reference" This is telling it, if you press this anchor, take me (or rather, load in my browser) this page.
What page? Okay, we didn't put anything in there yet. There can be three main links from our point of view:
1. Links to other sites.
2. Links to other files within your site
3. Links within a page...basically just jumps down long pages.
The first two are basically exactly the same, it's only how much of the URL you need to write that changes. Okay, lets say you are creating a website that lists great, easy to follow HTML tutorials, and you think this one is just grand. Here is how you link to it:
<a href="http://nonnerd.blogspot.com/"></a>
For the time being we have an anchor, but nothing for the website's user to click on. Basically anything you put between the opening and closing anchor tags becomes a "hyperlink" So, let's put something in there:
<a href="http://nonnerd.blogspot.com/">A simple and comprehensive HTML tutorial</a>
Great, now the user knows where it is going to take him. Now,if you have used the Internet much, you would know that often if you click over a link (or hyperlink) you get a little text that pops up telling you a little about this link. You add this with the "title" attribut in the hyperlink tag. Here's how:
<a href="http://nonnerd.blogspot.com/" title="Non Nerd Hacking HTML tutorial">A simple and comprehensive HTML tutorial</a>
If you want the link to open in a new tab (or new window if your user is using a really old browser) then use the target attribute, like this:
<a href="http://nonnerd.blogspot.com/" target="_blank" title="Non Nerd Hacking HTML tutorial">A simple and comprehensive HTML tutorial</a>
PLEASE, for the sake of web surfers the world over, don't do to much of that. Use it only were really appropriate.
Now, if you are simply navigating your own site, it depends if you put the file in different folders. If it's all in the same place, you simply need the file name:
<a href="index.html" title="Home">Your Website's Home Page</a>
And, lastly, if you want to move within the same page, do it like so:
1. Name the area you would like to 'jump' to:
<a name="#comeHere">The info which we are going to</a>
2. Create a link to go there, further up the page (or down, such as a "back to the top of the page" type link):
<a href="#comeHere">Where we go from</a>
So note that in the first part, "name" replaced "href"
By the way, just to give credit where it is due, I use this last technique so seldom that I had to look it up in another tutorial:
<a href="http://www.w3schools.com/html/html_links.asp" title="HTML Links">www.w3schools.com html links page"</a>
Links are usually blue and underlined. We'll get to styling links when we get to CSS.
Alright, you may have noticed that I keep asking for links to this page. Links are really what the whole world wide WEB is all about, it's the fabric of the web. One page, loaded on a random server, can only be accessed by those whole know the exact URL if they were not able to go there through a link. Can you imagine a website getting hundreds, thousands or even millions of page views if there was no link. No way.
Links build authority. The more links a site has to it, so long as those links themselves are from good, legitimate website, the greater the perceived value of the website being linked to. If you get into web development you will hear about SEO (Search Engine Optimization). It involves all sorts of things, but basically links to your site builds authority with search engines, and that way your site floats to the top in their results.
There is another side to it. There is this mad "link Building" that goes on, with different blogs and websites looking for their place in the sun by collecting a lot of links pointing to their site. It all gets a bit crazy. Be careful with this right from the start. Write good stuff, ask for some links, but don't go to link farms and exchange your links with everyone.
If you stick around for a while, we will one day get to web development and touch on SEO over there. I just wanted to give you an initial 'head's up' about something that is a little crazy on the WWW.
In the next tutorial we are going to start to stick some images into our pages. Fun, fun, fun.
If you understand a little of how the Internet works, then I am sure you have been biting at the bit to get to this part. There are a lot of things involved in linking, but I am going to cover the basics in a very plain and simple manner.
Here is the mark-up:
<a href=""></a>
The "a" right at the beginning tells you that it's an anchor. Don't worry about it, just remember it.
The second part is the href, it is the "hypertext reference" This is telling it, if you press this anchor, take me (or rather, load in my browser) this page.
What page? Okay, we didn't put anything in there yet. There can be three main links from our point of view:
1. Links to other sites.
2. Links to other files within your site
3. Links within a page...basically just jumps down long pages.
The first two are basically exactly the same, it's only how much of the URL you need to write that changes. Okay, lets say you are creating a website that lists great, easy to follow HTML tutorials, and you think this one is just grand. Here is how you link to it:
<a href="http://nonnerd.blogspot.com/"></a>
For the time being we have an anchor, but nothing for the website's user to click on. Basically anything you put between the opening and closing anchor tags becomes a "hyperlink" So, let's put something in there:
<a href="http://nonnerd.blogspot.com/">A simple and comprehensive HTML tutorial</a>
Great, now the user knows where it is going to take him. Now,if you have used the Internet much, you would know that often if you click over a link (or hyperlink) you get a little text that pops up telling you a little about this link. You add this with the "title" attribut in the hyperlink tag. Here's how:
<a href="http://nonnerd.blogspot.com/" title="Non Nerd Hacking HTML tutorial">A simple and comprehensive HTML tutorial</a>
If you want the link to open in a new tab (or new window if your user is using a really old browser) then use the target attribute, like this:
<a href="http://nonnerd.blogspot.com/" target="_blank" title="Non Nerd Hacking HTML tutorial">A simple and comprehensive HTML tutorial</a>
PLEASE, for the sake of web surfers the world over, don't do to much of that. Use it only were really appropriate.
Now, if you are simply navigating your own site, it depends if you put the file in different folders. If it's all in the same place, you simply need the file name:
<a href="index.html" title="Home">Your Website's Home Page</a>
And, lastly, if you want to move within the same page, do it like so:
1. Name the area you would like to 'jump' to:
<a name="#comeHere">The info which we are going to</a>
2. Create a link to go there, further up the page (or down, such as a "back to the top of the page" type link):
<a href="#comeHere">Where we go from</a>
So note that in the first part, "name" replaced "href"
By the way, just to give credit where it is due, I use this last technique so seldom that I had to look it up in another tutorial:
<a href="http://www.w3schools.com/html/html_links.asp" title="HTML Links">www.w3schools.com html links page"</a>
Links are usually blue and underlined. We'll get to styling links when we get to CSS.
About Links
Alright, you may have noticed that I keep asking for links to this page. Links are really what the whole world wide WEB is all about, it's the fabric of the web. One page, loaded on a random server, can only be accessed by those whole know the exact URL if they were not able to go there through a link. Can you imagine a website getting hundreds, thousands or even millions of page views if there was no link. No way.
Links build authority. The more links a site has to it, so long as those links themselves are from good, legitimate website, the greater the perceived value of the website being linked to. If you get into web development you will hear about SEO (Search Engine Optimization). It involves all sorts of things, but basically links to your site builds authority with search engines, and that way your site floats to the top in their results.
There is another side to it. There is this mad "link Building" that goes on, with different blogs and websites looking for their place in the sun by collecting a lot of links pointing to their site. It all gets a bit crazy. Be careful with this right from the start. Write good stuff, ask for some links, but don't go to link farms and exchange your links with everyone.
If you stick around for a while, we will one day get to web development and touch on SEO over there. I just wanted to give you an initial 'head's up' about something that is a little crazy on the WWW.
In the next tutorial we are going to start to stick some images into our pages. Fun, fun, fun.
Posted by
Vernon
at
11:04 AM
Non Nerd HTML 5 - LINKS
2009-09-30T11:04:00-07:00
Vernon
free beginner html|free tutorial|html|learn html|links tutorial|
Comments
Labels:
free beginner html,
free tutorial,
html,
learn html,
links tutorial
Non Nerd HTML 4 - Adding a Favicon
The Previous Tutorial covered the basics of what the head tags are for and what might go into them.
This tutorial is put in here just for a little fun. It's not that important at this point, but if you browse the internet with most modern browsers you will see a little icon on the browser's bar and tabs next to the title of the page you are on. These little things are called 'Favicons' and I am going to go through how you can make one and put it onto your website.
Here is a icon which can be used for a favicon:
So, lets do this backwards. First I am going to show you how to put it into your site, using my favicon, and the I will show you how to make it.
So, below is the page we have worked on before, with one new line added after the <title> line. This line has a favicon of mine in there, just so you can try it out.
<html>
<head>
<title>Your Page Title</title>
<link rel="icon" type="image/gif" href="http://vernforms.googlepages.com/NonNerd.ico" />
</head>
<body>
<p>Learning HTML is not that hard. Actually, it is rather fun. It is amazing how easy it is to learn the initial stuff that helps me get web pages up in my web browser.</p>
<p>I will test this in my browser to see what it does shortly. I guess that if I start building lots of websites, the paragraph tag will become important to me</p>
</body>
</html>
Lets break down that line a bit:
This tutorial is put in here just for a little fun. It's not that important at this point, but if you browse the internet with most modern browsers you will see a little icon on the browser's bar and tabs next to the title of the page you are on. These little things are called 'Favicons' and I am going to go through how you can make one and put it onto your website.
Here is a icon which can be used for a favicon:
So, lets do this backwards. First I am going to show you how to put it into your site, using my favicon, and the I will show you how to make it.
So, below is the page we have worked on before, with one new line added after the <title> line. This line has a favicon of mine in there, just so you can try it out.
<html>
<head>
<title>Your Page Title</title>
<link rel="icon" type="image/gif" href="http://vernforms.googlepages.com/NonNerd.ico" />
</head>
<body>
<p>Learning HTML is not that hard. Actually, it is rather fun. It is amazing how easy it is to learn the initial stuff that helps me get web pages up in my web browser.</p>
<p>I will test this in my browser to see what it does shortly. I guess that if I start building lots of websites, the paragraph tag will become important to me</p>
</body>
</html>
Lets break down that line a bit:
- Link - This tells the browser that you want to use something from another page in this page.
- rel - This describes the RELATIONSHIP that that page has with this one.
- type - Well, what type is it, of course. No points for guessing that one!
- href - We'll get to this more later, but this links to another page. It is a "Hypertext Reference". Hypertext is all hyper, it wants to reach out somewhere out of your page.
http://vernforms.googlepages.com/NonNerd.ico
This is called a URL (Uniform Resource Locater...if you just needed to know), and it tells you where that file is. This favicon is located on my own Googlepages, which I mainly use just for this kind of stuff. For now, go ahead and just use mine. If you want to use it on a website on the Internet, please feel free. You can download it and stick it on your server...we'll get to all that later. Just do me one favor if you use that, or any other image of mine...give me a link back to this site.
Anyway, if you save that page as is you will now see the little favicon displayed when you load that web page into your browser. So, how do we go about making one of these. There could be many ways, but I will show you with Gimp.
Alright, lets do this step by step:
1. Get Gimp at www.Gimp.org
2. I will assume that you installed everything fine. Then start up Gimp.
3. Go to "File" in the main section. Not in the little Toolbar floating section.
4. Under "File" choose "New"
5. When the "New" dialog box comes up, change the values for the size of the image to 160px by 160px. BEFORE you close, also go down and change the "Advanced Options" and click that to open it up. Go down to where it says "Fill With" and choose "Transparency"
6. The new image opens up. The squares indicate the "transparent" layer.
7. Do what you want. Keep in mind that you will need to keep it simple in order to still see it well when you create a Favicon.
8. Okay, once you have it as you want it, you need to decrease the size. Go to "Images" and look for "Scale Image". Where it says "Width" change the value from 160 to 16. You don't have to worry about the width...you'll see the little change link on the right which shows you that the two are linked (which they are by default...if not, just click it to lock them). Click "Scale" on the bottom right.
9. Okay, now the important part. Save the thing. Go to "File" "Save As" and navigate to the file that you want to save it in. In the name bar, type the file name you want for it, and then end it with a file extension ".ico" so you may want something like "myFavicon.ico" or "I.ico" or whatever. It will ask you about a 32bit compression, just click "Save"
This tutorial was created for use on Gimp 2.6.6 on Ubuntu Linux. If you have another version, you should have no problem following along. It may just require a little more innovation to get the thing working. It is, after all, a rather simple process.
In the next tutorial we will look at perhaps the most important thing about html and the world wide web...LINKS.
This is called a URL (Uniform Resource Locater...if you just needed to know), and it tells you where that file is. This favicon is located on my own Googlepages, which I mainly use just for this kind of stuff. For now, go ahead and just use mine. If you want to use it on a website on the Internet, please feel free. You can download it and stick it on your server...we'll get to all that later. Just do me one favor if you use that, or any other image of mine...give me a link back to this site.
Anyway, if you save that page as is you will now see the little favicon displayed when you load that web page into your browser. So, how do we go about making one of these. There could be many ways, but I will show you with Gimp.
Alright, lets do this step by step:
1. Get Gimp at www.Gimp.org
2. I will assume that you installed everything fine. Then start up Gimp.
3. Go to "File" in the main section. Not in the little Toolbar floating section.
4. Under "File" choose "New"
5. When the "New" dialog box comes up, change the values for the size of the image to 160px by 160px. BEFORE you close, also go down and change the "Advanced Options" and click that to open it up. Go down to where it says "Fill With" and choose "Transparency"
6. The new image opens up. The squares indicate the "transparent" layer.
7. Do what you want. Keep in mind that you will need to keep it simple in order to still see it well when you create a Favicon.
8. Okay, once you have it as you want it, you need to decrease the size. Go to "Images" and look for "Scale Image". Where it says "Width" change the value from 160 to 16. You don't have to worry about the width...you'll see the little change link on the right which shows you that the two are linked (which they are by default...if not, just click it to lock them). Click "Scale" on the bottom right.
9. Okay, now the important part. Save the thing. Go to "File" "Save As" and navigate to the file that you want to save it in. In the name bar, type the file name you want for it, and then end it with a file extension ".ico" so you may want something like "myFavicon.ico" or "I.ico" or whatever. It will ask you about a 32bit compression, just click "Save"
This tutorial was created for use on Gimp 2.6.6 on Ubuntu Linux. If you have another version, you should have no problem following along. It may just require a little more innovation to get the thing working. It is, after all, a rather simple process.
In the next tutorial we will look at perhaps the most important thing about html and the world wide web...LINKS.
Posted by
Vernon
at
6:58 AM
Non Nerd HTML 4 - Adding a Favicon
2009-09-30T06:58:00-07:00
Vernon
favicon|free beginner html|free tutorial|header tags|html|learn html|
Comments
Labels:
favicon,
free beginner html,
free tutorial,
header tags,
html,
learn html
Friday, September 25, 2009
Non Nerd HTML 3
This is the third post in a series of posts to help teach you HTML. It's really simple to learn the basics of HTML and this tutorial will take you through step by step.
In the first part of this tutorial I showed you how to just get started and be able to view something in a browser such as Firefox or Google Chrome.
In the second part of the tutorial I taught you the basics of formatting body text, using the paragraph, header and div tags.
In this part I am going to explain the basic header tags and explain what the header is for.
Lets start with what we had before and carry on from there:
If you use Firefox or most modern browsers, you will have the option of tabbed browsing. If you run the above page in your browser, you will see that the tabs don't give you a nice name for your page. How do you change that? With the title tags.
<title>Your Page Title</title>
The title tags are important for many reasons, including telling search engines what your page is all about. Various browsers will display the text of the title tag in different places, but often it shows up on the top left hand side of the browser on your screen.
There are many things that can also go into your web page between the head tags. These include:
1. DOCTYPE Declaration - where you tell the browser which 'flavor' of html you are using. We will cover that later.
2. Meta tags - or the "about" tags. These tell search engines, browsers and servers information about your page, and can even have simply the name and contact for the webmaster (in this case - you.) We'll get to these.
3. Various scripting tags...We'll talk about these in future tutorials such as when we start with JavaScript.
4. Style tags - These help us keep the styling of our page separate, and let us put it into a separate file, or into the header. We'll cover this in great depth in the CSS tutorial.
5. There are various other things that can go in here. Our next tutorial will be a brief one of these, just for fun...adding a favicon
As you can see, an html head section, i.e. the bit between the head tags, is basically providing information about your page, how you want it styled, displayed, searched and what stuff you want to go on on the page with scripts.
In the first part of this tutorial I showed you how to just get started and be able to view something in a browser such as Firefox or Google Chrome.
In the second part of the tutorial I taught you the basics of formatting body text, using the paragraph, header and div tags.
In this part I am going to explain the basic header tags and explain what the header is for.
Lets start with what we had before and carry on from there:
<html>
<head></head>
<body>
<p>Learning HTML is not that hard. Actually, it is rather fun. It is amazing how easy it is to learn the initial stuff that helps me get web pages up in my web browser.</p>
<p>I will test this in my browser to see what it does shortly. I guess that if I start building lots of websites, the paragraph tag will become important to me</p>
</body>
</html>
<head></head>
<body>
<p>Learning HTML is not that hard. Actually, it is rather fun. It is amazing how easy it is to learn the initial stuff that helps me get web pages up in my web browser.</p>
<p>I will test this in my browser to see what it does shortly. I guess that if I start building lots of websites, the paragraph tag will become important to me</p>
</body>
</html>
If you use Firefox or most modern browsers, you will have the option of tabbed browsing. If you run the above page in your browser, you will see that the tabs don't give you a nice name for your page. How do you change that? With the title tags.
<title>Your Page Title</title>
The title tags are important for many reasons, including telling search engines what your page is all about. Various browsers will display the text of the title tag in different places, but often it shows up on the top left hand side of the browser on your screen.
<html>
<head>
<title>Your Page Title</title>
</head>
<body>
<p>Learning HTML is not that hard. Actually, it is rather fun. It is amazing how easy it is to learn the initial stuff that helps me get web pages up in my web browser.</p>
<p>I will test this in my browser to see what it does shortly. I guess that if I start building lots of websites, the paragraph tag will become important to me</p>
</body>
</html>
<head>
<title>Your Page Title</title>
</head>
<body>
<p>Learning HTML is not that hard. Actually, it is rather fun. It is amazing how easy it is to learn the initial stuff that helps me get web pages up in my web browser.</p>
<p>I will test this in my browser to see what it does shortly. I guess that if I start building lots of websites, the paragraph tag will become important to me</p>
</body>
</html>
There are many things that can also go into your web page between the head tags. These include:
1. DOCTYPE Declaration - where you tell the browser which 'flavor' of html you are using. We will cover that later.
2. Meta tags - or the "about" tags. These tell search engines, browsers and servers information about your page, and can even have simply the name and contact for the webmaster (in this case - you.) We'll get to these.
3. Various scripting tags...We'll talk about these in future tutorials such as when we start with JavaScript.
4. Style tags - These help us keep the styling of our page separate, and let us put it into a separate file, or into the header. We'll cover this in great depth in the CSS tutorial.
5. There are various other things that can go in here. Our next tutorial will be a brief one of these, just for fun...adding a favicon
As you can see, an html head section, i.e. the bit between the head tags, is basically providing information about your page, how you want it styled, displayed, searched and what stuff you want to go on on the page with scripts.
Posted by
Vernon
at
10:22 PM
Non Nerd HTML 3
2009-09-25T22:22:00-07:00
Vernon
free beginner html|free tutorial|header tags|html|learn html|
Comments
Labels:
free beginner html,
free tutorial,
header tags,
html,
learn html
Non Nerd HTML 2
This is the second post in a series of posts to help teach you HTML. It's really simple to learn the basics of HTML and this tutorial will take you through step by step.
In the first part of this tutorial I showed you how to just get started and be able to view something in a browser such as Firefox or Google Chrome.
Now in this second part I am going to deal with the most important tags in your body element. This lets us design our body a little bit, rather than just having a plain bunch of text running down the page.
So in this page we will cover the most basic tags for the body section. This is the stuff that you will see displayed in the browser:
1. Paragraph tags <p>Paragraph Tag</p>
2. Header tags <h1>You get from h1</h1><h6>Through to h6</h6>
3. Division tags <div>Division Tag</div>
If you read the previous HTML tutorial on this blog, then this becomes rather easy to implement. However, there are a few new things to learn about how these tags are used.
As mentioned above, this tag goes into the body part of your html document. This tag is rather simple, it is for distinguishing one paragraph from another. Let's create a simple example and then I want you to try it out in your text editor and see if you can get it to work:
Okay, lets learn a few things. First of all, you should notice that we don't have the <body> and </body> tags on the same line any more. This is important, so pay attention: In HTML spaces are ignored except for spaces between lines of text, which simply add an additional space.
Also important is that in a line, only one space is used. Therefore, if you look at the way that I have written he HTML code above, after the end of each sentence there is a little bit of 'code' in there, . This little bit of HTML code means "please add another space here." It is very useful, because you can put in multiple spaces wherever you need them in your text. It is the only way to get a double space.
You can do the same thing with a line return and then the peace of code. Experiment and see if you understand how it works.
The paragraph tag, and same with the header tags below, take you onto a new line and divide the text from other text in the page.
Therefore, if you did this:
It would do the same as if you had written the code on different lines. It is so important to 'get' the concept of spaces in html versus what you will get on the page, that you should play around with a few example of it...try it out and see what you get. The more you practice at this stage, the more firm your foundation will be once we start adding style and later scripting to your HTML page.
If you understood the paragraph tag, then the header tags are really easy to understand as well. They are for making headers in your page. Of course.
There are six levels of tags, and for a number of reasons it is usually best to start with the biggest..the <h1> tag (perhaps if you use it for the actual title of your page) and then work your way down the list. It is not a hard and fast rule, simply a good idea. You will find you seldom come to the <h6>. Most of the time you will probably be fine with <h1>, <h2>, <h3> and <h4>.
Just like the paragraph tag, these header tags all start on a new line, and the lines themselves correspond to the size of the lettering in that title tag. Again, play with them and see what happens.
The actual style of these tags are not set, and so different browsers display the tags slightly differently. That's an important thing to start to learn about HTML, that you need to try to always develop your pages as a compromise between different browser. That discussion belongs more in the styling section, when we will learn CSS.
The previous two tags seem functional right from the beginning. In fact, just learning the little bit of html you have up to here, you could produce a web page, that you could put up online, and show nicely separated text and titles as a peace of written work.
But the Division or rather 'div' tag actually does very little by itself. However, think of it as a marker for the different parts of your page. This is going to become more important as you learn styling and eventually scripting later on. It gives you sections of your text to work on...So you could have a header section, a main body section, a navigation section (we'll talk about navigation in a tutorial soon), a footer and so on. Each of these bits can be styled differently or told to do different things. For now only worry about remembering to put them in as you divide up the different parts of your HTML document.
<div>Division</div>
In the first part of this tutorial I showed you how to just get started and be able to view something in a browser such as Firefox or Google Chrome.
Now in this second part I am going to deal with the most important tags in your body element. This lets us design our body a little bit, rather than just having a plain bunch of text running down the page.
So in this page we will cover the most basic tags for the body section. This is the stuff that you will see displayed in the browser:
1. Paragraph tags <p>Paragraph Tag</p>
2. Header tags <h1>You get from h1</h1><h6>Through to h6</h6>
3. Division tags <div>Division Tag</div>
If you read the previous HTML tutorial on this blog, then this becomes rather easy to implement. However, there are a few new things to learn about how these tags are used.
Paragraph Tags
Lets start with the Paragraph Tag <p>As mentioned above, this tag goes into the body part of your html document. This tag is rather simple, it is for distinguishing one paragraph from another. Let's create a simple example and then I want you to try it out in your text editor and see if you can get it to work:
<html>
<head></head>
<body>
<p>Learning HTML is not that hard. Actually, it is rather fun. It is amazing how easy it is to learn the initial stuff that helps me get web pages up in my web browser.</p>
<p>I will test this in my browser to see what it does shortly. I guess that if I start building lots of websites, the paragraph tag will become important to me</p>
</body>
</html>
<head></head>
<body>
<p>Learning HTML is not that hard. Actually, it is rather fun. It is amazing how easy it is to learn the initial stuff that helps me get web pages up in my web browser.</p>
<p>I will test this in my browser to see what it does shortly. I guess that if I start building lots of websites, the paragraph tag will become important to me</p>
</body>
</html>
Okay, lets learn a few things. First of all, you should notice that we don't have the <body> and </body> tags on the same line any more. This is important, so pay attention: In HTML spaces are ignored except for spaces between lines of text, which simply add an additional space.
Also important is that in a line, only one space is used. Therefore, if you look at the way that I have written he HTML code above, after the end of each sentence there is a little bit of 'code' in there, . This little bit of HTML code means "please add another space here." It is very useful, because you can put in multiple spaces wherever you need them in your text. It is the only way to get a double space.
You can do the same thing with a line return and then the peace of code. Experiment and see if you understand how it works.
The paragraph tag, and same with the header tags below, take you onto a new line and divide the text from other text in the page.
Therefore, if you did this:
<p>I am going</p><p>break up this little</p><p>peace of text</p>
It would do the same as if you had written the code on different lines. It is so important to 'get' the concept of spaces in html versus what you will get on the page, that you should play around with a few example of it...try it out and see what you get. The more you practice at this stage, the more firm your foundation will be once we start adding style and later scripting to your HTML page.
Header Tags
If you understood the paragraph tag, then the header tags are really easy to understand as well. They are for making headers in your page. Of course.
There are six levels of tags, and for a number of reasons it is usually best to start with the biggest..the <h1> tag (perhaps if you use it for the actual title of your page) and then work your way down the list. It is not a hard and fast rule, simply a good idea. You will find you seldom come to the <h6>. Most of the time you will probably be fine with <h1>, <h2>, <h3> and <h4>.
Just like the paragraph tag, these header tags all start on a new line, and the lines themselves correspond to the size of the lettering in that title tag. Again, play with them and see what happens.
The actual style of these tags are not set, and so different browsers display the tags slightly differently. That's an important thing to start to learn about HTML, that you need to try to always develop your pages as a compromise between different browser. That discussion belongs more in the styling section, when we will learn CSS.
Division Tags
The previous two tags seem functional right from the beginning. In fact, just learning the little bit of html you have up to here, you could produce a web page, that you could put up online, and show nicely separated text and titles as a peace of written work.
But the Division or rather 'div' tag actually does very little by itself. However, think of it as a marker for the different parts of your page. This is going to become more important as you learn styling and eventually scripting later on. It gives you sections of your text to work on...So you could have a header section, a main body section, a navigation section (we'll talk about navigation in a tutorial soon), a footer and so on. Each of these bits can be styled differently or told to do different things. For now only worry about remembering to put them in as you divide up the different parts of your HTML document.
<div>Division</div>
Posted by
Vernon
at
3:57 PM
Non Nerd HTML 2
2009-09-25T15:57:00-07:00
Vernon
free beginner html|free tutorial|html|learn html|
Comments
Labels:
free beginner html,
free tutorial,
html,
learn html
Non Nerd HTML 1
Lets see where we are:
I am making the following assumptions:
1. You have a computer at your disposal
2. You do know how to turn it on, and get your operating system up and running.
3. You know what a web browser is - the program that you click on to get to the Internet.
4. More seriously, do you know how to find a file and navigate your file directory?
5. Do you know what a text editor is?
6. I use
Ubuntu Linux, and it is going to be easiest to follow along if you do to. If not, don't worry, we will still get you up to speed. If you use Internet Explorer and can't get certain things to work, please email me or leave a note in the comments. Alternatively, you could send me a tweet.
Good, if you are still with me, then lets jump right in.
We'll get to the "what is" stuff later. Lets get right into making our first web page.
Open a text editor, a really plain, basic one. If you are on Windows, use Notepad and if you are on Linux, use the default text editor. Whatever you use, don't use the
html is typed in mark-up. Don't get to worried about that for now. Type the following:
<html>
<head></head>
<body></body>
</html>
Now go "Save As" and choose a location in your file system to save it. You'll want a folder for all this stuff, because we are going to do a lot of this. Why not make a folder called "Webs" and save this file as "WebOne.htm"
So what have you got now. You have a fully functional web page that you can upload to the Internet, if you wanted to (please don't...there is enough rubbish as it is.)
Your web page does....nothing. Nothing yet. Lets look at what we have so we can understand a little of how the whole thing works.
We basically have three 'containers' each of which starts with an opening tag and a closing tag. are the three opening tags and, of course, and are the three closing tags. Get use to this...It's basically what HTML is all about.
Now, lets do something with it. We want some content. Think of the stuff in the body tags as being the bit that actually ends up on the screen. So, lets add some stuff here.
In your text editor add a little text between the 'body' tags:
<html>
<head></head>
<body>Shine on you crazy... </body>
</html>
Now go ahead and save it. You need to save it with either a .html or .htm file extension. Either will do fine.
The next step is to actually see it in your browser. Open your browser (Internet Explorer, or even better, Mozilla Firefox.)
Note: In this tutorial I will later on start to talk about various browsers, but while we are learning the basics, I am going to mostly assume that you are using Firefox.

Go to the place where you enter the websites that you want to go to and clear whatever is there (probably your default home page.) Now type the file path to your new HTML file. In Linux it is going to be something like this:
file:///home/you/webs/WebOne.htm
Saving the file in Ubuntu Linux.
Saving on Windows XP
And hit return/enter and you should see your page displayed. If it didn't work, please post in the comments or on send me a message on Twitter
Thats the first step. A really easy first step. To get it right you would now have learned:
1. The three basic mark up tags that form a web page (html, head and body)
2. Where the stuff that you see on the page goes (i.e. between the body tag)
3. How to save your htm file
Right, so now you can put readable content into an html page. That's great. Celebrate. But it was easy, wasn't it. In the next section we are going to cover the basics of formating the stuff in your body.
If you enjoy learning html with me, please subscribe to this blog
I am making the following assumptions:
1. You have a computer at your disposal
2. You do know how to turn it on, and get your operating system up and running.
3. You know what a web browser is - the program that you click on to get to the Internet.
4. More seriously, do you know how to find a file and navigate your file directory?
5. Do you know what a text editor is?
6. I use
Good, if you are still with me, then lets jump right in.
We'll get to the "what is" stuff later. Lets get right into making our first web page.
Open a text editor, a really plain, basic one. If you are on Windows, use Notepad and if you are on Linux, use the default text editor. Whatever you use, don't use the
html is typed in mark-up. Don't get to worried about that for now. Type the following:
<html>
<head></head>
<body></body>
</html>
Now go "Save As" and choose a location in your file system to save it. You'll want a folder for all this stuff, because we are going to do a lot of this. Why not make a folder called "Webs" and save this file as "WebOne.htm"
So what have you got now. You have a fully functional web page that you can upload to the Internet, if you wanted to (please don't...there is enough rubbish as it is.)
Your web page does....nothing. Nothing yet. Lets look at what we have so we can understand a little of how the whole thing works.
We basically have three 'containers' each of which starts with an opening tag and a closing tag. are the three opening tags and, of course, and are the three closing tags. Get use to this...It's basically what HTML is all about.
Now, lets do something with it. We want some content. Think of the stuff in the body tags as being the bit that actually ends up on the screen. So, lets add some stuff here.
In your text editor add a little text between the 'body' tags:
<html>
<head></head>
<body>Shine on you crazy... </body>
</html>
Now go ahead and save it. You need to save it with either a .html or .htm file extension. Either will do fine.
The next step is to actually see it in your browser. Open your browser (Internet Explorer, or even better, Mozilla Firefox.)
Note: In this tutorial I will later on start to talk about various browsers, but while we are learning the basics, I am going to mostly assume that you are using Firefox.
Go to the place where you enter the websites that you want to go to and clear whatever is there (probably your default home page.) Now type the file path to your new HTML file. In Linux it is going to be something like this:
file:///home/you/webs/WebOne.htm
Saving the file in Ubuntu Linux.
Saving on Windows XP
And hit return/enter and you should see your page displayed. If it didn't work, please post in the comments or on send me a message on Twitter
Thats the first step. A really easy first step. To get it right you would now have learned:
1. The three basic mark up tags that form a web page (html, head and body)
2. Where the stuff that you see on the page goes (i.e. between the body tag)
3. How to save your htm file
Right, so now you can put readable content into an html page. That's great. Celebrate. But it was easy, wasn't it. In the next section we are going to cover the basics of formating the stuff in your body.
If you enjoy learning html with me, please subscribe to this blog
Posted by
Vernon
at
9:38 AM
Non Nerd HTML 1
2009-09-25T09:38:00-07:00
Vernon
beginner html|html|learn html|
Comments
Labels:
beginner html,
html,
learn html
Tuesday, September 22, 2009
Beginner Comprehensive Web Authoring Tutorial 1 An Introduction
Welcome to the Non Nerd Free Comprehensive Web Authoring Tutorial.
If you are a total beginner to the whole idea of designing a website, but would love to try it, and maybe learn it properly, then this blog is for you. I am going to take you incrementally through, step by step, from knowing nothing to deploying very clever websites on the Internet.
I will not try to pretend that I provide the best tutorial. There are many many web authoring tutorials out there. As we go along I will give lots of links so you know where I may have learned my stuff from, and so that you can choose where you want to learn. You may find that I teach one aspect better than another, and so choose to learn other things from those who teach them best...great. But this blog will depend on readership. If after a while I see that there is no real traffic, and no comments, I will can the project and assume that you found better tutorials elsewhere.
Now, what do I want to teach you. Well, if we carry on with this long enough, EVERYTHING. Let me summarize my goals:
1. Teach you what a website is, what HTML is and teach you the basic syntax of HTML. This bit is fun and easy. I will be focusing on development on HTML 5 the soon to be released version of HTML.
2. CSS - The styling of your web pages.
3. Basic JavaScript - Breath a little life into your otherwise dull pages.
4. A little about servers and uploading websites...Get what you have done so far out there.
5. More advanced JavaScript and an intro to Ajax.
6. Blogging with online content management systems, and customizing them...we'll start with blogger.
7. Move on to more complex things...PHP, Databases and on and on. At this point you will need to download a server to your computer...don't worry, it's not that scary.
8. SEO and usability...here will be preaching and stern words.
9. Perhaps, later on, we may also start with Flash.
10. We'll move into more detail on servers...now only with Apache.
11. Freelance Web Design and making a living from doing websites.
12. If we are still together, then it will be Python next,
13. And Java (which is not JavaScript.)
13. Well, it all depends on what's happening with this blog, what's happening with the world wide web, and if I am still interested, finding the time and so on.
What am I not going to teach you? Things like Dreamweaver or Frontpage. I want you to cut the code by yourself...especially in the beginning. I think you will thank me later.
What are the characteristics of my tutorials...I teach in a very simple manner...almost like I teach my kids. I love teaching and it has been a big part of how I guide.
I have been, and I am still, teaching myself these things. I am not an expert, but I do LOVE to learn and I LOVE to teach. Come along for the ride...it's going to be fun. Please leave comments, ask questions, correct me when I am wrong, and lets get to know each other through this experience.
If you are a total beginner to the whole idea of designing a website, but would love to try it, and maybe learn it properly, then this blog is for you. I am going to take you incrementally through, step by step, from knowing nothing to deploying very clever websites on the Internet.
I will not try to pretend that I provide the best tutorial. There are many many web authoring tutorials out there. As we go along I will give lots of links so you know where I may have learned my stuff from, and so that you can choose where you want to learn. You may find that I teach one aspect better than another, and so choose to learn other things from those who teach them best...great. But this blog will depend on readership. If after a while I see that there is no real traffic, and no comments, I will can the project and assume that you found better tutorials elsewhere.
Now, what do I want to teach you. Well, if we carry on with this long enough, EVERYTHING. Let me summarize my goals:
1. Teach you what a website is, what HTML is and teach you the basic syntax of HTML. This bit is fun and easy. I will be focusing on development on HTML 5 the soon to be released version of HTML.
2. CSS - The styling of your web pages.
3. Basic JavaScript - Breath a little life into your otherwise dull pages.
4. A little about servers and uploading websites...Get what you have done so far out there.
5. More advanced JavaScript and an intro to Ajax.
6. Blogging with online content management systems, and customizing them...we'll start with blogger.
7. Move on to more complex things...PHP, Databases and on and on. At this point you will need to download a server to your computer...don't worry, it's not that scary.
8. SEO and usability...here will be preaching and stern words.
9. Perhaps, later on, we may also start with Flash.
10. We'll move into more detail on servers...now only with Apache.
11. Freelance Web Design and making a living from doing websites.
12. If we are still together, then it will be Python next,
13. And Java (which is not JavaScript.)
13. Well, it all depends on what's happening with this blog, what's happening with the world wide web, and if I am still interested, finding the time and so on.
What am I not going to teach you? Things like Dreamweaver or Frontpage. I want you to cut the code by yourself...especially in the beginning. I think you will thank me later.
What are the characteristics of my tutorials...I teach in a very simple manner...almost like I teach my kids. I love teaching and it has been a big part of how I guide.
I have been, and I am still, teaching myself these things. I am not an expert, but I do LOVE to learn and I LOVE to teach. Come along for the ride...it's going to be fun. Please leave comments, ask questions, correct me when I am wrong, and lets get to know each other through this experience.
Posted by
Vernon
at
10:52 AM
Beginner Comprehensive Web Authoring Tutorial 1 An Introduction
2009-09-22T10:52:00-07:00
Vernon
apache|Comprehensive Web Authoring Tutorial|css|html|javascript|php|python|server|
Comments
Labels:
apache,
Comprehensive Web Authoring Tutorial,
css,
html,
javascript,
php,
python,
server
This site will live
I have just had a look at Google Analytics for this site, and in the last month this site has had 127 unique visitors. I have not links to this site anywhere, it isn't linked in my blogger profile, I haven't done anything to promote it. And yet they come.
So, I guess, I am going to start off producing some posts on this blog.
So please dear random visitor, tell me what do you want me to post about. I think at this point I could do posts on the following, all at really beginner level:
1. Full web authoring tutorial for the beginner ...from nothing to getting your page up on the internet
2. Just html (to easy, I think)
3. Html and css
4. Intro to Javascript
5. Intro to php
6. Blogging general
7. Blogging promotion
8. Blogger specific tips and tricks
Leave comments, take my survey or even send me an email (frantic.naturalist @ gmail.com)
So, I guess, I am going to start off producing some posts on this blog.
So please dear random visitor, tell me what do you want me to post about. I think at this point I could do posts on the following, all at really beginner level:
1. Full web authoring tutorial for the beginner ...from nothing to getting your page up on the internet
2. Just html (to easy, I think)
3. Html and css
4. Intro to Javascript
5. Intro to php
6. Blogging general
7. Blogging promotion
8. Blogger specific tips and tricks
Leave comments, take my survey or even send me an email (frantic.naturalist @ gmail.com)
Sunday, February 15, 2009
Track your visitors
If you have a blog or a website, one of the most important things to you is to know how many people are hitting on your website. The more you know the more you can focus on the user when you manage your blog.
Since I am working on my website I needed to put some tracking in.
I hate to use little trackers that show you how many people have been there right on the site. Why would you do that? I don't know. And for many of those you have to pay.
I use Google Analytics. It really is a very useful way to keep track of your site.
It is rather easy to use. I just wanted to be sure, when I put updated the tracking code for blogger that I do it the same way, and found a useful blog to do that with, called CeoXi DeSign.
Since I am working on my website I needed to put some tracking in.
I hate to use little trackers that show you how many people have been there right on the site. Why would you do that? I don't know. And for many of those you have to pay.
I use Google Analytics. It really is a very useful way to keep track of your site.
It is rather easy to use. I just wanted to be sure, when I put updated the tracking code for blogger that I do it the same way, and found a useful blog to do that with, called CeoXi DeSign.
Thursday, February 12, 2009
What I am up to
Well, I haven't done anything to promote this site. It isn't even linked to my profile yet. But somehow people find it. So I must post in it. I was hoping that it would live in a secret corner of the internet until I had put in some really useful posts.
Seriously, I will not post to often. It's more an outlet, and when I have something that I am working on, their will be occasional floods of stuff.
So currently I am building a website. Frantic Naturalist Nature Tours Directory. I am having a lot of fun with it. HTML (and CSS) is so much like Lego blocks. You can build what you like. I hope to at least post a provisional bit of the site by tonight (in about 10 hours from now.) If you live in Africa you become all to aware that many people on the internet are in different time zones. Actually, I guess that goes for a lot of the world??
Anyway, when the website is up, and you would like to have a look, you should find the HTML very fairly easy to understand. I comment a lot. If I use id or class or whatever tags, the names I make up usually make sense (as opposed to stuff done on a html editor.) I coded the whole thing in a text editor (Notepad.) So it is really basic.
It's a really fun website for me to run, as it's sort of a combination of my interests - computer stuff and nature/travel stuff.
Seriously, I will not post to often. It's more an outlet, and when I have something that I am working on, their will be occasional floods of stuff.
So currently I am building a website. Frantic Naturalist Nature Tours Directory. I am having a lot of fun with it. HTML (and CSS) is so much like Lego blocks. You can build what you like. I hope to at least post a provisional bit of the site by tonight (in about 10 hours from now.) If you live in Africa you become all to aware that many people on the internet are in different time zones. Actually, I guess that goes for a lot of the world??
Anyway, when the website is up, and you would like to have a look, you should find the HTML very fairly easy to understand. I comment a lot. If I use id or class or whatever tags, the names I make up usually make sense (as opposed to stuff done on a html editor.) I coded the whole thing in a text editor (Notepad.) So it is really basic.
It's a really fun website for me to run, as it's sort of a combination of my interests - computer stuff and nature/travel stuff.
Thursday, February 5, 2009
The progression
How to get into the whole thing. You want to learn to be a hot shot programmer, but you know nothing about it at all. Or perhaps bits and peaces, but it doesn't fit together.
Everyone is different, and you'll hear different advice, but my recomendation is this.
First, get a blogger account. This is free through Google. You don't really need to know a thing to set it up. Then start to play with it. Set up RSS feeds, maybe place some adds. Start to look at the code, and get a feeling for how it fits together. You can break it, it's okay. It's for learning.
Blogging itself is fun, and can involve advanced programming stuff if you take it all the way.
Then next thing is to learn HTML. This is the mark-up language used by browsers to understand what to write on your page. We'll talk more about it later.
Then get into more web stuff, like CSS and so on.
Now your have had a feel for a bit of how programming might feel, but you haven't really programmed yet. Now it's time to change gears. I recommend the next step should be learning Python. I have made my way well into Python and will share what I have learned.
Then, I think the next step is to learn C++. This is really the serious stuff. From there you really can learn anything.
So, if you want, you can take a wonder with me and this blog, while you work your way through this progression.
Everyone is different, and you'll hear different advice, but my recomendation is this.
First, get a blogger account. This is free through Google. You don't really need to know a thing to set it up. Then start to play with it. Set up RSS feeds, maybe place some adds. Start to look at the code, and get a feeling for how it fits together. You can break it, it's okay. It's for learning.
Blogging itself is fun, and can involve advanced programming stuff if you take it all the way.
Then next thing is to learn HTML. This is the mark-up language used by browsers to understand what to write on your page. We'll talk more about it later.
Then get into more web stuff, like CSS and so on.
Now your have had a feel for a bit of how programming might feel, but you haven't really programmed yet. Now it's time to change gears. I recommend the next step should be learning Python. I have made my way well into Python and will share what I have learned.
Then, I think the next step is to learn C++. This is really the serious stuff. From there you really can learn anything.
So, if you want, you can take a wonder with me and this blog, while you work your way through this progression.
Non Nerd Hacking - About
What's our blog all about? It's my journey as a tour guide and nature person, into the world of blogging, computers, internet, web design and some programming.
I am hoping that my journey into this world is of some use to others who are doing the same. I will give you the websites that helped me, advice and perhaps some tutorials. As I fumble my way in, I will try to use this blog to help others by sharing what I have learned.
The main topics to begin with will be:
Blogging, HTML, CSS, PYTHON and C++
Hacking in the sense of serious programming. I am not sugesting that you, or I are yet hackers. Just using the word to refer to getting serious about doing things under the hood on your computer.
I am hoping that my journey into this world is of some use to others who are doing the same. I will give you the websites that helped me, advice and perhaps some tutorials. As I fumble my way in, I will try to use this blog to help others by sharing what I have learned.
The main topics to begin with will be:
Blogging, HTML, CSS, PYTHON and C++
Hacking in the sense of serious programming. I am not sugesting that you, or I are yet hackers. Just using the word to refer to getting serious about doing things under the hood on your computer.
Subscribe to:
Posts (Atom)




