HTML 102 - Web Design For Beginners - More Basic HTML Writing

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

HTML 102 - Web Design For Beginners - More Basic HTML Writing

vujsa
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:
    [/tab]Software: Web Browser, HTML Editor.
[tab]Knowledge: HTML 101 - Web Design For Beginners.
    [/tab]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 and a link or two. Not very interesting. So next well add images and later talk about page formating.

Just to review, let's look at our basic code.
Our basice web page from HTML 101:
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>


Now to add an image like a photo, logo, or banner; we'll use the image search tag.
Example:
CODE
<IMG SRC="http://www.foo.com/images/image102.jpg">
The <IMG> tag is another one of the very few tags that does not need a closing tag.

Here is our image in our basic HTML 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>
          <IMG SRC="http://www.foo.com/images/image102.jpg">
  </BODY>
</HTML>

Now if "image102.jpg" is a photo of your family or favorite car, the code above is geat; but if you have a banner, you'll need to associate a link with the image.

Using an anchor tag <A> to create a link allows text to be linked by placing the text between the opening and closing anchor tags. <A>text</A>.

Instead of placing text between the tags, place an <IMG> tag between the tags.
Example:
CODE
<A HREF="http://www.foo.com"><IMG SRC="http://www.foo.com/images/image102.jpg"></A><BR>
Now clicking the image takes you to www.foo.com.


Okay, that is everything you need to know in order to create a usable web page.
But the page will continue to be pretty boring. Let's dress it up a little.

The first thing you'll need to do, if you haven't already is change that page title.
"Here is my first web page!" is a very nice title but something a little more descriptive about the content of your web page would be better.
The text between the <TITLE></TITLE> tags is the text that shows up in the upper left corner of the browser window next to the browser's icon.
This is also the same title displayed on the tabs if multiple browser windows or browser tabs are open.

Next thing to look at is that <BODY> tag.
Here is where much of the pages formating is defined.
Here is a list of basic <BODY> tag attributes:
  • TEXT -> Color of normal text; TEXT="BLACK"
  • LINK -> Color of a text link; LINK="BLUE"
  • ALINK -> Color of an active link; ALINK="RED"
  • VLINK -> Color of a visited link; VLINK="PURPLE"
  • BGCOLOR -> Color of the pages background; BGCOLOR="WHITE"
  • BACKGROUND -> Background image; BACKGROUND="http://www.foo.com/images/background.jpg"

Let's add that to our code.
CODE
<HTML>
   <HEAD>
       <TITLE>
           HTML For Beginners Test Page
       </TITLE>
   </HEAD>
   <BODY TEXT="BLACK" LINK="BLUE" ALINK="RED" VLINK="PURPLE" BGCOLOR="WHITE" BACKGROUND="http://www.foo.com/images/background.jpg">
       <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>
          <IMG SRC="http://www.foo.com/images/image102.jpg">
  </BODY>
</HTML>
Now if background.jpg was a real file, it would appear in the background; instead the background will just be the BGCOLOR "WHITE".

Now, let's say that you wanted to have a black background, then black text wouldn't show up. So change the color of the text in the <BODY> tag.
Example:
CODE
<BODY TEXT="YELLOW" LINK="BLUE" ALINK="RED" VLINK="PURPLE" BGCOLOR="BLACK">
Note that the background image was left out.

But what if you just wanted to change your text color temporarily. Maybe for a red description.
We'll use the <FONT> tag to change the color of our text temporerily.
Example:
CODE
<FONT COLOR="RED">Here Is My Red Description!</FONT>


The <FONT> tag like the <BODY> tag also has several attributes.
Here are the basic <FONT> tag attributes:
  • COLOR -> Color of the text; COLOR="YELLOW"
  • SIZE -> Size of the text; SIZE="4"
  • FACE -> The font of the text; FACE="ARIAL"
* A note about the size attribute:
[tab]There are several methods for assigning the size of the font. I've seen SIZE="+1", SIZE="1", and SIZE=1 all used. Different guides suggest different methods. I suggest a number in quotes.

Yor text can be formated with several additional tags other than the <FONT> tag.
Here are the basics:
  1. <B></B> -> Bold Text
  2. <I></I> -> Italic Text
  3. <U></U> -> Underlined Text

Okay, just one more item this in the tutorial.
The <IMG> tag has a few attributs that you'll need to know.
  • HEIGHT -> Height of the image; HEIGHT="100" (100 pixels)
  • WIDTH -> Width of the image; WIDTH="140" (140 pixels)

Example:
CODE
<IMG SRC="http://www.foo.com/images/image102.jpg" HEIGHT="100" WIDTH="140">
Try to keep the size ratio the same as the original. like 5 X 7 = 50 X 70 or 100 X 140.

Now put it all together and see what happens. Let me know if you have trouble.

Happy coding, cool.gif
vujsa

 

 

 


Reply

rachelwase
Once again, thanks for taking the time to put this together. I really like that it's easy to understand and use. Before reading your tutorials I really didn't have a clue what HTML even was!

Reply

h3lium
wow, nice tutorial, found some useful things i didn't know. it's because of people like you that the internet is such a great to place to look to for knowledge.

Reply

SonicHabbo
Very Confusing=]

Reply

sparkx
Very nice tutorial. I couldn't have said it better myself. I think of two types of tags, not just tags you close and tags you dont need to close. I think of them rather as tags that require no extra data. For example an <img> tag needs no extra data (outside of the tag) so there is no need to close it, but tags like <center> apply to something not inside the tag itself, therefore it needs to be ended.
Reply to SonicHabbo: This is as basic as it gets. Even the font tag has been simplified. I would post the standard way for <font> tags, but no advanced HTML replys.
Again Very Good,
Sparkx

Reply

Sten
nice tutorial but lol i no all html pretty much so its a bit pointless for me.

i like to use xhtml, mainly because for tags with no closing tag, u use a "/" at the end. (omg i had to copy and paste the slash from notepad to put it in here, when i pressed it i got the stupid search thing down the bottom in firefox).

like:
CODE
<img src="img.gif" alt="image" width="100" height="100" name="image" />


but anyway, if i were a beginner it would be a great help!

Reply

FirefoxRocks
I think that this is a good tutorial back in HTML 3.2, however I would recommend some changes to this.
For a beginner, this would help them create their first page, but it would be easier to learn XHTML right from the start.

All HTML/XHTML elements and attributes are to be in lowercase letters, not uppercase.
The <img> tag needs a closing tag as well as an alt attribute, so it looks like this:
HTML
<img src="http://www.foo.com/images/image102.jpg" alt="My favourite car or whatever" />


The alt attribute is to provide alternate information in case the picture won't load, pictures are disabled, your visitor is blind, etc.

The <br> element is a self-closing element also, so instead of <br>, try <br />.

All of those attributes mentioned with the body are depreciated, although still valid in HTML/XHTML transitional, they shouldn't be used. All of those can be substituted in using CSS styles. Same with the <font> element, never use <font>!!

<u> is a depreciated element, try this instead:
HTML
<span style="text-decoration:underline">


Those are some of the newer XHTML stuff, other than that, your tutorial is quite helpful for beginners! smile.gif

For other helpful resources, check out my Web Development Portal or W3Schools. wink.gif

 

 

 


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.

Recent Queries:-
  1. alts tags uppercase - 3.12 hr back. (1)
  2. text "pictures are disabled" - 70.89 hr back. (1)
  3. html place title in ie tab for .jpg - 265.92 hr back. (1)
  4. styles link alink vlink xhtml strict - 361.77 hr back. (1)
Similar Topics

Keywords : html, 102, web, design, beginners, basic, html, writing

  1. Basic Html Tutorial
    Made it myself, hope you like it. (1)
  2. Html Basic Tutorial
    <!-- For beginners only --> (9)
    Knowledge HTML stands for H yper T ext M arkup L anguage. You cannot create an HTML file
    using a rich-text editor, such as Microsoft Word or Wordpad. HTML To write a basic HTML, you will
    need to start with this: CODE <html> The html > tag tells the browser that this is
    an HTML page. To close any tag, the same tag will be repeted but with the "/" sign. For example,
    CODE <html>   <head>     <title>Page title</title>
      </head> </html> Did you notice the /title >, /head > & /html > tags? Th....
  3. 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....
  4. 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....
  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. HTML 101 - Web Design For Beginners
    Absolute Basic HTML Writing (7)
    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: Software: Web
    Browser, HTML Editor. 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....
  7. 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, 102, web, design, beginners, basic, html, writing

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for html, 102, web, design, beginners, basic, html, writing
advertisement




HTML 102 - Web Design For Beginners - More Basic HTML Writing



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
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