[Day3] HTML 3 [11/4]

 

html ์ด๋ฏธ์ง€

   - ์›นํŽ˜์ด์ง€์˜ ์ด๋ฏธ์ง€ ์‚ฝ์ž… -   img ํƒœ๊ทธ

   - ์ด๋ฏธ์ง€๊ฐ€ ์›น ํŽ˜์ด์ง€์—  ๋งํฌ(์—ฐ๊ฒฐ)

   - ์ข…๋ฃŒํƒœ๊ทธ X

   - 2๊ฐ€์ง€ ํ•„์ˆ˜ ์†์„ฑ

       alt  ==  alternatetext

       src == uri

   - ์ธ๋ผ์ธ๋ชจ๋“œ     

 <img alt="์ดํƒˆ๋ฆฌ์•ˆ ํŠค๋ฆฝ" src=" http://localhost/webPro/html/images/pic_trulli.jpg">
 <img alt="" src="https://s.pstatic.net/static/newsstand/2022/1103/article_img/new_main/9005/154923_001.jpg">

- ์ƒ๋Œ€ ๊ฒฝ๋กœ -> ์—ญ์Šฌ๋Ÿฌ์‹œ ์•„๋‹ˆ๊ณ  ๊ทธ๋ƒฅ ์Šฌ๋Ÿฌ์‹œ์ž„!

<a href="../images/pic_trulli.jpg"><img src="../images/pic_trulli.jpg" alt="์ดํƒˆ๋ฆฌ์•ˆ ํŠค๋ฆฝ"  width="250"></a>

 

- ์ด๋ฏธ์ง€ ์‚ฌ์ด ๊ณต๋ฐฑ ์—†์• ๊ธฐ ์œ„ํ•ด์„œ๋Š” ๊ฐœํ–‰์—†์ด ์—ฐ์†ํ•ด์„œ ์ ์–ด์•ผํ•จ

- ํ•ญ์ƒ ์ด๋ฏธ์ง€์˜ ๋„ˆ๋น„์™€ ๋†’์ด๋ฅผ ์ง€์ •ํ•˜์ž

 ๊ทธ ์ด์œ  ? ๋„ˆ๋น„,๋†’์ด ์ง€์ • X ์ด๋ฏธ์ง€๊ฐ€ ๋กœ๋”ฉ๋˜๋Š” ๋™์•ˆ ์›น ํŽ˜์ด์ง€๊ฐ€ ๊นœ๋ฐ•์ผ ์ˆ˜ ์žˆ๋‹ค.

  --> img ์ธ๋ผ์ธ๋ชจ๋“œ

- ์ด๋ฏธ์ง€ ํฌ๊ธฐ : ๋„ˆ๋น„ ์™€ ๋†’์ด ์ง€์ • X   500 x 333

 <img src="../images/pic_trulli.jpg" alt="์ดํƒˆ๋ฆฌ์•ˆ ํŠค๋ฆฝ">

- ์ด๋ฏธ์ง€ ํฌ๊ธฐ : ๋„ˆ๋น„ ์™€ ๋†’์ด ์ง€์ • O  : ๋„ˆ๋น„ 250px  ๋†’์ด๋„ ๋„ˆ๋น„์˜ ๋น„์œจ๋งŒํผ ์„ค์ •

 <img src="../images/pic_trulli.jpg" alt="์ดํƒˆ๋ฆฌ์•ˆ ํŠค๋ฆฝ"  width="250">
 <img src="../images/pic_trulli.jpg" alt="์ดํƒˆ๋ฆฌ์•ˆ ํŠค๋ฆฝ"  width="200"  height="100">

- ๋งํฌ์— ์ด๋ฏธ์ง€ ์‚ฝ์ž…

<a href="../images/pic_trulli.jpg"><img src="../images/pic_trulli.jpg" alt="์ดํƒˆ๋ฆฌ์•ˆ ํŠค๋ฆฝ"  width="250"></a>

 

css ์ ์šฉํ•˜๋Š” 2๋ฒˆ์งธ ๋ฐฉ๋ฒ• (์ธ๋ผ์ธ)

 <img src="../images/pic_trulli.jpg" alt="์ดํƒˆ๋ฆฌ์•ˆ ํŠค๋ฆฝ"  style="width:250px;">

 

- ํ•ญ์ƒ ์™ธ๋ถ€ ์ด๋ฏธ์ง€๋ฅผ ์‚ฌ์šฉํ•  ๋•Œ๋Š” ์ €์ž‘๊ถŒ ์‹ ๊ฒฝ

 <img src="๋‹ค๋ฅธ์„œ๋ฒ„/์›น์‚ฌ์ดํŠธ์˜ ์ด๋ฏธ์ง€ ์ ˆ๋Œ€URL" alt="" >
/* css ์ ์šฉํ•˜๋Š” 1๋ฒˆ์งธ ๋ฐฉ๋ฒ•  */
/* selector */
   img{
      width: 100%;
   }
   
   body{
      border:1px solid red; 
   }

 

* CSS ์ธ๋ผ์ธ ๋ฐฉ์‹์ด head style ๋ฐฉ์‹๋ณด๋‹ค ์šฐ์„ ํ•œ๋‹ค!


์• ๋‹ˆ๋ฉ”์ด์…˜ ์ด๋ฏธ์ง€ :    gif ํ—ˆ์šฉ

<img src="../images/programming.gif" alt=""  style="width:58px;height:48px;">

 

๋ชจ๋“  ๋ธŒ๋ผ์šฐ์ €( Chrome, Edge, Firefox, Safari, Opera ๋“ฑ)์—์„œ ์ง€์›๋˜๋Š” ๊ฐ€์žฅ ์ผ๋ฐ˜์ ์ธ ์ด๋ฏธ์ง€ ํ˜•์‹ 

.apng
.gif
.ico     .cur
.jpg  .jpeg  .pjpeg, pjp   .jfif
.png
.svg

 

html ์ด๋ฏธ์ง€ ๋งต

1) ๋งต(map)์„ ์‚ฌ์šฉํ•˜์—ฌ ์ด๋ฏธ์ง€์— ํด๋ฆญ ๊ฐ€๋Šฅํ•œ ์˜์—ญ์„ ๋งŒ๋“ค ์ˆ˜ ์žˆ๋‹ค.

2) map ํƒœ๊ทธ - ์ด๋ฏธ์ง€ ๋งต

    area ํƒœ๊ทธ - ํด๋ฆญ ๊ฐ€๋Šฅํ•œ ์˜์—ญ

 3) ๋ชจ๋“  ์ด๋ฏธ์ง€๋ฅผ ์ด๋ฏธ์ง€๋งต์œผ๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค( ํŒ)   

 4) shape  : rect, circle, poly( ๋‹ค๊ฐํ˜•), default( ์ „์ฒด์ง€์—ญ)

<img alt="workplace" src="../images/workplace.jpg"  usemap="#workmap">

๋ฒ”์œ„ ์„ค์ •

<map name="workmap">
  <area alt="" shape="rect" coords="34,44,270,350"  href="ex03_computer.html">
  <area alt=""  shape="rect" coords="290,172,333,250"  href="ex03_phone.html">
  <!-- <area alt=""   shape="circle" coords="337,300,44"  href="ex03_coffee.html"> -->
  <area alt=""   shape="circle" coords="337,300,44"  href="ex03_coffee.html"  onclick="window.alert('๋‹น์‹ ์€ ์ปคํ”ผ๋ฅผ ํด๋ฆญํ–ˆ๋‹ค!!!')">  
</map>

html - picture ํƒœ๊ทธ

  1. ์—ฌ๋Ÿฌ ๊ฐœ์˜ source ํƒœ๊ทธ๋ฅผ ์„ค์ •ํ•  ์ˆ˜ ์žˆ๋‹ค. - ๋‹ค์–‘ํ•œ ์žฅ์น˜๋งˆ๋‹ค ๊ฐ€์žฅ ์•Œ๋งž์€ ๋‹ค๋ฅธ ์ด๋ฏธ์ง€๋ฅผ ์„ ํƒํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•˜๋Š” ํƒœ๊ทธ

  2. ๋ฐ˜์‘ํ˜• ์›น์„ ๋งŒ๋“ค ๋•Œ ์‚ฌ์šฉ (๊ฐ™์€ ํŽ˜์ด์ง€์ธ๋ฐ๋„ ๋ฐ˜์‘์„ ๋‹ค๋ฅด๊ฒŒ ํ•˜๋Š” ๊ฒƒ)

  3. img ํƒœ๊ทธ๋Š” ๊ฐ€์žฅ ๋งˆ์ง€๋ง‰ ์ง€์ •ํ•œ๋‹ค. 

-> ๋‹ค์–‘ํ•œ ์žฅ์น˜์— ๋งž๊ฒŒ ์‚ฌ์šฉ ๊ฐ€๋Šฅ!

<picture>
  <source srcset="../images/img_pink_flowers.jpg"  media="(min-width:650px)">
  <source srcset="../images/img_white_flower.jpg"  media="(min-width:450px)">
  <img src="../images/img_orange_flowers.jpg" alt="">
</picture>

html - Favicon(ํŒŒ๋น„์ฝ˜)

  - ํŒŒ๋น„์ฝ˜ ?  ๋ธŒ๋ผ์šฐ์ € ํƒญ์˜ ํŽ˜์ด์ง€ ์ œ๋ชฉ ์˜†์— ํ‘œ์‹œ๋˜๋Š” ์ž‘์€ ์ด๋ฏธ์ง€.

  - link ํƒœ๊ทธ๋ฅผ ์‚ฌ์šฉํ•ด์„œ ํŒŒ๋น„์ฝ˜์„ ์ถ”๊ฐ€.

  - ํŒŒ๋น„์ฝ˜ ํŒŒ์ผ ํ˜•์‹ :    .ico     .png     .gif   .jpeg   .svg 

  - link ํƒœ๊ทธ๋Š” ๋ฌธ์„œ์™€ ์™ธ๋ถ€ ์ž์›(๋ฆฌ์†Œ์Šค) ๊ฐ„์˜ ๊ด€๊ณ„๋ฅผ ์ •์˜ํ•˜๋Š” ํƒœ๊ทธ

 

* copy selector

<head>
	<link rel="shortcut icon" type="image/x-icon" href="../images/SiSt.ico">
	<!-- <link rel="shortcut icon" type="image/x-icon" href="https://www.naver.com/favicon.ico?1"> -->
	<!-- http://localhost/favicon.ico?1" -->
</head>

 

* ํŒŒ๋น„์ฝ˜ ๋ชจ๋“  html ํŒŒ์ผ์— ๋„ฃ๊ธฐ

- new - html - next - html5 -  html templates - html5 - edit - title ๋ฐ‘์—๋‹ค๊ฐ€ ํ–‰ ์ถ”๊ฐ€


http://www.ohmynews.com/NWS_Web/View/at_pg.aspx?CNTN_CD=A0002877714&PAGE_CD=N0006&utm_source=naver&utm_medium=newsstand&utm_campaign=news&CMPT_CD=E0033M

->๊ฐ€๋Šฅํ•˜๋ฉด ๋น„์Šทํ•œ ํŽ˜์ด์ง€  

 

 

์‚ฌ๋Š”์ด์•ผ๊ธฐ
 <hr color="black">
 <span style="background-color: red;color:white">์—ฐ์žฌ</span>
 ์ดํƒœ์› ์••์‚ฌ ์ฐธ์‚ฌ  |  203ํ™”
 <h1><a href='#'>์ดํƒœ์› ์ฐธ์‚ฌ์— ์•…ํ”Œ ๋‹จ ๋‹น์‹ , ํ˜น์‹œ ์ด๋Ÿฐ ๋งˆ์Œ ๋•Œ๋ฌธ์ธ๊ฐ€์š”</a></h1>
 <font color="#666"><b>์ „๋ฌธ๊ฐ€๊ฐ€ ๋ณธ ํŠธ๋ผ์šฐ๋งˆ์™€ ๋น„๋‚œ์‹ฌ๋ฆฌ์˜ ์ƒ๊ด€๊ด€๊ณ„... ์ง€๊ธˆ์€ ์„œ๋กœ ๋ถˆ์•ˆ์„ ๋Œ๋ณด๊ณ  ์—ฐ๋Œ€ํ•  ๋•Œ</b></font>
 <br><br>
 22.11.04 11:33l์ตœ์ข… ์—…๋ฐ์ดํŠธ 22.11.04 11:33l์†ก์ฃผ์—ฐ(serenity153) <a href="javascript:"><img src="http://ojsimg.ohmynews.com/images/ohmynews/common/btn_arw2.gif" alt=""></a>
 <hr color="gray" size="1">
 <button title="์ดํƒœ์› ์ฐธ์‚ฌ์— ์•…ํ”Œ ๋‹จ ๋‹น์‹ , ํ˜น์‹œ ์ด๋Ÿฐ ๋งˆ์Œ ๋•Œ๋ฌธ์ธ๊ฐ€์š” ์ข‹์•„์š”"><span></span></button>
 <a href="#">+ํฌ๊ฒŒ</a> | <a href="#">-์ž‘๊ฒŒ</a> | <a href="#"><img src="http://ojsimg.ohmynews.com/images/ohmynews/common/icon_print.svg" alt=""  
 style="width:17px;height:17px">์ธ์‡„</a>
  | <a href="#"><img src="http://ojsimg.ohmynews.com/images/ohmynews/common/icon_scrap.svg" alt=""  
 style="width:17px;height:17px">์Šคํฌ๋žฉ</a>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 <br>
 <a href="#"><img style="width:22px;height:22px" alt="" src=" http://ojsimg.ohmynews.com/images/ohmynews/common/tts.svg">๋ณธ๋ฌธ๋“ฃ๊ธฐ</a>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

* ๋งˆ์šฐ์Šค ์˜ฌ๋ฆด๋•Œ ๋ฐ˜์‘

<head>
<style>
  a{
     text-decoration: none;
     color:black;
     font-size: 18px;
  }
  a:hover{            /* hover ๋งด๋Œ๋‹ค */
     text-decoration: underline overline line-through;
  }
</style>
</head>

 

* ๊ทธ๋ฆผ ์˜†์— ๊ธ€์ž ์ฑ„์›Œ์ง€๊ฒŒํ•˜๊ธฐ

<h3>html - ์ด๋ฏธ์ง€ ํ”Œ๋กœํŒ…( float : ๋‘ฅ๋‘ฅ ๋– ๋‹ค๋‹ˆ๋‹ค.)</h3>

<p>
   <img src="../images/programming.gif" alt=""  style="float:right">
   Lorem ipsum dolor sit amet, consectetur adipisicing elit. 
   Dolor laborum tempora reiciendis ut atque laudantium 
   quam necessitatibus alias molestiae et totam eveniet 
   temporibus aperiam ducimus possimus impedit accusamus
   quis molestias?
</p>

<p>
   <img src="../images/programming.gif" alt=""  style="float:left">
   Lorem ipsum dolor sit amet, consectetur adipisicing elit. 
   Dolor laborum tempora reiciendis ut atque laudantium 
   quam necessitatibus alias molestiae et totam eveniet 
   temporibus aperiam ducimus possimus impedit accusamus
   quis molestias?
</p>

 

* ์  ์ฝ”๋”ฉ (์—๋ฐ‹) - ํ”Œ๋Ÿฌ๊ทธ์ธ ๋ฐฉ์‹, ์ƒ์‚ฐ์„ฑ ๋†’์Œ

div#page>div.logo+ul#navigation>li*5>a

 

 * ์—ฌ๋ฐฑ, ๊ฐ€์šด๋ฐ ์ •๋ ฌ

<head>
<style>
   body{
      border:1px solid red;
   }
   
   p{
      border:1px solid gray;
       /* width ์†์„ฑ์„ ์„ค์ •ํ•˜์ง€ ์•Š์œผ๋ฉด ๊ธฐ๋ณธ์€ ๋ถ€๋ชจ ๋„ˆ๋น„์˜ 100% */
      width: 400px;      
       /* ๋†’์ด๋Š” ์ง€์ •ํ•˜์ง€ ์•Š์œผ๋ฉด ๋‚ด์šฉ๋ฌผ์˜ ๋”ฐ๋ผ์„œ ๋†’์ด๊ฐ€ ์ž๋™ ์„ค์ •๋˜์ง€๋งŒ
      ์ง€์ •ํ•˜๋ฉด   */
      height: 400px;
      
      /* ์•ˆ์ชฝ ์—ฌ๋ฐฑ */
      padding: 5px;
      
      /* ๊ฐ€์šด๋ฐ ์ •๋ ฌ   ์™ผ์ชฝ ์—ฌ๋ฐฑ==์˜ค๋ฅธ์ชฝ ์—ฌ๋ฐฑ */
      margin: 0 auto;
      
      background-image: url('../images/img_girl.jpg');
   }
</style>
</head>
<body>
<h3>๋ฐฐ๊ฒฝ์ด๋ฏธ์ง€</h3>

<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. 
Quaerat dicta iure dolor laudantium deserunt nisi unde 
possimus quam. Officiis adipisci natus fugit odit quam 
cumque aperiam culpa cupiditate laborum eos.
</p>
</body>

html - table, tr, td ํƒœ๊ทธ

    1. ๋ฐ์ดํ„ฐ( ํ–‰, ์—ด)  ์ถœ๋ ฅ

    2. ์˜ˆ)  dept ํ…Œ์ด๋ธ” <br>

deptno        dname                  loc
10         ACCOUNTING       NEW YORK   
20        RESEARCH             DALLAS
30        SALES                     CHICAGO
40        OPERATIONS         BOSTON

    3. ํ–‰  A [t]able [r]ow   : 

        ์—ด(์ปฌ๋Ÿผ)  A [cell] within a table

        td ํƒœ๊ทธ : ํ…์ŠคํŠธ, ์ด๋ฏธ์ง€, ๋ชฉ๋ก, ๋งํฌ, ์ž์‹ ํ…Œ์ด๋ธ” ๋“ฑ ๋ชจ๋“  html ์š”์†Œ๋ฅผ ํฌํ•จํ•  ์ˆ˜ ์žˆ๋‹ค.

        th ํƒœ๊ทธ :  A [t]able [h]eader cell, bold + ๊ฐ€์šด๋ฐ ์ •๋ ฌ

 

5ํ–‰ 3์—ด ํ…Œ์ด๋ธ” ์ƒ์„ฑ

- ํ…Œ์ด๋ธ” width ์„ค์ •๊ฐ€๋Šฅ

- td ํ•˜๋‚˜ ๋„ˆ๋น„๋„ ์ง€์ • ๊ฐ€๋Šฅ

  <!-- ๊ฒฝ๊ณ  :  Attribute (width) is obsolete. Its use is discouraged in HTML5 documents. -->

  -> width ์†์„ฑ ๊ถŒ์žฅ X, style ๋กœ ๊ถŒ์žฅ!!!

table>tr*5>td*3
<table border="1"  style="width:400px">
	<tr>
	<!-- ์ปฌ๋Ÿผ๋“ค์˜ ๋จธ๋ฆฌ๊ธ€์ด ๋˜๋Š” ์…€ -->
		<th>deptno</th>
		<th>dname</th>
		<th>loc</th>
	</tr>
	<tr>
		<td>10</td>
		<td>ACCOUNTING</td>
		<td>NEW YORK</td>
	</tr>
	<tr>
		<td>20</td>
		<td>RESEARCH</td>
		<td>DALLAS</td>
	</tr>
	<tr>
		<td>30</td>
		<td>SALES</td>
		<td>CHICAGO</td>
	</tr>
	<tr>
		<td>40</td>
		<td>OPERATIONS</td>
		<td>BOSTON</td>
	</tr>
</table>

 

* ํ…Œ์ด๋ธ”์— style ์†์„ฑ ์ฃผ๊ธฐ

(๊ณตํ†ต)

  table, th, td {
     border: 1px solid black;
  }

(๋‹ค๋ฅด๊ฒŒ)

  table{
     /* width:400px; */
     width: 100%;
     font-size: 12px;
  }
  
  td{
     padding: 5px;
  }

* ๊ฐœ๋ฐœ์ž๋„๊ตฌ์—์„œ style ํ™•์ธ ๊ฐ€๋Šฅ!

* table font-size๋ฅผ td๊ฐ€ ๋ฌผ๋ ค๋ฐ›์Œ

 

th ์•„๋‹ˆ๋ผ td๋กœ ๊ฐ€์šด๋ฐ ์ •๋ ฌํ•˜๋Š”๋ฒ•

  <table>
  	<tr> 
  		<td align="center"><b>deptno</b></td>
  		<td align="center"><b>dname</b></td>
  		<td align="center"><b>loc</b></td>
  	</tr>
  	<tr>
  		<td>10</td>
  		<td>ACCOUNTING</td>
  		<td>NEW YORK</td>
  	</tr>
  	<tr>
  		<td>20</td>
  		<td>RESEARCH</td>
  		<td>DALLAS</td>
  	</tr>
  	<tr>
  		<td>30</td>
  		<td>SALES</td>
  		<td>CHICAGO</td>
  	</tr>
  	<tr>
  		<td>40</td>
  		<td>OPERATIONS</td>
  		<td>BOSTON</td>
  	</tr>
  </table>

nth-child(odd) : 

<style>   
  table, th, td {
     border: 1px solid black;
  }  
  table{    
     width: 100%;
     font-size: 12px;
  }  
  td{
     padding: 5px;
  }
</style> 
<style>
   tbody > tr:nth-child(odd){
      /* background-color: #dddddd; */
      background-color: #ddd;
   }
   
   table, th, td{
       border-radius: 5px;
       border-collapse: collapse;                  /* ์ปค๋ ™์Šค == ๋ถ•๊ดด๋˜๋‹ค, ๋ฌด๋„ˆ์ง€๋‹ค. */
   }
</style>
<table> 
    <thead>
	    <tr> 
	  	   <!-- input ํƒœ๊ทธ : ์ž…๋ ฅ์šฉ ํƒœ๊ทธ -->
	  	    <th width="30"><input type="checkbox"></th>
	  		<th>deptno</th>
	  		<th style="width:150px">dname</th>
	  		<th>loc</th>
	  	</tr>
    </thead>
  	<tbody>
	  	<tr height="30">
	  	   <!--  ๋งŒ์•ฝ  ๋ชจ๋“  td   align -->
	  	    <td align="center"><input type="checkbox"></td>
	  		<td valign="top">10</td>
	  		<td align="center">ACCOUNTING</td>
	  		<td style="text-align: center">NEW YORK</td>
	  	</tr>
	  	<tr style="height: 30px">
	  	    <td align="center"><input type="checkbox"></td>
	  		<td style="vertical-align: top;">20</td>
	  		<td>RESEARCH</td>
	  		<td>DALLAS</td>
	  	</tr>
	  	<tr>
	  	    <td align="center"><input type="checkbox"></td>
	  		<td>30</td>
	  		<td>SALES</td>
	  		<td>CHICAGO</td>
	  	</tr>
	  	<tr>
	  	    <!-- Element (center) is obsolete. Its use is discouraged in HTML5 documents. -->
	  	    <td><center><input type="checkbox"></center></td>
	  		<td>40</td>
	  		<td>OPERATIONS</td>
	  		<td>BOSTON</td> 
	  	</tr>
  	</tbody>
  	<tfoot>
  	     <tr>
  	       <td colspan="4"  align="center">
  	           <button>์ถ”๊ฐ€</button>
  	           <button>์ˆ˜์ •</button>
  	           <button>์‚ญ์ œ</button>
  	       </td>
  	     </tr>
  	</tfoot>
  </table>

<style>
   table{
      border:1px solid black;
      width:500px;
      height:500px;
   }
   td{
       border:1px solid black;
   }
</style>
<table>
	<tr>
		<td align="center">1</td>
		<td align="right"  valign="top">2</td>
		<td valign="bottom">3</td>
		<td>4</td>
		<td>5</td>
	</tr>
	<tr>
		<td>6</td>
		<td>7</td>
		<td>8</td>
		<td rowspan="4">9~</td>
		<td>10</td>
	</tr>
	<tr>
		<td>11</td>
		<td>12</td>
		<td>13</td> 
		<td>15</td>
	</tr>
	<tr>
		<td>16</td>
		<td>17</td>
		<td>18</td> 
		<td>20</td>
	</tr>
	<tr>
		<td colspan="3">21 ~23</td> 
		<td>25</td>
	</tr>
</table>

* 21~23 ๊ฐ€๋กœ๋กœ ํ•ฉ์นจ colspan

* row span

* ๊ท€ํ‰์ด valign

  • ๋„ค์ด๋ฒ„ ๋ธ”๋Ÿฌ๊ทธ ๊ณต์œ ํ•˜๊ธฐ
  • ๋„ค์ด๋ฒ„ ๋ฐด๋“œ์— ๊ณต์œ ํ•˜๊ธฐ
  • ํŽ˜์ด์Šค๋ถ ๊ณต์œ ํ•˜๊ธฐ
  • ์นด์นด์˜ค์Šคํ† ๋ฆฌ ๊ณต์œ ํ•˜๊ธฐ