![]() |
|
| HTML for the complete beginner |
MiscellaneousMeta tagsThese are included in your <head></head> tags. They aren't seen by the viewer, only by the search engines to help list your site. Not all search engines use the meta tag but is good practice to use them.For this example I'll pretend I have a web site for belly button warmers (you just never know). It is used as follows: <html> <head> <title>Your pages title</title> <meta name="description" content="My belly button warmer web site"> <meta name="keywords" content="belly, button, warmer, gift, present"> </head> <body> ... ... There are some sites that will charge you to get listed in search engine results, others are free (see the Related links page for some links).
Your site is listed by the keywords you choose, look at other sites similar to yours and see what words they use (don't steal their keywords). You can also add your name and email address as author like so: Another thing included is the 'auto refresh' tag, which will automatically send you to another
page in a certain time, or refresh the current page. blockquoteThe <blockquote> tag probably could of been put in the adding text section but can be used for anything. What this tag does is indent it's content (about a tab spacing) left and right of it, like so:<blockquote>This is a long piece of text about nothing just so you can see how the blockquote tag works. I use this tag on the quiz pages. You can use it to indent anything but be careful not to abuse it. If people had small screns this would be easy but sadly some have big screens so I have to keep babbling until I get enough to fill the largest size screen, I think this should do it.</blockquote> I added the tags in the text instead of having to place it here again making this page even longer than it is. lines, breaks<hr> is a line, (like above the sections title) we can add width=, size=, and even color is supported by some browsers but shouldn't be relied on. The <hr> also has a 'built in' <p> tag. no closing tag needed for this one. <hr width="100%" /><hr width="60%" size="8" /> <hr width="50%" size="8" noshade="noshade" /> <hr width="75%" align="left" /> <hr width="75%" align="right" /> default is: <hr width="100%" shade="shade" /> The 'size' works best on a patterned background. preThe <pre> tag can come in handy at it times. What it does is display your contents exactly how you type it out. Example:
<pre> This
would
be how
I
typed it out!</pre>
Down side it is unless you add a CSS style to the pre tag (or body) it looks quite horrible. The pre tag will display every extra space, new line ... as it's typed becareful using HTML tags inside a pre tag as these tags will still be used (can get very messy). If you want to display HTML codes use the special characters needed to do so. fieldset and legendThese tags were made I believe for grouping form objects but can be used anywhere. I use them throughout this site for the Important and what it means boxs among others, but I use CSS to enhance it. And we do this by: <fieldset> <legend>This is the default<br /></legend> As you can see it's like a table with text at the top. NS4.7 doesn't support these tags so doesn't display it. </fieldset> You can add <br />'s to it to add more space but the one in the <legend> section needs to be there for backwards support or that line and the following will appear on the same line. DOC tagsDOC tags are what goes at the very top of your code, before the <html> tag. This tag is meant to tell the browser or sorts of info, mainly what version of HTML or XHTML you are using. These are the only tags that should be uppercase, every other HTML or XHTML tag should be lowercase. Just copy and paste the DOC tag that suits your needs above your <html> tag For HTML use:For HTML - This is the most common and since your still learning I recommend this one For HTML with all the t's crossed and i's dotted For HTML if you use frames For XHTML use:For XHTML - This is the most common one and one I recomend you should use For XHTML with more CSS than HTML For XHTML if you use frames image mapsImage maps are the best solution to using linked images. You're way better off using a cut up image in a table or better yet using text link. (should use text links as well if ever using images for links). ![]() This is how we code them: <map name="ezhtmlimap" id="ezhtmlimap"><area shape="rect" coords="17,49,51,61" href="here.html" alt="here" title="here" /> <area shape="rect" coords="123,49,213,62" href="everywhere.html" alt="everywhere" title="everywhere" /> <area shape="circle" coords="85,55,17" href="there.html" alt="there" title="there" /> <area shape="poly" coords="9,11,9,43,69,43,85,32,104,43,188,43,188,10,9,11" href="ezhtml.html" alt="ezhtml" /> <area shape=default href="ezmisc.html" alt="naviagation map" /> </map> <img src="imagemap.gif" width="233" height="73" border="0" usemap="#ezhtmliamp" alt="naviagation map" title="naviagation map" /> The hot spots are shown below (yes I cheated and used a program to create this one :)
Adding sound
Netscape and Internet Explorer supports different tags so we have to use two lots to be succesful. The best way to offer music to people is by the good old 'click for sound' option, like so: <a href="yoursound.mid">click for sound</a> But if you must add it to your page, use a tag combination like so: <embed src="yoursound.mid(or .wav)" autostart="false" width="144" height="60" controls="console"> We can also use 'smallconsole' with smaller width and height tags included <embed src="sheesh.wav" autostart="false" width="51" height="20" controls="smallconsole"> Which will just give us a play and stop button in Netscape and play and pause buttons in Internet Explorer. Note if the wav or midi isn't in the folder the console wont show up. Hidden background music is one of the worse sins in web page making, keep away from this practice. (Note I haven't shown how to do it) Also NEVER use full or long songs for web pages, these can take forever to load and sometimes load before your page does. Awards
Do I dislike awards? The
truth is I don't hate them, just wish people would wake up to what they really are. What do I mean, ok
before I go any further I wish to say sorry now for upsetting anyone out there. Guestbooks and Counters
Guestbooks are a good way of getting feed back from your site. The slambooks can be a fun way to
add a bit of humour in there as you can make up your own questions. These days there are a lot of 'add-on' scripts to add to your site, message boards, guest books, diaries etc, some are CGI or databased but most are linked to and only use a code to use them. Summary
Exercise
|
||
| © 1999 - 2009 EZHTML (munchtech.com) Copyright notice |