Nov 22, 2009

Starting A Website From Scratch - Tags

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > How-To's and Tutorials > Websites and Web Designing

Starting A Website From Scratch - Tags

HannahI
If you do not have know the structure of HTML, please leave or go to http://www.astahost.com/Website-Scratch-St...tml#entry140971
Okay Now that you have the basic programming skills to write website in HTML, we can move on to real web programming. In this lesson we will be learning all about HTML tags.
We can start us off with how to make a link in HTML. If you are unsure what a link is, a link is some text the will take you to another page. Links use the a tag. A stands for anchor. To create a basic link to google.com you would use this code. Shown in Listing 2.1
Listing 2.1
CODE
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>My First Page</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<a href="http://www.google.com/">Click Me</a>
</body>
</html>

Lets go take a look at what code is doing and means. If you look you will see the HTML structure that we learned last class. You will see that the a tag is there. Href is were the links goes to. If you look you will see that it looks like this.
CODE
href="http://www.google.com/
That is the proper syntax to define a HTML parameter. That is the main things that you will need to know about the A tag.
Another really useful tag is the img tag. The img tag is the tag the you use to add an image to the page. There is 1 parameter to the img tag. It is the src parameter. You can give it a value like /image.png or http://www.google.com/images/google. Example in Listing 2.2
Listing 2.2
CODE

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Image</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/b/b9/Cat_drawing.svg/322px-Cat_drawing.svg.png" alt="This is the title" />
</body>
</html>

That is the basic code to a image. You can add the height parameter and or the width parameter. Also you can add the alt parameter. The alt parameter is a parameter the defines what text will show up when you put your mouse over it, it is the title.
That was all to learn in this lesson. If

 

 

 


Comment/Reply (w/o sign-up)

wutske
HannahI, it's great that you're writing these tutorials, but imho it's best to teach people to follow standards as soon as they start programming.
For example, in your previous tutorial you've forgotten to mention that people should declare the document type (DTD), coding, etc...
eg:
CODE
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
            "http://www.w3.org/TR/html4/strict.dtd">

and a meta tag to place inside the head tags that tells the browser that it's a UTF-8 encoded html page.
CODE
<meta http-equiv="content-type" content="text/html; charset=UTF-8">


In this example you've failed to close the img tag and you've forgotten the alt attribute.
So it should be:
CODE
<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/b/b9/Cat_drawing.svg/322px-Cat_drawing.svg.png" alt="a usefull line of text that explains what this image shows" />

 

 

 


Comment/Reply (w/o sign-up)

takerraj
A very well made tutorial for absolute beginner. But how can I upload it to my website. For example, I want this html to show up on www.example.com/html. How to do that?

Comment/Reply (w/o sign-up)

HannahI
Hi Guys,
Thanks for metioning those things.
I'm not sure if that such a nasic web page like this would be required, I will add it now.
Thanks for reading and hope you enjoy,
-Hannah

Comment/Reply (w/o sign-up)

starscream
Basic tutorial but helpful for beginners. Just be more detail about standards as mentioned above. Good work though, keep writing more basic tutorial.

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords :

  1. 4 Html Based Website Tips
    (4)
  2. Effective Website Promotion Without Spamming!
    Get traffic to your website without being a bad neighbor. (21)
    I've been working on my website, Handy PHP , pretty hard for the last few months and it has
    really paid off. According to Yahoo, there are about 1,500 links to my website. This number has
    been steadily increasing over the past few months and wasn't really that hard to accomplish.
    The best part is that I have done all of this without spamming! I thought that I'd offer some
    ideas for promoting your website without the need to spam. To begin with, every time I talk about
    my website, I include the name and link. This is true in forums, comments, reviews, e....
  3. Writting Tutorials For Your Website
    An Overview To Layout And Content (4)
    I was recently asked about suggestions for tutorial layouts. QUOTE(Chesso @ Mar 31 2007, 11:01
    AM) 100770 vujsa sorry to cut in here, but do you have any advice for tutorial layout (and like
    what is good to build for creation)? My site has somewhat a simple and good enough file layout,
    just basic tables with minimal information, description and screenshot, but I have never gotten the
    tutorial aspect off the ground because it's rather annoying to write for and have it displayed
    nicely. I'll attempt to give some insite and guidence in this area but not ....
  4. Website Maintenance Guide - Why And How
    Share your knowledge and experience with us (3)
    Even if you are running a popular website with thousands of hits per month, you need to invest time
    for maintaining your site. Website maintenance has different aspects to consider and each one of it
    is important. Why do we need to spend time for website maintenace? Maintaining a website has
    never been a simple task and some webmasters may be reluctant to get into that troublesome affair
    every now and then or periodically even. But it is a must to do like thing. The best part of a
    website that draws visitors is the fresh updated relevant contents. It helps in buildin....
  5. Good Practices When Designing A Website
    What to do and what not to do! (26)
    We've all com across terrible websites before and hit the back button as quickly as possible.
    But what makes these sites any terrible? Keep the following in mind when designing. JavaScript and
    Flash can be great tools, but only if used properly. Don't put trails after the curser,
    fireworks or other animations flying around the page or the dreaded Flash intro. If you must use an
    intro, Flash or otherwise, then put a 'skip intro' button. You may wish to show of your
    Flash skills, but we don;t want to watch! :-) Keep your page dynamic. Having warned you ....
  6. Creating A Simple But Effective Website
    Part 1 - Design (10)
    WARNING: This is a VERY image heavy tutorial and will take time to complete Topic closed
    until I can find the time to complete it, and I am getting mad with the large scale plagrism of
    other articles. Also, the images will no longer work, as I have changed domain name and also
    removed the images to make space. Creating a basic but effective website For beginners
    Introduction: Ok, so maybe you want to make a website that is “worthy” of the web. That is to say,
    you have made small taster sites before in FrontPage or something basic like it. And realised t....
  7. The 'good Website'
    So what does it take to make... (10)
    The ‘good website’ Creating a website is easy, just fire up your favourite WYSIWYG ( W hat Y
    ou S ee I s W hat Y ou G et) editor and throw the content in, add a little violent array of
    colour and publish to the web. Well done, you just took up useful space with a useless piece. What
    makes the ‘good website’? To answer it in as few words as possible would undermine the whole idea
    of the good website. Every little aspect needs to be intruded and revealed, in order to show just
    exactly what it is that makes the good website. In order to keep confusion to a min....
  8. Html Meta Tags Tutorial
    -What it is/does; how to utilize it- (21)
    So, you've got your beginning page started, your homepage is defined, neat, and it looks like
    everyone will love it - STOP. Do you really think your site will be even accidently view by anyone,
    even if you do have a bought domain?! Don't kid yourself; the fact of the matter is, you're
    just one infantesimle speck in the universe of much greater websites than yours. Don't worry,
    though - I got your back. Here, I'm gonna explain what meta tags are, and what they're used
    for. I'm also going to show how to utilize them for your site, to increa....
  9. Starting Your Website With Html
    To build a website, you need to know HOW (7)
    I was reading through the tutorials, and it seems throughout the tutorials, no one has ever really
    taught how to build a beginner's page using HTML. Not that it's anyone's fault, but
    if someone is unsure of how to begin and end a page with HTML, then they will not be able to make a
    page. So, I figured I'd lend a hand... -------------------------------------------- To begin
    your first webpage using HTML, you will need these tags* (in this order): CODE YOUR TITLE
    FOR YOUR PAGE THIS IS WHERE YOUR MAIN TEXT GOES To explain: The ....
  10. Major Website Mistakes
    Improve your site! (51)
    I have made some of these mistakes myself so I want to pass on what is have learned to help others
    create easy website for the viewers. These are not in any order. This is my first tutorial so feel
    free to add comments. TY, Enjoy /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0"
    alt="biggrin.gif" /> 1) URL/E-mail Names This goes on the theme of trust really. Many
    small business like to set shops up on service providers like astahost, geocites,yahoo. Those sites
    will usually supply you with a subdomain name like yoursite.serviceprovider.....
  11. Making A Website
    Along with Some Dos & Don'ts (2)
    I had originally had this posted on my domain at nevernormal.com, and thought that you guys could
    use it here as well. Granted, this is geared to the uber newbie, so don't razz me if I
    don't suggest the most advanced in web design. lol QUOTE So, you want to make a
    website? 1. First, think about what you want your site to be about. There are fanfic sites, like
    Drastic Measures and fanfiction.net ; cliques or clubs, like the BtVS Writers' Guild ; or, if
    you want, you could have a general site, whether it be about a show/movie you like, or even j....
  12. Starting With Your Website
    So, you have decided to publish your own (9)
    So, you have decided to publish your own website. The main thing you should be concerned is about
    the 'content' that you want to put in the website . Your website can be your 'personal
    homepage' - describing your family, your photographs, your creativities. If you are a
    programmer, you can put them for download. If your website is for your business - you can have your
    products displayed along with their detailed information and price-listings. You can also allow your
    visitors to shop directly through your website and pay using Credit cards. Domain names ....

    1. Looking for Starting, A, Website, From, Scratch, -, Tags

See Also,

*SIMILAR VIDEOS*
Searching Video's for Starting, A, Website, From, Scratch, -, Tags
advertisement



Starting A Website From Scratch - Tags

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com