- html5
- html5/VA
- html5/canvas
- html5/drag-and-drop
- html5/form
- html5/geolocation
- html5/offline-web-application
- html5/others-api
- html5/outline
- html5/overview
- html5/richtext-edit
- html5/video&audio
- html5/web-storage
- html5/web-workers
- html5/webSqlDatabase
- html5/websocket
- html5/๋ฌธ์ ์
- html5practice/roundRect
- html5practice/์ฆ๊ฒจ์ฐพ๊ธฐ๋ชฉ๋ก๋ง๋ค๊ธฐ
1. ์์๋ผ์ธ์ ์์ํ ๋งํฌ์ ¶
- ์น ์ดํ๋ฆฌ์ผ์ด์
์ ๊ตฌ์กฐ๋ฅผ ๋
ผ๋ฆฌ์ ์ผ๋ก ๊ธฐ์ ํ๊ธฐ ์ํ ๊ธฐ๋ณธ ์์
- ๋ฌธ์ ๋ด ํน์ ๋ด์ฉ์ ์๋ฏธ๋ก ์ ์ผ๋ก ๊ตฌ๋ถ ์ง๋ ์๋ก์ด element๋ค
- section, article
- outline
- ์น์
์ ์ค์ฒฉ๊ด๊ณ
- ์น์
์ ์ค์ฒฉ๊ด๊ณ
1.1. ์ฐธ๊ณ ์ฌํญ ¶
- ์น์
์์๋ฅผ ์ฌ์ฉํ ๋๋ ํญ์ ์์๋ผ์ธ์ ์ผ๋ํด ๋ ๊ฒ
- ์์๋ผ์ธ๊ณผ ์๊ด ์๋ ๋ฒ์๋ฅผ ์ง์ ํ ใน๋๋ div๋ฅผ ์ฌ์ฉํ ๊ฒ
- article ์์๋ฅผ ์ฌ์ฉํ ๊ฒ์ธ๊ฐ ๋ง ๊ฒ์ธ๊ฐ๋ ์ฝํ
์ธ ๋ฅผ ํด๋น ํ์ด์ง์์ ๋ถ๋ฆฌํด์ ์ฌ์ฉ ๊ฐ๋ฅํ๊ฐ์ ๋ฐ๋ผ ๊ฒฐ์
- aside๋ ์์ด๋ ๋ฌธ์ ์์ ์น์
์ ์ฌ์ฉ
2.1.1. section ์ ๋ชฉ ¶
- ํ๋๋ง ์ง์ ๊ฐ๋ฅ
- ์ฌ๋ฌ ์ ๋ชฉ์ ๋ฌถ์ด ํ๋๋ก ๋ง๋ค๊ธฐ ์ํ
<hgroup>
ํ๊ทธ ์ฌ์ฉ๊ฐ๋ฅ
- ์น์
์ ๋๊ฐ ์ด์์ ์ ๋ชฉ์ ์ง์ ํ๋ฉด ์๋ฌต์ ์ผ๋ก ์น์
์ด ์์ฑ๋๋ค. ๊ทธ๋ฐ๋ฐ ์ด๋ค ๊ท์น์ผ๋ก ์์ฑ๋ ์ง ๋ชจ๋ฅธ๋ค.
2.1.2. section root ¶
- ํ๋์ ๋
๋ฆฝ๋ ์์๋ก ์ธ์ ๋๋ ํ๊ทธ๋ค
- body, fieldset(์
๋ ฅ ํ๋ ๊ทธ๋ฃน), td, figure, blockquote
- body๊ฐ section root์. HTML5์ ์ปจํ
์ธ ๋ ๋ชจ๋ section์ ํฌํจ๋๋ค๋ ๊ฒ์ ์ ์ถ ๊ฐ๋ฅ
- body๊ฐ section root์. HTML5์ ์ปจํ
์ธ ๋ ๋ชจ๋ section์ ํฌํจ๋๋ค๋ ๊ฒ์ ์ ์ถ ๊ฐ๋ฅ
- ๋ฐ์ ์์๋ผ์ธ์๋ ์ํฅ์ ์ฃผ์ง ์๋๋ค.
2.1.3. section additional info ¶
- address
- ๋ฐ๋ก ์ ๋ถ๋ชจ article์ด๋ body ์์์ ๊ดํ ์ฐ๋ฝ์ฒ ์ ๋ณด
<article> contents <address> <a href="mailto:smaple@example.com">name</a> </address> </article>
- ๋ฐ๋ก ์ ๋ถ๋ชจ article์ด๋ body ์์์ ๊ดํ ์ฐ๋ฝ์ฒ ์ ๋ณด
- time
<article> ...contents... <time datetime="2009-10-05" pubdate>10์ 5์ผ</time> </article>
2.2. article ¶
- ๋ธ๋ก๊ทธ ๋ณธ๋ฌธ๋ฑ ๋ค๋ฅธ ๋ถ๋ถ์ผ๋ก ๋ถํฐ ๋
๋ฆฝ๋ ์น์
- article ์์๋ง ๋ฝ์๋ด์ด ์ด์ฉํ ์ ์๋๊ฐ๊ฐ ํ๋จ ๊ธฐ์ค
- ์ค์ฒฉ์ด ๊ฐ๋ฅ. ์์ชฝ article์ ๋ฐ์ article๊ณผ ๋ฐ์ ํ ์ฐ๊ด์ ๊ฐ์ง๋ค.
2.4. nav ¶
- ๋ค๋น๊ฒ์ด์
- ๋ด๋ถ๋ ์ด๋ป๊ฒ ์ฑ์์ผ ํ๋์ง ๊ท์ ๋์ด ์์ง ์์. ํํ ul, li ๋ก ๊ตฌ์ฑ.
2.5. FIGURE ¶
- figure ์์๋ฅผ ์ฌ์ฉํ๋ฉด ์ฝํ
์ธ ํ๋ฆ์์ ์์๋ฅผ ๋ถ๋ฆฌํ ์ ์๊ณ ํ์ํ ๊ฒฝ์ฐ ์บก์
์ ๋ถ์ผ ์๋ ์๋ค.
<figure> <img src="./figure.jpg" alt="figure image" /> <figcaption> This is a figure</figcaption> </figure>
3.1. section§ion ¶
~HTML <article> ๋ณธ๋ฌธ. <section> <article> ๋๊ธ. </article> <article> ๋๊ธ2. </article> </section> </article>
3.2. css check ¶
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>beonit</title> </head> <body> <h1> body header </h1> <section> <h2> section header </h2> <blockquote> <h3>block section</h3> <section> section content </section> </blockquote> <section> second section </section> </section> <footer> beonit </footer> <aside> test aside </aside> </body> </html>