.: HTML Basics

By:deadmoon

Category:Home / Computers / Software

Learn HTML



Are you feeling a bit lost when someone mentions those four letters, “HTML”? Well it is actually very easy to learn and understand. We will cover how to set up a simple page, how to format text, insert images, and insert links. Lets start by explaining what it is exactly.



When you visit a page, you see columns, images, links and different colours. This has all been written by someone (or someone used a program to write it). And it is written in HTML. All web pages are sent to your browser (such as “Internet Explorer” or “Firefox”) as HTML.



HTML is the easiest “computer language” to learn. Now, when you write a formal letter to someone, there are things you add at the start and end aren't there (such as at the start their address, the date, and at the end your name and signature). Between these items you write the body of the letter. Well, in some ways, the basics of HTML is very similar.



Let me just give you an example of a simple page. This would display the words “Welcome” in the browser (the numbers in bold are not part of the code – they are just line numbers so we know what we are talking about later on).



1]

2]

3] Site Title

4]

5]

6]

7] Welcome

8]

9]



All tags start and end. A start tag looks like and and ending tag for it would look like . There are many tags - ... for underline, ... for bold etc.



If we go back to the letter example, you normally write your address, the date, their address etc at the top. Well this is what the first four lines are like. The first line, (note, in html, it doesn't normally matter if it is upper or lower case. In some technologies such as xhtml it does, but for now it doesn't matter) just declares that between that html “tag” as it is known, and the ending html tag on line 9 (notice the back slash, indicating it has ended) it has html within it.



The head contains information that isn't directly displayed by your browser. The tag contains the title of the page, which is shown at the top of your browser. Other things such as keywords go into your head tag, but thats a bit more advanced.<br /><br /> <br /><br /> You should put all your content within the <body> tag that you want the user to see inside the main part of their browser.<br /><br /> <br /><br /> <b>To do links</b><br /><br /> A link is something that lets you click on it, and it will request a new page. You use the anchor tag for this:<br /><br /> <br /><br /> <a href="”http://www.techneek.co.uk”" target="_blank">CLICK HERE </a><br /><br /> <br /><br /> Do you see how that would work? It would display the words “CLICK HERE”, and that links to http://www.techneek.co.uk. This tag, the <a target="_blank"> tag has an example of an attribute to it – the href. <br /><br /> <br /><br /> Almost all attributes have a =" ". It is basically like saying, I have an anchor tag. I want to make it link to something. To tell it to link to something, you need to put href=”yourlink”. Remember when ending this tag (</a>), you don't need to put in the href. It is always just </a>.<br /><br /> <br /><br /> <b>Bold, Italic, Underline</b><br /><br /> <br /><br /> These are really simple – you probably already know them. <b> bold text </b> for bold, <u> underline </u> or <i> italic </i><br /><br /> <br /><br /> <b>Spaces in HTML</b><br /><br /> Spaces to some extent don't matter. I could write this line:<br /><br /> <a href="”http://www.example.com”" target="_blank">example.com</a><br /><br /> as:<br /><br /> <a href="”http://www.techneek.co.uk”" target="_blank"><br /> example link<br /> </a><br /><br /> <br /><br /> In HTML, any multiplies of a space - ' ' just show up as one. To display more than one you need to type  .<br /><br /> <br /><br /> <b>Images</b><br /><br /> <br /><br /> Images are really simple. It is just <img src=”yourimagelink”>. You don't even need an ending tag (no </img> tag!). If you want to specify the height/width, use height=”120” width=”400”;<br /><br /> <img src=”yourimagelink.jpg” height=”99” width=”89”><br /><br /> <br /><br /> Incase the image can't be loaded for yoru user, you should give an alternative text. This is also good for people who find it hard to see on the screen. To do this, add alt=”a description of your image”. I would personally recommend no more than 6 words.<br /><br /> <br /><br /> <img src=”youimagelink.jpg” width=”200” height=”100” alt=”View of a beach”><br /><br /> <br /><br /> It is recommended that the only image types you use are Gifs (.gif), Jpegs (.jpg), or Portable Network Graphic (.png). Try and keep the file sizes down, some users are on very slow speeds.<br /><br /> <br /><br /> So there you are, you should be able to make a page now. Open up notepad, paste this template in:<br /><br /> <html><br /><br /> <head><br /><br /> <title>Your first webpage







...
Your content goes here, such as Computer Techneek!
...









And replace the "..." bits with your content. Save it as a .htm or .html file (it makes no difference what you choose) and open it in your browser.



Here is an example simple web page using everything we have covererd so far:







Hello!!







Hello! Welcome to my page! Click on the image to go to http://www.techneek.co.uk ”Techneek.co.uk







Now you are ready to go further. I recommend that you search for things on your favourite search engine, such as:



paragraph HTML tag

hr html tag

Center html tag

basic CSS tutorial

uploading webpage OR website tutorial server



Have fun!



Ashley Baker is the owner of TechNeek - a computer hardware component news and reviews site. If you need a review of a computer related matter, get down to http://www.techneek.co.uk!

Digg del.icio.us Blink Stumble Spurl Reddit Netscape Furl

Article keywords: learn html programming css newbie noob xhtml center p href web page webpage website hosting server www internet uploading javascript basics hardware software review

Article Source: http://www.articles32.com

www.techneek.co.uk/







.: New Software Articles

1). What Your Spouse Might Not Want You To Know
Is your spouse or significant other extremely secretive about their computer habits?

2). Why Buy Anti Spyware Software When I Can Download it Free?
Many Spyware software packages are being sold on the Internet. Many other packages are listed for free. Why should you pay for something that might be free?

3). Free Spyware Adware Remover
Computers need routine maintenance as well as systems checks in order to be in good condition at all times. This can be done by getting the proper software or sending the unit to the shop.

4). Getting Free Internet Security for Your Computer
Surfing the Internet nowadays can be very dangerous. With all the viruses, spywares, adwares, identity thieves and hackers circulating for surfers to victimize, opening and downloading an attachment sent by your friend can be very scary.

5). What Are Your Children Doing Online?
In the Internet age, our children use the computer as much as or maybe more than their parents do. Kids use the Internet to do homework, play video games, converse with their friends and more.

6). Safe Guard Your Critial Business Documents
All types of commercial places, whether in the private, public or the government sector are now increasingly using computers for various possible functions.

7). How Folder Hider Software Works
Nowadays, a computer is being increasingly used in all types of settings, whether it is an office, a corporate house or domestic settings.


.: Top Software Articles

1). Track Your MySpace Profile Visitors
I know that everyone who is on MySpace has had the same burning questions that I’ve had. How can I see who has viewed my MySpace profile? Where can I find a MySpace Tracker? Since MySpace has become so popular, so have the MySpace profile stalkers. Could be your friends, neighbors, ex-boyfriends or ex-girlfriends, or even someone you don’t even know.

2). Discover Mozzila FireFox Browser -and How to Install Extensions
Discover Mozilla FireFox Extra Features – Extensions and How To Install Them If you are still not using any other web browser then FireFox (no matter what OS you are using) you are endangering the security of your computer and missing out on a much richer surfing experience. One of Mozilla FireFox browser most powerful feature is the possibility to install extensions.

3). PsP Software Downloads – Review for PsP Blender
PsP software downloads is a very good way to get new software for your psp hand held. You can get psp movies from many different websites. Most of these sites include psp music downloads, psp movie downloads and psp software downloads and of course PsP Games. Many of the databases are different from one site to another. Some sites offer a wide variety of different choices.

4). Tutorial - Enabling IIS 5.1 on Windows XP Pro
Windows XP Home Edition does not support IIS 1. You may need to put your Windows XP Pro CD into the PC. 2. Go to Control Panel, ‘Add Remove Programs’, then ‘Add/Remove Windows Components’. In the Windows Components window, place a check mark beside ‘Internet Information Services (IIS)’, then click next, then click finish. 3. During installation, Windows creates a directory at C:inetpubwwwroot and places a few files there.

5). PsP Software – Review of Software Download Sites
PsP handhelds are one of the newest and most fun ways to play games, watch movies and listen to music. PsP software downloads are just some things that you can do to improve your psp. PsP software downloads are fun and easy. There are many places on the net were one can find psp software downloads. Some sites have you pay per download and sometimes charge up to a couple dollars for each download.

6). What To Do When Windows Fail To Boot
Copyright 2006 Otis Cooper When Windows fails to boot it is normally caused by you installing a program or device and it has caused a conflict with one or more other programs. This will no doubt give you plenty of heartaches if you're not certain which program caused Windows to not boot up. If you recently installed a program or application and know where it was installed,you may be in much better shape as for as correcting the error.

7). SQL Server 2000 Data Types
SQL Server requires that each variable and column in a table should be defined with respect to the type of data it will store. From a bit to a huge image and binary storage types, the allocation is supposed to help the user conform to the data required, and help the engine allocate space and processing speed efficiently. Built-in data types SQL.


Page loaded in 0.169 seconds.