HTML 101 - Web Design For Beginners - Absolute Basic HTML Writing

free web hosting
Free Web Hosting > Computers & Tech > How-To's and Tutorials > Programming > HTML, XML and other Markup Languages

HTML 101 - Web Design For Beginners - Absolute Basic HTML Writing

vujsa
HTML 101 - Web Design For Beginners
Absolute Basic HTML Writing

This will be part one of a multi-part HTML tutorial.
Please don't post advanced HTML replies to this article.

This tutorial is specifically written for beginning HTML writers.

Requirements:
    [/tab]Software: Web Browser, HTML Editor.
[tab]Skills: Ability to press the keys on the keyboard.

Any web browser will work as long as it can open files saved on your hard drive.
-> Netscape and Internet Explorer are both free and easy to use.

Any HTML editor will work as long as it is an HTML editor and not a web page design program.
-> The difference between the two is who actually writes the code.
--> If the user writes the HTML code the software used is and HTML editor.
--> If the user arranges the look of a page and the program writes the corresponding HTML code, the software used is a web page design program.

You're here to learn HTML so you'll need an HTML editor. An HTML editor can be any text editor that will allow you to save your files with the .html extension.
For now, Notepad will do just fine as your editor. I assume that Mac still has a Notepad program.
<--------------------------------------------------------------------------------------------------->

Now a little background about HTML.

Hyper Text Markup Language is the language developed to display information on the internet in a format other than plain black text on a white background.

HTML requires the use of tags. A tag is a trigger that tells the browser what to do with the information between the opening tag and the closing tag.
For Example:
CODE
<CENTER>Center this text!</CENTER>

Here the "center" tag is used to place text evenly between the left and right sides of the window like below:
This Text is Centered!


With very very few exceptions, ALL open tags must be closed! Again, ALL open tags must be closed!

For the "center" tag, the opening tag is <CENTER> and the closing tag is </CENTER>. the slash must be included in all closing tags and ommited in all opening tags.

A Few More Samples:
CODE
Align to the right is: <RIGHT> Text </RIGHT>
Align to the left is: <LEFT> Text </LEFT>
Bold text is: <B> Text </B>
The HTML tag is: <HTML> Code </HTML>


Just remember, ALL open tags must be closed!

<--------------------------------------------------------------------------------------------------->


The first tag that you have to use in all webpages is the HTML tag. Failing to insert this tag before your code will result in everything being shown to the user. This is because if you don't tell the browser the the page is html, the browser automatically assumes that the page is just text.
"<HTML>" Tells the browser that everything that comes next is coded in HTML until the </HTML> tag is reached.

Step 1: Open and close HTML.
CODE
<HTML>
</HTML>


The next thing you'll need is a head. The HTML head holds very important information about your web page but for now it will only hold its place.
The head tag is <HEAD> and tells the browser that everything that follows belongs in the head area of the web page until the </HEAD> tag is reached.

Step 2: Open and close head.
CODE
<HTML>
   <HEAD>
   </HEAD>
</HTML>


Inside your head tag you can place the title tag.

Step 3: Add a title
CODE
<HTML>
   <HEAD>
       <TITLE>
           Here is my first web page!
       </TITLE>
   </HEAD>
</HTML>


After you head tag comes the body tag. The body tag contains all of the information that is displayed in the browser window.

Step 4: Add a body
CODE
<HTML>
   <HEAD>
       <TITLE>
           Here is my first web page!
       </TITLE>
   </HEAD>
   <BODY>
   </BODY>
</HTML>


Now add your content between <BODY> and</BODY>

Step 5: Add your content
CODE
<HTML>
   <HEAD>
       <TITLE>
           Here is my first web page!
       </TITLE>
   </HEAD>
   <BODY>
           Place your content here!
   </BODY>
</HTML>

Cut and paste this code into your HTML editor and save as firsthtml.html and open with your browser. You'll see that you have created your first web page although it's not very pretty and it just says "Place your content here!".

Help for saving and viewing your HTML documents is located at the end of this article.

This is the absolute minimum code needed to create a properly working web page.

Next play around with you formating a little like so:
CODE
<HTML>
   <HEAD>
       <TITLE>
           Here is my first web page!
       </TITLE>
   </HEAD>
   <BODY>
       <CENTER>
My First Page.<BR>
       </CENTER>
More text here.<BR>
   </BODY>
</HTML>

The <BR> tag means line break and is one of a very few tags that does not reqiure a closing tag.

Next we'll add a link to another page or site. A link is actually called an anchor and thus the tag is <A> to open and </A> to close.

The tag actually will require some formating of its own as seen below.
<A HREF="http://www.astahost.com">Sample Text</A>
"A" is the tag type.
"HREF" is an argument that tells the browser that this anchor is Hypertext REFerencing whatever is after the equal sign in quotes.
The "Sample Text" is the text that can be clicked on to take you to "http://www.astahost.com".

***See note at bottom about the definition of "HREF".

Here it is in your you code:
CODE
<HTML>
   <HEAD>
       <TITLE>
           Here is my first web page!
       </TITLE>
   </HEAD>
   <BODY>
       <CENTER>
My First Page.<BR>
       </CENTER>
More text here.<BR>
<A HREF="http://www.astahost.com">Sample Text</A><BR>
<A HREF="http://www.paypal.com">Click here yo go to PayPal!</A><BR>
  </BODY>
</HTML>


Okay, that should do for now.
This tutorial is just a basic reference for beginners and will be referenced in future tutorials.

I just wanted to break the ice and provide some HTML comfort for more advanced topics.


File Saving And Viewing Instructions Here!
To save an HTML file in Notepad:
Click File and then Save As
Type your name and make sure that the .txt is gone and that the file name ends with .html --> like:myfile.html
Then where it askes for file tye change from Text Documents (*.txt) to All Files
Click Save.
Remember which folder you saved the file in, probably in My Documents.

To view an HTML page with Netscape:
Click File and then Open File.
Browse to the location of your html file and choose open.

To view an HTML page with Intenet Explorer:
Click File and then Open and then Browse.
Browse to the location of your html file and choose open.

*** HREF Note:
I corrected this definition after microscopic^earthling reminded me of what the "H" stood for in HREF.

My thanks to microscopic^earthling.

Happy Coding cool.gif
vujsa

 

 

 


Reply

miCRoSCoPiC^eaRthLinG
I think H stand for Hyperlink. SO <href> would be HyperLink Reference.. Correct me if I'm wrong. Another good tutorial. smile.gif

Reply

JustinSquare
Wow. I mean, no idiot can say they don't understand how html works after this. Well,amybe they still don't understand, but they will know how to do it. Kinda short, but that's all you need to know for everyelse after that. And i agree with MS^E. Most programs call it a Hyperlink, so it would make sence to be HyperLink Reference. Then again, i ain't no HTML master.

Reply

SingleDaddyof2
Very nice vujsa! One suggestion...after introducing the title tag, I would mention the purpose of the title tag. (i.e. The text between the opening and closing title tags is displayed by your browser at the very top in the window title bar--not in the web page. The title text is also displayed when the webpage is bookmarked and the Bookmarks (or Favorites) list is shown.) Also there can be only one title per webpage.

Reply

vujsa
Hey, thanks for the feedback. I agree that the title portion is a little lacking but I didn't want to get too side tracked. I considered leaving the title out alltogether as it is not a requirement to make the browser parse the code. But then I wouldn't have had a reason to have a head. While a missing head will go unnoticed by a browser, its important to learn how and where to write the head code.

The title tag will be explained further in the second article. In fact the second article will discuss each of the tags from the first article extensively.

Thanks,
vujsa

Reply

ree
Hi and Thank You for this easy to read and "Understand" Tutorial.... i needed something like this....broken down step by step...smile.gif it was nice of you to take your time. here is a Link to a place where i and Practice my HTML.. http://www.w3schools.com/html/tryit.asp?fi...e=tryhtml_basic i really like it.smile.gif i just included this so others' who might be wondering where to Practice their HTML, can find a HTML Editor Practice Pad.... with luv' Thank You again ~ree~

Reply

vujsa
Hey, I'm glad that you found this tutorial helpful and informative.
If you liked that tutorial, there are a couple of related tutorials available as well.
Hopefully these tutorials will give you a better understanding of how HTML works and help you dream up ideas of what you can do with it.

[hr=0][/hr]
That was a good link that you posted above for:W3Schools TryIt Editor v1.4

I wish they had one of those 10 years ago! laugh.gif
An HTML practice window, that's great. I mean, wow, I started by editing a blank shell document via telnet (emacs), saving, switching to browser to reload and view, and noting changes that were needed. Next thing you know, someone will invent an HTML editor that lets you visually place content in the page. tongue.gif AKA WYSIWYG

Okay, sarcasim aside, let us know if you have any questions.

happy coding, cool.gif
vujsa

 

 

 


Reply

eXc1te
great beginner tutorial i would also suggest that people go out and buy a book i find that one of the best ways to learn the language.

Reply


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*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. html 101 - 138.13 hr back. (1)
Similar Topics

Keywords : html, 101, web, design, beginners, absolute, basic, html, writing

  1. Html Basic Tutorial
    <!-- For beginners only --> (8)
  2. HTML Tags
    Ever wondered what a HTML tag was (4)
    Many people that i have met have mentioned HTML to me without really knowing what it really means.
    Because of this i thought that maybe it would be a good idea to compile a tutorial for everyone to
    read. When i listen to people talking about HTML; they never seemed to know what a HTML tag was so
    that is what i will focus on here. ------------------- Some people who use HTML may notice that I
    place the tags below in the order they appear in a document. Most people who use HTML know the tags
    which no HTML document can do without. Those are: = this is the tag which ev....
  3. Quick Html!
    Three of the coolest scripts! (3)
    Table of contents: -Meta -Cursor -Icon -Animated Title Bar (Must see!) META Meta tags
    is one of the most important things you need to know about programming. It truly will help you is
    more ways then you can imagine. First off you may be wondering what a meta tag is. A meta tag is a
    simple few lines of code that you put in the header of your document to describe it. If you do this
    correctly you can get search engines (including Google) to add your website. There are a few things
    you want to keep in mind when your making your meta tags. Make sure that you stay....
  4. HTML 102 - Web Design For Beginners
    More Basic HTML Writing (6)
    HTML 102 - Web Design For Beginners More Basic HTML Writing This will be part two of a
    multi-part HTML tutorial. Please don't post advanced HTML replies to this article. This
    tutorial is specifically written for beginning HTML writers. Requirements: Software: Web Browser,
    HTML Editor. Knowledge: HTML 101 - Web Design For Beginners. Skills: Ability to press the
    keys on the keyboard. So you have read and understood HTML 101 - Web Design For Beginners and
    you want to learn more. So far we have talked about a very basic web page. Black on white an....
  5. Good Comments Make Good Html.
    Commenting makes HTML easier to write. (15)
    Good Comments Make Good HTML. Commenting makes HTML easier to write. This is a spin off from
    another article I wrote entitle Good Comments Make Good Scripts. While the code is different, the
    concepts for comment are the same. Enjoy! Disclaimer! This tutorial is intended to be
    used to show the benefites of commenting your HTML in order to write clean, easy to read code. For
    the purpose of this tutorial, HTML, XML, XHTML validating is not taken into consideration. While I
    will make an effort to point out non-standardized code, validation has never....
  6. Converting HTML over to XHTML
    Crossing over to the darkside (13)
    Allow for alterations Well, I've just had to convert another HTML 4.01 Transitional website
    over to XHTML (eXtensible HyperText Markup Language) 1.0 Transitional, I will later on convert over
    to XHTML 1.0 Strict as soon as I write the CSS (cascading stylesheet) file for it but it had to be a
    quick update and removing all presentational elements and placing them in a CSS file is not quicker
    than just altering some tags. So this is where I got the idea to write a How to Convert HTML over
    to XHTML . Let's begin I'm having trouble knowing where to start ....

    1. Looking for html, 101, web, design, beginners, absolute, basic, html, writing

Searching Video's for html, 101, web, design, beginners, absolute, basic, html, writing
advertisement




HTML 101 - Web Design For Beginners - Absolute Basic HTML Writing



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE