Jul 27, 2008

Advanced Html Frame Tag - Frames and Tables

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > HTML, XML etc..

free web hosting

Advanced Html Frame Tag - Frames and Tables

Trystim
FRAME SYNTAX

Frame syntax is similar in scope and complexity to that used by tables, and has been designed to be quickly processed by Internet client layout engines.
CODE

<FRAMESET>


This is the main container for a Frame. It has 2 attributes ROWS and COLS. A frame document has no BODY, and no tags that would normally be placed in the BODY can appear before the FRAMESET tag, or the FRAMESET will be ignored. The FRAMESET tag has a matching end tag, and within the FRAMESET you can only have other nested FRAMESET tags, FRAME tags, or the NOFRAMES tag.

ROWS="row_height_value_list"
The ROWS attribute takes as its value a comma separated list of values. These values can be absolute pixel values, percentage values between 1 and 100, or relative scaling values. The number of rows is implicit in the number of elements in the list. Since the total height of all the rows must equal the height of the window, row heights might be normalized to achieve this. A missing ROWS attribute is interpreted as a single row arbitrarily sized to fit.

Syntax of value list.
value
A simple numeric value is assumed to be a fixed size in pixels. This is the most dangerous type of value to use since the size of the viewer's window can and does vary substantially. If fixed pixel values are used, it will almost certainly be necessary to mix them with one or more of the relative size values described below. Otherwise the client engine will likely override your specified pixel value to ensure that the total proportions of the frame are 100% of the width and height of the user's window.
value%
This is a simple percentage value between 1 and 100. If the total is greater than 100 all percentages are scaled down. If the total is less than 100, and relative-sized frames exist, extra space will be given to them. If there are no relative-sized frames, all percentages will be scaled up to match a total of 100%.
value*
The value on this field is optional. A single '*' character is a "relative-sized" frame and is interpreted as a request to give the frame all remaining space. If there exist multiple relative-sized frames, the remaining space is divided evenly among them. If there is a value in front of the '*', that frame gets that much more relative space. "2*,*" would give 2/3 of the space to the first frame, and 1/3 to the second.

Example for 3 rows, the first and the last being smaller than the center row:
CODE

    <FRAMESET ROWS="20%,60%,20%">


Example for 3 rows, the first and the last being fixed height, with the remaining space assigned to the middle row:
CODE

    <FRAMESET ROWS="100,*,100">

    COLS="column_width_list"

The COLS attribute takes as its value a comma separated list of values that is of the exact same syntax as the list described above for the ROWS attribute.

NORESIZE
The NORESIZE attribute has no value. It is a flag that indicates that the frame is not resizable by the user. Users typically resize frames by draggin a frame edge to a new position. Note that if any frame adjacent to an edge is not resizable, that entire edge will be restricted from moving. This will effect the resizability of other frames.The NORESIZE attribute is optional; by default all frames are resizable.

The FRAMESET tag can be nested inside other FRAMESET tags. In this case the complete subframe is placed in the space that would be used for the corresponding frame if this had been a FRAME tag instead of a nested FRAMESET.
CODE

<FRAME>

This tag defines a single frame in a frameset. It has 6 possible attributes: SRC, NAME, MARGINWIDTH, MARGINHEIGHT, SCROLLING, and NORESIZE. The FRAME tag is not a container so it has no matching end tag.
CODE

SRC="url"

The SRC attribute takes as its value the URL of the document to be displayed in this particular frame. FRAMEs without SRC attributes are displayed as a blank space the size the frame would have been.

MARGINWIDTH="value"
The MARGINWIDTH attribute is used when the document author wants some control of the margins for this frame. If specified, the value for MARGINWIDTH is in pixels. Margins can not be less than one-so that frame objects will not touch frame edges-and can not be specified so that there is no space for the document contents. The MARGINWIDTH attribute is optional; by default, all frames default to letting the browser decide on an appropriate margin width.
MARGINHEIGHT="value"

The MARGINHEIGHT attribute is just like MARGINWIDTH above, except it controls the upper an lower margins instead of the left and right margins.

SCROLLING="yes|no|auto"
The SCROLLING attribute is used to describe if the frame should have a scrollbar or not. Yes results in scrollbars always being visible on that frame. No results in scrollbars never being visible. Auto instructs the browser to decide whether scrollbars are needed, and place them where necessary. The SCROLLING attribute is optional; the default value is auto.

NAME="window_name"
The NAME attribute is used to assign a name to a frame so it can be targeted by links in other documents (These are usually from other frames in the same document.) The NAME attribute is optional; by default all windows are unnamed.
Names must begin with an alphanumeric character.
Named frames can have their window contents targeted with the new TARGET attribute.

CODE

<NOFRAMES>

This tag is for content providers who want to create alternative content that is viewable by non-Frame-capable clients. A Frame-capable Internet client ignores all tags and data between start and end NOFRAMES tags.




Syntax
CODE
<TABLE>...</TABLE>

Attribute Specifications

ALIGN=[ left | center | right ] (table alignment)
SUMMARY=Text (purpose/structure of table)
WIDTH=Length (table width)
BORDER=Pixels (border width)
FRAME=[ void | above | below | hsides | lhs | rhs | vsides | box | border ] (outer border)
RULES=[ none | groups | rows | cols | all ] (inner borders)
CELLSPACING=Length (spacing between cells)
CELLPADDING=Length (spacing within cells)
BGCOLOR=Color (table background color)



these again are courtesy of various websites and books i own and information i have gathered and comiled into a MS word .doc

credit goes to the originators of this information.

Notice from BuffaloHELP:
When you copy from another source you must use QUOTE tags. If your post consists of more than 10% quote, provide link instead. Site source http://www.pex.com/ur/html/frame/framenst.html

 

 

 


Reply

jlhaslip
That's a good summary of Frames and Tables. Biggest problem is they are both 'frowned upon' in the current Web Development environment. Frames are not very search friendly and can't be linked to. Tables make for poor structuring on a site, although there are some uses for them with certain data, they should not be used for the 'layout' of the page.
The w3c specs also allow for the <iframe> tag which you didn't mention. Perhaps some info on that could be included on your next posting?

Reply

Tyssen
QUOTE(jlhaslip @ Mar 2 2006, 10:18 AM) *

That's a good summary of Frames and Tables. Biggest problem is they are both 'frowned upon' in the current Web Development environment.

Tables are fine for displaying tabular data, but unfortunately, a lot of the attributes provided in the example have been deprecated since HTML 4.

Reply

fffanatics
Yeah so basically unless you are a newbie web developer you definitely should not be using tables for your site. Instead you need to use css and divs since it is web spider friendly and will improve your rating since it can be indexed better. Plus, it gives you sooo much more flexibility along with a lot easier way to change the look of your site by just editing the css file.

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. where do i place my frame tag on a completed site - 26.74 hr back. (1)
  2. html iframe help middle - 34.91 hr back. (1)
  3. html resize table to fit iframe - 50.26 hr back. (1)
  4. to put a frame tag - 98.48 hr back. (2)
  5. set link color within iframe tag - 130.31 hr back. (1)
  6. iframe advanced tag - 142.62 hr back. (1)
  7. advanced frame css - 205.85 hr back. (1)
  8. html frame advanced - 206.28 hr back. (1)
  9. html pure css resizable frames - 207.22 hr back. (1)
  10. iframe frame tags - 207.69 hr back. (1)
Similar Topics

Keywords : advanced, html, frame, tag, frames, tables

  1. Help Making A Web Adress Bar Using Html/js
    (9)
  2. Html Ascii Codes - A Complete List
    downloadable php file (3)
    I was often frustrated at how, despite there being thousands of ASCII "special characters" such as
    &8659; , websites that claimed to list them all only listed the first 256. To combat this issue,
    I have created a table which lists the first 10,001 - from &#000; to &10000; I am sure
    there are many more but it is simply not feasible to create a table with many more rows as viewing
    it would put terrific strain on the browser.! You can download the file in two forms. One uses
    PHP to dynamically create the table (1KB), the other has it ready-made in pure HT....
  3. Html Div Help [resolved]
    help with the divs in ipb (1)
    hey guys, as you may know, i have ipb 2.3.4 set up on my site. i am currently using the centura
    skin and like it a lot. i have customised the header bar in terms of the logo, however also want a
    slab of text linking to the forums home at the top of the banner. i have so far managed to achieve
    this to work in firefox (see attached screenshot), however it just screws up in ie, opera and safari
    (i think). the link is here here is the code, both html and css, of the ipb header, and i have
    placed between stars the parts i have edited: CODE the css (only the ed....
  4. Frames Tutorial
    (2)
    QUOTE A Basic Example of Frames No Frames? No
    Problem! Take a look at our no-frames version. copied from
    http://www.htmlcodetutorial.com/frames/frames_famsupp_5.html ....
  5. Best Way To Protect Html Form Fields
    Looking for suggestions on how to protect form fields during user inpu (3)
    My working example is here http://sonesay.trap17.com/application.php The form submits to itself
    and stores what ever the user inputs into session variables. Thats all fine and I have validation
    checks for it, I wanted to add more and I remember comming across a site where they would lock from
    fields to prevent any changes if the information was already supplied and validated. I'm looking
    to build something similar but cant seem to figure out how to get that same effect at this time.
    Heres my program logic so far application.php includes('application_content.....
  6. Can You Put Tables Inside Of Tables?
    (6)
    Well... could you? Specifically I mean can you place a tag in a tag which are already parts of
    tables.... if so, how do you go about doing it? ....
  7. Html Application Form
    (6)
    does anyone know how to make a form/application that when you submit the form with the submit but it
    sends it in a email to you email address if anyone on here knows please please let me know thanks, i
    want this so i can have members apply for a team on my football site and there information will come
    back to me and i can accept or reject them for that job....
  8. Login In Using Html
    (12)
    I have looked around and I can't find any code to help me out. I want to make it so you can log
    in to my site to get member featues. Could some one please help me....
  9. Wanna Learn Html From Scratch
    downloade an online tutorial,formatted my c: lost it forever,and FORGO (5)
    id prefer something i can download .....coz my internet connection is highly intermittant Moved
    from the Java section to the HTML section. ....
  10. Help With Tables Please
    :) (4)
    Ok need a little help I own a site called Gaming-Alliance www.gaming-alliance.net anywho i have
    this issue with tables i have it set so that it'll make links in a row under my head thing heres
    the link to that so far, i cannot continue without this help /smile.gif"
    style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> so please make it fast
    /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> heres the
    code Gaming Alliance - Next Generation Of Gamers Today
    heres th....
  11. Help With Css/html Layout
    Horizontal List Problems (5)
    I can't figure out why this horizontal list isnt working. Underneath my banner is supposed to
    be a green gradient bar with a list of links in the center of the page. The links are all the way
    to the left and are really small. The banner is also overlapping the list for some reason. This is
    my current layout(don't worry, I'm not trying to advertise).
    http://www.stormgaming.net/stormcreations/ This is my CSS file
    http://www.stormgaming.net/stormcreations/storm.css Thanks in advance for any help.....
  12. Html Help
    (6)
    ok so i need help again i was wondering how i can make a navigation bar that looks like this
    Free Website Templates <!-- Start of Page Menu -->
    Information Slide Show Pictures title="Time Line"> Time
    Line <!-- End of Page Menu --> Im having a problem putting
    the names of things that i want to go in those four boxes i tried to put in names but it didnt show
    up so i was wondering if anyone could give me some help....
  13. Some More Help With Html
    (2)
    Ok so yet again i need some help i have this so far: CODE <html> <head>
    </head> <BODY BGCOLOR="black" TEXT="white" LINK=#XXXXXX
    VLINK=#XXXXXX> <body> <center><h1> Pearl
    Harbor</h1></center> <hr> <p> <a
    href="http://photobucket.com" target="_blank"><img
    src="http://i173.photobucket.com/albums/w59/tuhyd/pearlharbor.jpg" border="0"
    align=right alt="USS Arizona "></a></right> <a ....
  14. Ok Background Help Please
    html (4)
    OK so i've given up on the paint for background now how would i get it to look like this
    http://img.photobucket.com/albums/v614/Dj1.../background.jpg without using paint and without it
    coming out to look like this... http://img.photobucket.com/albums/v614/Dj169211/Damn.jpg like,
    with just html code, not trying to use paint and do the BS any ideas?....
  15. Help With Html
    (11)
    Ok so i just started learn html about a couple of weeks ago and i make a background image using this
    code: CODE <style type="text/css"> body {
    background-image:url("http://img.photobucket.com/albums/w59/tuhyd/backgrounds.jpg
    4;); background-repeat: no-repeat}</style> and i am having trouble putting my
    text on the top in the center becasue my links are on the left every time i try and move the text up
    it moves the links down and separates them and i don't know what to do. added code tags.
    please use appropri....
  16. How To Display Php Code [resolved]
    Html Help With Php Codebox (8)
    I'm trying to make codebox for my guestbook so that users can post PHP code inside.. I tried
    many versions but none of them works If i use , or i can display HTML code, but when i try to
    write PHP code it executes it does not display.. There is a way to make swap for You have codebox
    in forum to display php how can i make that?! thanks....
  17. Html Query
    HTML Query (2)
    OK, so I want to know if it's possible to have my links as a seperate file and simply reference
    that file in the rest of my site's pages so that if I change the links, I don't have to go
    and edit every single page of my site. Does anyone know how to do this?....
  18. Having Html Troubles......
    Please help! (0)
    I'm having troubles with the background colours on the HTML pages on my site
    keri-j.trap17.com Basically, the colors are hex codes and i'm no HTML n00b, god no! But, I
    just can't figure this one out! I have the background colour in the body tag (duh) " " on
    all my pages but on some of them the background is white. This might be to do with some javascript i
    have recently edited in each page or certain errors but whatever it is i can't figure it
    out! This is my homepage with the correct background color This is my poetry page with the
    fau....
  19. Frames
    (4)
    I need help with frames... ok so this is what i have. A folder "Danny" Things Inside Danny:
    Index.html CODE <HTML> <HEAD> <TITLE></TITLE> <link
    rel="stylesheet" href="style.css" type="text/css"> </HEAD>
    <FRAMESET cols="15%, 85%">   <FRAME src="nav.html" Scrolling=NO
    NoResize FrameBorder="0" Marginwidth="100" MarginHeight="100">
          <frame src="home.html" noresize frameborder="0" name=Home>
          <frame sr....
  20. Wanting To Touch Up/learn My Html Again
    (26)
    Ok, well recently i realized that i am not as skilled in HTML (such as building website layouts) as
    i want to be, with tables etc... and so i was thinking about going through many many many many many
    many sites and just touching up on my HTML and see if i can code my own website template before
    starting to learn PHP because that is what i want to do. so, i am asking all of you experianced
    people on trap17 what websites did you use to learn your HTML skills, yees i know i could go to
    google and type in learn html or somthing along the lines of that, but i want to know wh....
  21. Error In Css (or Html)
    (5)
    Well i am currently working on a project, and for this i need to fix this little error: Code is:
    CODE $this->frm .= "<style type=\"text/css\">
                            <!--                         .style1 {color: #000000}
                            -->                         </style>{$this->top}
                            <from action=\"$PHP_SELF\"
    method=\"post\" name=\"\">
                            <table width=\"800�....
  22. Have You Used This Html Code?
    very useful (9)
    how do you do if you want to put a video or audio file on you page...maybe you will use CODE
    <object><param name=url value="url"></object>/*simple format*/
    CODE <div><embed src="url"></embed></div> /*simple
    format*/ there is a very familiar code for carring out the video show : CODE <img
    dynsrc="http://kenvi9999.googlepages.com/ff7.wmv" border=1>/*an example:FF7*/
    have you used this html code...I just knew a tag can achieve video play that is really co....
  23. Creating Link In Html - Help Me With This!
    (5)
    edit: Neeeaavverrrminddd..... I was a total noob at php when i posted this and I needed help doing
    something with bbcode in php and didn't really know what I was saying.. /blush.gif"
    style="vertical-align:middle" emoid=":blush:" border="0" alt="blush.gif" /> Anyway topic
    resolved.......
  24. Html Question Concerning Pre Tag And Code Tag
    (8)
    My question is, why would anyone use the CODE tag when you can use the PRE tag? 1. The PRE tag
    recognises white space, the CODE tag does not. 2. The CODE tag requires that you escape some
    chars, the PRE tag does not. I cannot see anything that the CODE tag achieves that is special apart
    from sounding as though it is perfect for displaying code which IMO it is not. Thanks. ....
  25. Html And Javascript
    Not php as first indicated... (12)
    Edit your ScrollBar colors Change "Your color", to color code, that u need. CODE <STYLE
    type="text/css"> <!-- BODY { scrollbar-face-color: Your color;
    scrollbar-highlight-color: Your color; scrollbar-3dlight-color: Your color;
    scrollbar-darkshadow-color: Your color; scrollbar-shadow-color: Your color;
    scrollbar-arrow-color: Your color; scrollbar-track-color: Your color; } -->
    </STYLE> Insert Date Place this code between , tags CODE <script
    language=Javascript> <!-- v....
  26. Do You Know Html?
    Just Wondering, most of you would know. (65)
    Well I was just wondering, i know this polol might sound stupid, as this is a hosting site forum and
    the chances are you do know HTML, but the other day i met 2 people who didt have a clue what HTML
    was, and was just at the forum because they found this forum active. And also do you know any other
    programming languages, just wondering. I myself know HTML, C++ kinda, and learing PHP. Talking about
    Languages I know Tamil, English, Lote /tongue.gif' border='0' style='vertical-align:middle'
    alt='tongue.gif' /> .....
  27. Html Editor
    non WYSIWYG (19)
    What editor can I download and use that isn't a WYSIWYG(what-you-see-is-what-you-get) and is
    free. Currently I use NotePad but I want something better.....
  28. Html Cool Codes?
    (6)
    hey guys..whats up..well i ws just wondering if you guys have any cool codes for myspace or
    something..you know to design a page using html/css codes...see i tried googling around but all the
    sites had the same thing..they dont have a unique one...i want like games in my page...like my
    friend he had like tetris in his page..and i want a game// or anything like that to make my page
    cool /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' />
    anybody????plz...PEAcE!....
  29. Html And Xhtml
    serving the right kind (11)
    Right now I have a site, which I've made XHTML 1.0 Strict. I am sending it as
    application/xhtml+xml to browsers that say they can handle it, and as text/html to all other
    browsers. Anyway, I started thinking that I'd much rather send proper HTML 4.01 to browsers that
    don't understand XHTML instead of XHTML pretending to be HTML 4.01. It's not really a
    problem with IE, because it is made to handle badly written sites, but who knows, some browser that
    can handle HTML, but not XHTML, may be (correctly) parsing CODE <p> Hello <br />
    World....
  30. where did you learn html from?
    (84)
    HI, i am intresting in knowing where you began learning html of what inspired you to start learning
    html. which programs did you use or which progs dyu use?....

    1. Looking for advanced, html, frame, tag, frames, tables

Searching Video's for advanced, html, frame, tag, frames, tables
advertisement



Advanced Html Frame Tag - Frames and Tables



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web 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