HTML HEAD TITLEBasic Table ExamplesTITLE HEAD BODY TABLE
<HTML> <HEAD> <TITLE>Basic Table Examples</TITLE> </HEAD> <BODY> <TABLE BORDER> <TH>Colors</TH><TH>Of</TH><TH>The Rainbow</TH> <TR> <TD>Red</TD><TD>Orange</TD><TD>Yellow</TD> </TR> <TD>Green</TD><TD>Blue</TD><TD>Violet</TD> </TR> </TABLE> <HR> <TABLE BORDER> <CAPTION>My Favorite Groups</CAPTION> <TR><TH>Rock</TH><TD>Pink Floyd</TD> <TD>Led Zepplin</TD> <TD>The Dobbie Brothers</TD></TR> <TR><TH>Soft</TH><TD>Simon and Garfunkel</TD> <TD>Peter, Paul, & Mary</TD> <TD>Neil Young</TD></TR> <TR><TH>New Age</TH><TD>Enya</TD> <TD>Clannad</TD> <TD>Steamroller</TD></TR> </TABLE> </BODY> </HTML> HTLM-7. 2
HTLM-7. 3
<HTML> <HEAD> <TITLE>Table Alignments</TITLE> </HEAD> <BODY> <TABLE BORDER> <CAPTION ALIGN=BOTTOM>A Really Ugly Table</CAPTION> <TR> <TH></TH><TH>##########</TH> <TH>#####</TH> </TR> <TR ALIGN=RIGHT> <TH>Row 1</TH><TD>XX<BR>XX</TD><TD ALIGN=CENTER>X </TD><TD>XXX</TD> </TR> <TR VALIGN=BASELINE> <TH ALIGN=LEFT>Second Row</TH><TD>XXX<BR>XXX</TD><TD>XXX</TD> <TD>XXX<BR>XXX</TD> </TR> <TR ALIGN=LEFT> <TH>This Is<BR>The Bottom Row of <BR>The Table</TH> <TD VALIGN=BOTTOM>XXXXX</TD> <TD VALIGN=TOP>XXX<BR>XXXXX</TD> <TD VALIGN=MIDDLE>XXXXX</TD> </TR> </TABLE> </BODY> </HTML> HTLM-7. 4
HTLM-7. 5
<HTML> <HEAD> <TITLE>Using Tables to Display Information</TITLE> </HEAD> <BODY> <TABLE> <TR> <TD ROWSPAN=4 VALIGN=BOTTOM><IMG SRC="init. gif"><TD> <TH VALIGN=TOP>Jerry Honeycutt</TH> </TR> <TD VALIGN=TOP><EM><Books: </EM><BR> Using the Internet with Windows 95<BR> Windows 95 Registry and Customization Handbook<BR> Special Edition Using the Windows 95 Registry<BR> VBScript by Example<BR> Using the Internet 2 E<BR> Special Edition Using the Internet 3 E<BR> </TD> </TR> <TR><HR></TR> <TD ALIGN=CENTER VALIGN=BOTTOM>Send e-mail to <EM> jerry@honeycutt. com</EM></TD> </TR> </TABLE> <BODY> </HTML> HTLM-7. 6
HTLM-7. 7
Δημιουργία Frame <HTML> <HEAD></HEAD> <FRAMESET ROWS="25%, 50%, 25%"> <FRAME SRC="header. htm"> <FRAMESET COLS="25%, 75%"> <FRAME SRC="label. htm"> <FRAME SRC="info. htm"> </FRAMESET> <FRAME SRC="footer. htm"> </FRAMESET> <NOFRAMES>Your browser cannot display frames. </NOFRAMES> </HTML> HTLM-7. 8
HTLM-7. 9
Ορισμός γραμμών και στηλών (ROWS και COLS) <FRAMESET ROWS="τιμές" COLS=" τιμές"> </FRAMESET> <FRAMESET ROWS="100, 240, 140"> < FRAMESET ROWS="25%, 50%, 25%"> Μπορούν να χρησιμοποιηθούν και αναλογικές τιμές, όπως : <FRAMESET COLS="*, 2*, 3*"> <FRAMESET COLS="100, 25%, *, 2*"> <FRAMESET ROWS="*, 2*, *" COLS="2*, *"> Tο Tag <FRAME> <FRAME SRC="url"> Το SRC ορίζει το περιεχόμενο, εδώ το URL. HTLM-7. <FRAME SRC="sample. htm"> 10
Reserved Implicit Frame Names _blank Load content directed to this name into a new, unnamed window. This name is used to completely wipe out the current frameset and start with a new, blank window. _self Load content directed to this name into the calling frame. _parent Load content directed to this link to the calling frame's parent frameset window. If it has no parent frameset, this is the same as using the name _self. _top Load content directed to this link to the top level frameset related to the calling frame. If the calling frame is already the top level, this is the same as using the name _self. HTLM-7. 12
- Slides: 12