WEB/HTML

[HTML] section VS article ์‹œ๋งจํ‹ฑํƒœ๊ทธ ์ฐจ์ด

heeney 2021. 10. 28. 23:48
728x90

 

๐Ÿ”– section VS article ์‹œ๋งจํ‹ฑ ํƒœ๊ทธ ๋น„๊ต

 

section๊ณผ article์€ ์“ธ๋•Œ๋งˆ๋‹ค ํ—ท๊ฐˆ๋ ค์„œ ์ œ๋Œ€๋กœ ์งš๊ณ  ๋„˜์–ด๊ฐ€์ž๊ณ  ๋‹ค์งํ–ˆ๋‹ค.

 


 

article

๋‚ด์šฉ์ด ๋…๋ฆฝ์ ์ด๊ณ  ๋”ฐ๋กœ ๋–ผ์–ด์ ธ๋„ ํ๋ฆ„์ด ๊นจ์ง€์ง€ ์•Š๋Š” ๋‚ด์šฉ์ผ๋•Œ ์‚ฌ์šฉ
๋ธ”๋กœ๊ทธ ๊ธ€์„ ๊ฐœ๋ณ„๋กœ ๊ฐ๊ฐ ๋‚˜๋ˆŒ๋•Œ article์„ ์‚ฌ์šฉํ•˜๊ธฐ๋„ ํ•œ๋‹ค.

<article></article>

 


 

section

๊ฐ section์˜ ๋‚ด์šฉ์ด ์—ฐ๊ด€์„ฑ(๋…ผ๋ฆฌ์ ์œผ๋กœ ๊ด€๊ณ„์žˆ๋Š” ๋ฌธ์„œ) ์žˆ์„๋•Œ ์‚ฌ์šฉ

<section></section>

 


 

article ์•ˆ์— section์„ ๋„ฃ๊ธฐ๋„ ํ•˜๊ณ  section์•ˆ์— article์„ ๋„ฃ๊ธฐ๋„ ํ•œ๋‹ค.
๊ทธ๋Ÿฌ๋‚˜ ์„ค๋ช…์„ ๋ณด๋‹ค์‹œํ”ผ ์ € ๋งฅ๋ฝ๋Œ€๋กœ๋ผ๋ฉด article ์•ˆ์— section์ด ์žˆ๋Š” ๊ฒƒ์ด ์ž์—ฐ์Šค๋Ÿฝ๋‹ค.
์–ด๋–ป๊ฒŒ ๊ตฌ์„ฑํ•˜๋“  ๋ณธ์ธ ์ž์œ ์ด์ง€๋งŒ ๋‚˜๋Š” ๋งฅ๋ฝ์ƒ article > section์ด ๋งž๋‹ค๊ณ  ์ƒ๊ฐํ•œ๋‹ค.

 

article > section

<article>
	<h1>๋ฏผ์ดˆ</h1>
	<section>๋ฏผ์ดˆ๋‹จ</section>
	<section>๋ฐ˜๋ฏผ์ดˆ๋‹จ</section>
</article>

 

section > article

<section>
	<h1>๊ฒฝ์ œ</h1>
	<article>๊ฒฝ์ œ๋‰ด์Šค1</article>
	<article>๊ฒฝ์ œ๋‰ด์Šค2</article>
</section>

 

 

 

728x90

'WEB > HTML' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[HTML] aํƒœ๊ทธ๋กœ ์ด๋ฉ”์ผ ๋ฐ ์ „ํ™” ๋งํฌ ๊ฑธ๊ธฐ | mailto, tel  (0) 2021.10.27