HTML Tutorial - Chapter 8 E-Mailing
It is possible to make a link that allows people to e-mail you or someone else directly from your webpage, assuming they have a compatible web browser. It would be rare for any browser to not support e-mailing. You probably have Netscape or MSIE, but even text based web browsers (Lynx) support mailing. Mailing (in its simple form, you'll learn how to add form e-mailing later) is a link
tag. If you remember, a link tag follows this format:
<a href="http:www.dummysite.com">Click here!</a>.
An e-mail link tag is slightly different. It follows this format:
<a href=mailto:user@address.com>Click here to e-mail me!</a>
For example,
<a href=mailto:pstein@nettaxi.com>Pete's E-mail</a> Like it's said in Chapter 5, an image can also be a link to an e-mail address, example: <a href=mailto:me@site.com Note: You should not use rows and columns in the same frameset. It gets confusing. If you get good, try experimenting with embedding a second frameset inside another so that you can have rows and columns. src - This is the html page of the frame you want to put in. <frame src="menu.html"> for example. name - This is a keyword used to define a frame. Say you had a menu frame and wanted it so that whenever you click a link on the menu, it opens the page you want in the main frame (the large one, if you make a large one), instead of the menu. You simply put target="framename" in the <a href> tag, and its that simple. <frame name="main"> for example. noresize - Sets it so that the frames boder lines cannot be changed. <frame noresize> for example. marginwidth - How wide the frames margin is. marginheight - How tall the frames margin is. <frame marginwidth="5"> for example. 上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >>
<img src="
After frameset, the frames are defined in order. In the example, there are 2 columns defined, one column is small at 20%, and the other (remember * is whatever is left) is 80% because of course, 100% - 20% = 80%. The frames themselves are defined in order, so the first <frame> will be the small column, and the second will be the large one.
The frame tag is used to declare a frame and special options for the frame, like how to make it so that there are no bars, or maybe make it so that it can't be resized.
Frame attributes/options:
scrolling - Can the frame have scrolling? Sometimes you want scrolling off if Netscape automatically scrolls a title bar or something that you want to stay still.
<frame scrolling=yes/no/auto> for example. Auto would mean that the browser would use its best judgement to decide whether the frame needed scrolling.
border - How wide should the lines forming the frames be? Making invisible lines makes the page look nice because it looks like the page is solid, but you can make nice use of a menu system, and also you can have 2 different backgrounds next to each other.
After the <frame> tags are done, thats it. Use the </frameset> tag to finish off the frame syntax. Anything put in the body tag after a frameset will be considered old browser text. For example, if someone enters your page with Lynx (a Unix/Linux text web browser), or Netscape 1.0 (a very old version of Netscape without frame support) then all they'd see is a blank page. But by putting something like: "This page uses frames, please get a new browser." They will be able to read that and know that your page isn't empty, it just uses frames that they can't access. You could even put a text version of your main page, so that everyone could access your site regardless of browser (an ideal thing to do).