亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? lesson10.html

?? a collection of mega hacking tools
?? HTML
字號:
<HTML>

<HEAD>

<TITLE>Lesson 10: Getting Down and Dirty with Tables</TITLE>

</HEAD>



<BODY>

<H2>Lesson 10: Getting Down and Dirty with Tables</H2>



Format, format, format. HTML is all about format. HTML is all about format. Just the other day, a friend asked me "Hey little v, is there a way to format a part of my page to look like it's a spreadsheet?" I told him "Heck yeah! Just make a table!".<p>



Here's a little description of tables from a great book, HTML 4 Unleashed by Rick Darnell: "Tables are kind of like lists. We're introduced to them at an early age through the mirth of games such as tic-tac-toe and checkers. Later in life, someone forces us to use a spreadsheet, and suddenly tables are'nt so fun anymore...".<p>



Tables were put in to HTML for the exact reason my friend wanted to use them for - spreadsheets and database information. Later, their features were expanded by developers to include attributes that allow much more than just that. Let's get started with creating a basic table, then get funky with some more advanced techniques!<p>



So how do we start our own HTML spreadsheet? We use the &#60;TABLE&#62; tag!<p>



The &#60;TABLE&#62; tag creates a blank table. It tells the browser "This is the start of a table". There is only one attribute to the &#60;TABLE&#62; tag that we need to worry now: the BORDER attribute. The BORDER attribute tells the browser how wide a border you want around your table data. If you do'nt include the the BORDER attribute into your &#60;TABLE&#62; tag, the browser automatically sets it to BORDER=0, which means there will be no border around your table data.<p>



So our basic table with no data looks like this:<p>



&#60;TABLE BORDER=1&#62;<BR>

&#60;/TABLE&#62;<p>



What do we have to do to get some data in there? Add cells of course! A <i>cell</i> is a rectangular part of a table that can hold text, HTML tags, and even images! Those of us who use spreadsheets are already familiar with cells. When we make <i>rows</i> and <i>columns</i> in our table, we divide our table into many cells.<p>



To create a row in a table, we use the &#60;TR&#62;, or table row tag. To divide our row into columns, we use the &#60;TD&#62;, or table data tag. You place your cells information after the table data tag.<p>



The HTML for a table with 3 rows and 3 columns is like this:<p>



&#60;TABLE BORDER=1&#62;<BR>

&#60;TR&#62;&#60;TD&#62;Row 1, Col 1 &#60;TD&#62;Row 1, Col 2 &#60;TD&#62;Row 3, Col 3&#60;/TR&#62;<BR>

&#60;TR&#62;&#60;TD&#62;Row 2, Col 1 &#60;TD&#62;Row 2, Col 2 &#60;TD&#62;Row 3, Col 3&#60;/TR&#62;<BR>

&#60;TR&#62;&#60;TD&#62;Row 3, Col 1 &#60;TD&#62;Row 2, Col 2 &#60;TD&#62;Row 3, Col 3&#60;/TR&#62;<BR>

&#60;/TABLE&#62;<p>



And the table comes out looking like this:<p>



<TABLE BORDER=1>

<TR><TD>Row 1, Col 1 <TD>Row 1, Col 2 <TD>Row 3, Col 3</TR>

<TR><TD>Row 2, Col 1 <TD>Row 2, Col 2 <TD>Row 3, Col 3</TR>

<TR><TD>Row 3, Col 1 <TD>Row 2, Col 2 <TD>Row 3, Col 3</TR>

</TABLE>

<p>



Need a little explanation for your table? Maybe a title for your column? Try a table header! The &#60;TH&#62; tag is used to put a bold header (or headers!) on the top row of your table. It's used like this:<p>



&#60;TABLE BORDER=1&#62;<BR>

&#60;TR&#62;&#60;TH&#62;9 Cell Table&#60;/TR&#62;<BR>

&#60;TR&#62;&#60;TD&#62;Row 1, Col 1 &#60;TD&#62;Row 1, Col 2 &#60;TD&#62;Row 3, Col 3&#60;/TR&#62;<BR>

&#60;TR&#62;&#60;TD&#62;Row 2, Col 1 &#60;TD&#62;Row 2, Col 2 &#60;TD&#62;Row 3, Col 3&#60;/TR&#62;<BR>

&#60;TR&#62;&#60;TD&#62;Row 3, Col 1 &#60;TD&#62;Row 2, Col 2 &#60;TD&#62;Row 3, Col 3&#60;/TR&#62;<BR>

&#60;/TABLE&#62;<p>



And your browser shows it like so:<p>



<TABLE BORDER=1>

<TR><TH>9 Cell Table</TR>

<TR><TD>Row 1, Col 1 <TD>Row 1, Col 2 <TD>Row 3, Col 3</TR>

<TR><TD>Row 2, Col 1 <TD>Row 2, Col 2 <TD>Row 3, Col 3</TR>

<TR><TD>Row 3, Col 1 <TD>Row 2, Col 2 <TD>Row 3, Col 3</TR>

</TABLE>

<p>



We can change our table by using a variety of tags. Formatting a table combines parts of page format with image formatting.<p>



Since we already know how to handle size in images, we can directly apply our knowledge to making tables. In our &lt;TABLE&gt; tag, we can add the WIDTH and HEIGHT attributes, just like in an image. For example, if we wanted a table 300 pixels wide and 300 pixels high, we'd code its &lt;TABLE&gt; tag like this:<p>



&lt;TABLE WIDTH="300" HEIGHT="300"&gt;<p>



We can also change the height and width of the individual cells by adding the HEIGHT and WIDTH attributes to the &lt;TD&gt; tags. Theres one other way to change our cells size though - we do this by passing the percentage of the table we want our cell to take up. For example, &lt;TD HEIGHT="50%" WIDTH="50%"&gt; makes that cell take up 50 percent of the tables total height and 50 percent of the tables total width.<p>



Following this trend of similarities between images and tables, we can also align data in table in a similar fashion as an image. We just need to add the ALIGN or the VALIGN (vertical align) attributes to our &lt;TR&gt; tags. ALIGN can align our row to the "left", "right", or "center" and VALIGN can align our row to the "top", "middle" or "bottom". If we wanted a cell take up what would normally be a few different cells, we use the COLSPAN attribute. COLSPAN takes as an argument the number of cells that this cell should take up. If I wanted to get a little crazy, I might align a row like this:<p>



&lt;TD ALIGN="right" VALIGN="bottom" COLSPAN="3"&gt;<p>



And this would make a cell spanning 3 normal cells, and align our text in that cell to the bottom right portion of our row. How can COLSPAN and ALIGN improve our table? Take a look at our new, improved table and you'll see!<p>



<TABLE BORDER=1>

<TR ALIGN="center"><TH COLSPAN="3">9 Cell Table</TR>

<TR><TD>Row 1, Col 1 <TD>Row 1, Col 2 <TD>Row 3, Col 3</TR>

<TR><TD>Row 2, Col 1 <TD>Row 2, Col 2 <TD>Row 3, Col 3</TR>

<TR><TD>Row 3, Col 1 <TD>Row 2, Col 2 <TD>Row 3, Col 3</TR>

</TABLE>

<p>



As you can see, centering our top heading made our table look just a little better. <p>



Does it get any better than this? Of course! We can give our whole table - or even individual rows or cells - their own background color. Can you guess how (heres a hint - remember how formatting a table is like formatting a page)? If you guessed "Use the BGCOLOR or BACKGROUND attributes" you're right! Do'nt be discouraged - you just learned how! These attributes are just inserted exactly as they would be in the &#60;BODY&#62; tag. So if i wanted the background of my sample table to be blue, and the top row to be red, I would just change the code to look like this:<p>



&#60;TABLE BGCOLOR="blue" BORDER=1&#62;<BR>

&#60;TR BGCOLOR="red" ALIGN="center"&#62;&#60;TH COLSPAN="3"&#62;9 Cell Table&#60;/TR&#62;<BR>

&#60;TR&#62;&#60;TD&#62;Row 1, Col 1 &#60;TD&#62;Row 1, Col 2 &#60;TD&#62;Row 3, Col 3&#60;/TR&#62;<BR>

&#60;TR&#62;&#60;TD&#62;Row 2, Col 1 &#60;TD&#62;Row 2, Col 2 &#60;TD&#62;Row 3, Col 3&#60;/TR&#62;<BR>

&#60;TR&#62;&#60;TD&#62;Row 3, Col 1 &#60;TD&#62;Row 2, Col 2 &#60;TD&#62;Row 3, Col 3&#60;/TR&#62;<BR>

&#60;/TABLE&#62;<p>



And if we take another look it comes out like this:<p>



<TABLE BGCOLOR="blue" BORDER=1>

<TR BGCOLOR="red" ALIGN="center"><TH COLSPAN="3">9 Cell Table</TR>

<TR><TD>Row 1, Col 1 <TD>Row 1, Col 2 <TD>Row 3, Col 3</TR>

<TR><TD>Row 2, Col 1 <TD>Row 2, Col 2 <TD>Row 3, Col 3</TR>

<TR><TD>Row 3, Col 1 <TD>Row 2, Col 2 <TD>Row 3, Col 3</TR>

</TABLE>

<p>



Notice that space is a little tight in those cells? Looks like we gotta add a little space between the borders and the text. How is this done you ask? We need to set the CELLSPACING and CELLPADDING in our table! The CELLSPACING attribute sets the amount of space between cells in our table, in pixels. The CELLPADDING attribute is used to set the amount of space between the cell borders and the cell data. If we add CELLPADDING="0" to our table, it makes the table's data align as closely as possible to the borders. Got it? Let's update our table!<p>



&#60;TABLE BGCOLOR="blue" BORDER=1 CELLSPACING=5 CELLPADDING=10&#62;<BR>

&#60;TR BGCOLOR="red" ALIGN="center"&#62;&#60;TH COLSPAN="3"&#62;9 Cell Table&#60;/TR&#62;<BR>

&#60;TR&#62;&#60;TD&#62;Row 1, Col 1 &#60;TD&#62;Row 1, Col 2 &#60;TD&#62;Row 3, Col 3&#60;/TR&#62;<BR>

&#60;TR&#62;&#60;TD&#62;Row 2, Col 1 &#60;TD&#62;Row 2, Col 2 &#60;TD&#62;Row 3, Col 3&#60;/TR&#62;<BR>

&#60;TR&#62;&#60;TD&#62;Row 3, Col 1 &#60;TD&#62;Row 2, Col 2 &#60;TD&#62;Row 3, Col 3&#60;/TR&#62;<BR>

&#60;/TABLE&#62;<p>



Yields this result:<p>



<TABLE BGCOLOR="blue" BORDER=1 CELLSPACING=5 CELLPADDING=10>

<TR BGCOLOR="red" ALIGN="center"><TH COLSPAN="3">9 Cell Table</TR>

<TR><TD>Row 1, Col 1 <TD>Row 1, Col 2 <TD>Row 3, Col 3</TR>

<TR><TD>Row 2, Col 1 <TD>Row 2, Col 2 <TD>Row 3, Col 3</TR>

<TR><TD>Row 3, Col 1 <TD>Row 2, Col 2 <TD>Row 3, Col 3</TR>

</TABLE>

<p>



Let's say we want our table to have a little caption that identifies what it is. We can do this by adding a &#60;CAPTION&#62; to our table. It's use is pretty simple, so i'll just show you how it's done.<p>



&#60;TABLE BGCOLOR="blue" BORDER=1 CELLSPACING=5 CELLPADDING=10&#62;<BR>

&#60;CAPTION&#62;A sample table&#60;/CAPTION&#62;

&#60;TR BGCOLOR="red" ALIGN="center"&#62;&#60;TH COLSPAN="3"&#62;9 Cell Table&#60;/TR&#62;<BR>

&#60;TR&#62;&#60;TD&#62;Row 1, Col 1 &#60;TD&#62;Row 1, Col 2 &#60;TD&#62;Row 3, Col 3&#60;/TR&#62;<BR>

&#60;TR&#62;&#60;TD&#62;Row 2, Col 1 &#60;TD&#62;Row 2, Col 2 &#60;TD&#62;Row 3, Col 3&#60;/TR&#62;<BR>

&#60;TR&#62;&#60;TD&#62;Row 3, Col 1 &#60;TD&#62;Row 2, Col 2 &#60;TD&#62;Row 3, Col 3&#60;/TR&#62;<BR>

&#60;/TABLE&#62;<p>



Makes our table look like so:<p>



<TABLE BGCOLOR="blue" BORDER=1 CELLSPACING=5 CELLPADDING=10>

<CAPTION>A sample table</CAPTION>

<TR BGCOLOR="red" ALIGN="center"><TH COLSPAN="3">9 Cell Table</TR>

<TR><TD>Row 1, Col 1 <TD>Row 1, Col 2 <TD>Row 3, Col 3</TR>

<TR><TD>Row 2, Col 1 <TD>Row 2, Col 2 <TD>Row 3, Col 3</TR>

<TR><TD>Row 3, Col 1 <TD>Row 2, Col 2 <TD>Row 3, Col 3</TR>

</TABLE>

<p>



Captions are great if you need to say "This is my table" or something along that line, but are completely optional.<p>



Is your head spinning with all the information? Here's a few things to help you regain your senses:<BR><OL>

<LI> Mail me at <A HREF="mailto:little_vAyour-house.com">little_v@your-house.com</A> with any questions.

<LI> <A HREF="lesson11.html">Go on to the next lesson!</A><p>



<A HREF="../main3.html">Back to Blacksun's Mainpage</A>

</BODY>

</HTML>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美国产日韩在线观看| 欧美午夜精品免费| 国产女人aaa级久久久级| 韩国av一区二区三区在线观看| 欧美电影免费观看高清完整版在线观看 | 亚洲成人动漫精品| 777亚洲妇女| 国内一区二区视频| 国产精品午夜久久| 欧美色精品天天在线观看视频| 亚洲v中文字幕| 久久午夜电影网| 99riav一区二区三区| 亚洲国产一区二区三区| 宅男噜噜噜66一区二区66| 九九视频精品免费| 中文字幕中文字幕一区二区| 日本韩国欧美三级| 麻豆精品一区二区| 国产精品狼人久久影院观看方式| 色综合久久精品| 欧美a一区二区| 国产精品全国免费观看高清| 欧美在线观看一区| 激情五月婷婷综合| 一区二区三区四区在线免费观看| 91精品国产麻豆国产自产在线 | 欧美日韩一级大片网址| 久热成人在线视频| 亚洲人一二三区| 日韩欧美国产系列| 99久久免费视频.com| 日本美女视频一区二区| 亚洲色图第一区| 日韩三级.com| 在线视频一区二区三区| 国产一区二区精品在线观看| 亚洲国产成人tv| 中文字幕第一区第二区| 91精品国产日韩91久久久久久| 成人免费av网站| 免费成人结看片| 一区二区在线观看不卡| 久久免费美女视频| 91精品国产手机| 欧洲av在线精品| 国产69精品久久久久毛片 | 26uuu成人网一区二区三区| 在线观看一区不卡| 成人自拍视频在线观看| 美腿丝袜亚洲三区| 午夜精品一区二区三区免费视频 | 日韩免费电影网站| 欧美最新大片在线看| 97精品国产露脸对白| 国产xxx精品视频大全| 韩国中文字幕2020精品| 麻豆精品久久久| 日本不卡123| 调教+趴+乳夹+国产+精品| 亚洲欧美日韩国产中文在线| 国产情人综合久久777777| 欧美精品一区二区三区一线天视频| 91电影在线观看| 91网页版在线| 高清不卡在线观看av| 久久精品99国产精品日本| 日韩精品每日更新| 亚洲一二三区在线观看| 一区二区三区精品在线| 亚洲视频免费在线| 专区另类欧美日韩| 一区精品在线播放| 国产精品久久久久久亚洲毛片 | 亚洲永久免费av| 亚洲欧美一区二区三区国产精品| 中文字幕一区免费在线观看 | 亚洲欧美一区二区三区久本道91| 国产精品久久久久影院亚瑟| 国产精品女同一区二区三区| 国产精品初高中害羞小美女文 | 一区二区三区日韩在线观看| 日韩毛片精品高清免费| 亚洲精品成人在线| 亚洲第一成年网| 秋霞电影一区二区| 韩国女主播成人在线| 国产真实乱偷精品视频免| 国产福利一区二区三区在线视频| 懂色一区二区三区免费观看| 成人一级视频在线观看| 在线视频观看一区| 欧美人与性动xxxx| 欧美xfplay| 国产精品色哟哟网站| 一区二区三区在线看| 日韩国产在线一| 国模娜娜一区二区三区| 成人免费视频一区| 欧美亚洲动漫另类| 日韩精品综合一本久道在线视频| 欧美精品一区二区久久久| 国产精品久久久久aaaa樱花| 一区二区三区欧美| 看电影不卡的网站| 99久久综合国产精品| 欧美日韩中文字幕一区二区| 日韩欧美国产高清| 国产精品国产馆在线真实露脸| 亚洲国产婷婷综合在线精品| 激情图片小说一区| 色婷婷国产精品久久包臀| 日韩欧美国产午夜精品| 一色桃子久久精品亚洲| 麻豆一区二区三| 94-欧美-setu| 精品99久久久久久| 亚洲一区二区精品3399| 激情久久五月天| 欧美日韩一级视频| 国产亚洲精品超碰| 日本午夜一本久久久综合| 成人深夜视频在线观看| 欧美情侣在线播放| 国产精品久久二区二区| 免费观看成人鲁鲁鲁鲁鲁视频| caoporen国产精品视频| 日韩久久久精品| 亚洲成人综合视频| 高清在线成人网| 日韩欧美成人午夜| 亚洲国产美女搞黄色| 国产suv精品一区二区三区| 在线一区二区三区四区五区| 国产欧美日韩在线| 久久精品国产亚洲高清剧情介绍| 99v久久综合狠狠综合久久| 久久影音资源网| 亚洲成人免费电影| 91国偷自产一区二区开放时间 | 欧美一区二区性放荡片| 亚洲免费在线视频一区 二区| 精品亚洲porn| 在线综合+亚洲+欧美中文字幕| 亚洲区小说区图片区qvod| 高清不卡一区二区| 精品国产区一区| 成人a免费在线看| 精品欧美一区二区三区精品久久| 亚洲一区二区欧美日韩| 色综合婷婷久久| 亚洲三级在线播放| 菠萝蜜视频在线观看一区| 亚洲国产高清在线| 国产精品18久久久久| 精品久久久久久久久久久久久久久| 婷婷综合在线观看| 91精品欧美久久久久久动漫 | 国产亚洲精品aa| 国产精品一区二区三区网站| 欧美videossexotv100| 日韩精品一区第一页| 911精品国产一区二区在线| 亚洲一二三四久久| 欧美色中文字幕| 亚洲小说春色综合另类电影| 在线免费一区三区| 亚洲图片欧美色图| 7777精品伊人久久久大香线蕉完整版 | 91美女在线视频| √…a在线天堂一区| 99精品国产99久久久久久白柏| 亚洲婷婷在线视频| 91老司机福利 在线| 一区二区三区四区视频精品免费| 色天使色偷偷av一区二区| 一区二区三区欧美亚洲| 欧美日韩激情一区二区| 天天色天天操综合| 日韩欧美在线网站| 国产一区二区三区久久久| 国产婷婷色一区二区三区| www.久久久久久久久| 一区二区三区中文字幕精品精品| 欧美午夜精品一区| 麻豆精品一区二区av白丝在线| 欧美精品一区二区精品网| 成人免费看的视频| 一区二区三区四区蜜桃| 日韩一区二区三区高清免费看看 | 国产精品网站在线| 日本精品裸体写真集在线观看| 亚洲福利视频一区二区| 精品久久久久久无| 成人黄页毛片网站| 午夜成人免费电影| 国产亚洲1区2区3区| 色拍拍在线精品视频8848| 免费欧美在线视频| 国产精品你懂的在线|