Welcome, Guest. Please login or register for free.
Did you miss your activation email?
Thursday 28 August 08 14:28 BST (UK)
Welcome Home Help Shop Search Calendar Login Register
Search Images 

Online
 
  First Name(s)

Last Name

 
News: Click to View the 1861 England Census

+  RootsChat.Com
|-+  General
| |-+  The Common Room
| | |-+  Free RootsChat Webspace (Moderator: trystan)
| | | |-+  HTML Help System
« previous next »
Pages: [1] Print
Author Topic: HTML Help System  (Read 278 times)
CaseyBee
RootsChat Senior
****
Offline Offline

Posts: 265



WWW
HTML Help System
« on: Thursday 10 November 05 22:58 GMT (UK) »

Does anyone know of a HTML Help system (preferrably on-line) that answers the question WHY? The only ones I have found so far answer the question WHAT (like 99.99% of IT Help Systems).

For example

A <div> tag defines a division/section in a document (as defined in w3schools). But WHY would I use one?

These help systems are great at defining facilities but always assume one knows what to use!

Frustrated
Keith Sad
Logged

Bingham - Bradford, Hull, Brigg
Smeed - Surrey, London

Census information is Crown Copyright, from www.nationalarchives.gov.uk
gbaynes
RootsChat Member
***
Offline Offline

Posts: 123



WWW
Re: HTML Help System
« Reply #1 on: Friday 11 November 05 07:08 GMT (UK) »

Hi CaseyBee

I've just had a quick look and like you say they don't give a reason for DIV.

The HTML markup language is based on boxes for presentation.

They talk about the "box model". The BODY tag is not a "box". If you start your BODY with a paragraph P then the validators will tell you that that is illegal. However all the browsers will display your page as you want it.

I think of the DIV as a box definer. It defines the size, shape, border, position of its contents. Because everything in the DIV will stay within that DIV wherever you put it.

The confusing bits come when you consider that each "box" has a margin area, a border area, and a padding area. Then you get the content.

Look at this page for a detailed explanation.

www.w3.org/TR/REC-CSS2/box.html

Logged
Berlin-Bob
Global Moderator
RootsChat Marquessate
*******
Offline Offline

Posts: 5075


by My Daughter. Chatting to find her Roots !


Re: HTML Help System
« Reply #2 on: Friday 11 November 05 07:22 GMT (UK) »

Hi gbaynes,

thanks for that link, very useful !!

Keith,

another use of DIV is different formatting.

using CSS styles sheets, you can give a "box" (a class) a name, with all kinds of properties (margins, colours, etc) and then give another box a diferent name and different properties.

in your HTML text you then have:

<div class="box1">
:
html lines
:
</div>

and then later:

<div class="box2">
:
html lines
:
</div>

By using CSS and <div> you can change the "look" of a web page, without changing the content - See also
Topic:  Introduction to CSS
http://www.rootschat.com/forum/index.php/topic,102092.0.html  from gbaynes

It's mostly done with <div>-boxes and classes.

Bob
« Last Edit: Friday 11 November 05 18:53 GMT (UK) by Berlin-Bob » Logged

Searching for Coleman, Moore, Kallnung in London; Margulies, Remenyi in E. Europe;
Ancestors of Hessie Stevenson-Coleman-Baxter (Ireland, 1861)
and, of course, any other ancestors for my web-site http://boco.rootschat.net

All Census Data included in this post is Crown Copyright (see: www.nationalarchives.gov.uk)
Pages: [1] Print 
« previous next »


[Copyright] [Free RootsChat Webspace] [Your Surname Interests] [Shrink Link] [About Us] [Terms of Use]
All Census Lookups are Crown Copyright, National Archives for academic and non-commercial research purposes only
RootsChat.com cannot be held responsible directly or indirectly for the messages or content posted by others. Inline images in messages are the copyright of the respective linked sites.
RootsChat.com, Europa House, Bury, Lancashire, BL9 5BT
27.195:23