Hey. How's it going? Are you aware that you have come to the right place? The Slacker's Guide to HTML is focused on one thing: being simple. But it goes way beyond being a "simple" guide to web authoring. All it really does (as far as being simple) is make everything look very simple. The entire guide is basically written as if I'm talking to you, not lecturing you on some computer-nerd stuff. I'm just one of the boys. Crack open a cold one. Pass the bong over this way.
I'll just get the boring part
over with quick. HTML is hyper text markup language. That's some computer-nerd lingo and it is the language you are about to learn. Don't worry, it's easy.
Basic necessities
Starting a web page is easy and fun (?) if you know what
you're doing. If you're lost it can be confusing and nerve
racking (if you really let it bother you). Having a home of your own on the web only
requires a few things. One of those things is a URL. A
URL (Uniform/Universal Resource Locator)is an internet address (i.e. http://www.yahoo.com),
and that is the location of the HTML file that defines your page. Y'know how "C:\Program Files\Common Files" is the address of the common files subfolder in your program files folder? Well, internet addresses are similiar in some ways. They are both pathnames to the locations of files on a drive. To begin an HTML document you need to include a few things at the very top of your HTML. These things are the HTML tag, the HEAD tag, the TITLE tag, the META tag, and the BODY tag. Before I discuss them individually I will first show how they should appear in your code. Of course, what you see below is only the skeleton of the document you are about to create. This is just the infrastructure, sorta. They should be arranged in this order on your document: <html></html>
The HTML opening tag signifies to the browser what type of document it is reading. The HTML tag is used to simply signify that the document uses the language HTML. The head tag encloses the commands to be sent to the browser first. Some things that go inside the head tag are your title and the meta data you have, as well as all CSS Style Sheets information. < t i t l e >...< / t i t l e > The title tag surrounds the text to appear at the top bar of the browser. Look at the top of your browser now. See where it says "The Slacker's Guide to HTML: The Basics of HTML and web design..."? That's my title to this page. The meta tag has a variety of uses. The meta tag is used primarily to instruct search engine "spiders" on what to do with your page when they spider over them. It also is the tag used to cause a page to "refresh", or automatically reload and open up a new URL. Here are the elements used in a meta tag: <META NAME="keywords" CONTENT="baseball, hockey">The keyword element states that the page concerns hockey and baseball, and if someone does a search for those 2 words, that your page should come up as a search result. <META NAME="expires" CONTENT="6 December 2001">Tells search engines when your page should be deleted from it's directory. <META NAME="description" CONTENT="A page about sports">Tells search engines the description of your page. <META NAME="author" CONTENT="Your name here">Tells them who made the page. <META NAME="revisit-after" CONTENT="30 days">Tells the search engine to visit your site again in 30 days. <META NAME="distribution" CONTENT="Global">Tells the search engin that your site is meant for everyone, and that it can be distributed globally. You can also specify "local" and "IU". IU means Internal Use, which means that it's basically not meant for the public. There are some other META tags, also. Check out these "robot" tags that tell search engines whether or no to index the page, and whether or not to index pages that are linked to. There are many combinations of the robot tag. *Not all search engines can handle the robot tags as of now, but I'm sure they all will soon. It can't hurt to use them. <meta name="robots" content="index,follow"><meta name="robots" content="noindex,follow"> <meta name="robots" content="index,nofollow"> <meta name="robots" content="noindex,nofollow"> And you can put all these together by just lining them up like so: <META NAME="keywords" CONTENT="baseball, hockey"><META NAME="expires" CONTENT="6 December 2001"> <META NAME="description" CONTENT="A page about sports"> <META NAME="author" CONTENT="Your name here"> etc., etc.
After the meta tag is finished (it requires no closing tag), you must < / h e a d > ...in your document. That will end the list of commands that the browser will execute first. The body tag has a very lot of uses. It specifies the default properties of all the body of the page, including text, link, visited link, active link, and background colors, background images, and page margins. Here are some examples and descriptions of each element in this tag: <body>The body tag, when left alone like above, will instruct the browser to display the default properties (black text, white or grey background, and on and on). There are many additions and revisions to the body tag you can use, though. Here they are: <body bgcolor="######">That specifies the background color of your page. You replace the 6 pound symbols with an alphanumeric hex code. You can download this program that tells you hex codes for countless colors for free from us to you!. <body background="filename.extension">The above tag specifies that an image will be used as a back ground. You put the name of the image in the spot reading "image- name.extension". If a file is titled "frog" and is saved as a .gif, then that above code would appear as: <body background="frog.gif">so you see you have the option of creating your own backgrounds or using a simple color background. If you have a background image that simply runs down the left or right of your page and you do not want your text to run over the image, then simply box your pages text and content into a table that has a set width which will keep it from running over the background image and align the table to whatever side of the page the background image does not lie on. The element used to fix the background (IE4 and IE3.02 Only!) so that it does not tile (or repeat), like a background usually will, is: bg properties="fixed" The element of the body tag which sets the default text color is: text="######" That tag can be changed just as the bgcolor tag can. link="######" These three tags do the same thing as the text color tag, only they change the default link, visited link, and active link colors, respectively. leftmargin/topmargin="#" The margin tags, which as of now work only for Internet Explorer by Microsoft, set the length that all the body will stay from the top or left of the browser. By putting a pixel number into the area where the pound symbol is you set the length in pixels that the body of the page will be from the side of the screen. In order to tie all of these elements in together to form a correct body tag, just line them up like so: <body bgcolor="000000" text="FFFFFF" link="ABCDEF" vlink="680GAE" alink="JI7AFE" bgproperties="fixed" leftmargin="200" topmargin="100">
You now know all of the necessities of starting up a page. While
I might call these necessities, they are not all needed. The meta tag,
the title tag, head, and body tag can all be left out but you will have a
very generic page.
|
Related Links The META Tag & Promotion Style Sheets Guide |