HTML Sections & Outlines
1. ꡬ쑰μ λ§ν¬μ
μ μ΄ν΄
ꡬ쑰μ λ§ν¬μ μ λ¬Έμμ ꡬ쑰λ₯Ό μ μ
ννμ λ§ν¬μ μ λ¬Έμμ μΈνμ μ μ
ꡬ쑰μ λ§ν¬μ κ³Ό ννμ λ§ν¬μ μ νΌμ©
μ€λλ HTMLμ ꡬ쑰μ λ§ν¬μ κ³Ό ννμ λ§ν¬μ μ νΌμ©ν΄ μ¬μ©
νμ¬ μΉ νμ€μμλ ννμ λ§ν¬μ μ HTMLμμ ν΄μΆ
λ¬Έμμ ꡬ쑰λ HTMLμ μ¬μ©, λ¬Έμμ ννμ CSSλ₯Ό μ¬μ©
ννμ λ§ν¬μ μ¬μ©μ λ¬Έμ μ
ννμ μμμ μ¬μ©μ μ κ·Όμ±μ μ ν΄
λ λμ μ μ§λΉμ© λ°μ
λ¬Έμ ν¬κΈ° λΉλν
λΈλ‘ λ 벨 μμμ μΈλΌμΈ λ 벨 μμ
λΈλ‘ λ 벨 μμ
: μ€ λ°κΏμ΄ μΌμ΄λλ λ¨λ½ μμμΈλΌμΈ λ 벨 μμ
: μ€ λ°κΏμ΄ μΌμ΄λμ§ μλ νμ μΌλΆ μμ
2. Section Elements in HTML5
HTML Navigational Element (
<nav>
)defines a section that contains navigation links that appear often on a site.
You can have primary and secondary menus, but you never nest, or put a
<nav>
element inside a<nav>
element.
HTML Article Element (
<article>
)defines a piece of self-contained content.
It does not refer to the main content alone and can be used for comments and widgets.
HTML Section Element (
<section>
)defines a section of a document to indicate a related grouping of semantic meaning.
Utilize the section element providing extra context from the parent element makes sense.
HTML Aside Element (
<aside>
)defines a section that, though related to the main element, doesn't belong to the main flow, like an explanation box or an advertisement.
It has its own outline, but doesn't belong to the main one.
Other Semantic HTML elements used in Sectioning
HTML Body Element (
<body>
)defines all the content of a document.
It contains all the content and HTML tags.
HTML Header Element (
<header>
)defines a page which typically contains the logo, title, and navigation.
The header can also be used in other semantic elements such as
<article>
or<section>
β or section header, containing perhaps the section's heading, author name, etc.<article>
,<section>
,<aside>
, and<nav>
can have their own<header>
.Despite its name, it is not necessarily positioned at the beginning of the page or section.
HTML Footer Element (
<footer>
)defines a page footer which typically contains the copyright, legal notices and sometimes some links β or section footer, containing perhaps the section's publication date, license information, etc.
<article>
,<section>
,<aside>
, and<nav>
can have their own<footer>
.Despite its name, it is not necessarily positioned at the end of the page or section.
3. HTML elements reference from MDN
Main root
Document metadata
Metadata contains information about the page. This includes information about styles, scripts and data to help software (search engines, browsers, etc.) use and render the page. Metadata for styles and scripts may be defined in the page or link to another file that has the information.
4. HTML ν (Table)
HTML νμ μ¬μ©μ μ£Όμ μ
νλ μ κ·Όμ±μ΄ λ¨μ΄μ§λ―λ‘ ν μ΄μΈμ λ μ’μ νν λ°©λ²μ΄ μλ€λ©΄ νλ₯Ό μ¬μ©νμ§ μμμΌ νλ€.
νλ₯Ό νμ΄μ§ λ μ΄μμμ μ¬μ©νμ§ λ§μμΌ νλ€.
μ λ ₯ μμμ λνλΌ λλ λλλ‘μ΄λ©΄ νλ₯Ό μ¬μ©νμ§ λ§μμΌ νλ€.
HTML ν μμ±
table
μμ: HTML νλ₯Ό μλ―Ένλ€.
tr μμ: ν μ΄λΈμ rowλ₯Ό λνλΈλ€.
th μμ: ν μ΄λΈ ν€λμ μ λνλΈλ€. μ λͺ© μ μ μ¬μ©νλ€
td μμ: ν μ΄λΈμ μ (μΉΈ)μ μλ―Ένλ€.
μ
λ³ν©
κ°λ‘μ λ³ν©: colsapn μμ± μ¬μ©
μΈλ‘μ λ³ν©: rowspan μμ± μ¬μ©
νμ ꡬ쑰ν μμ
μ κ·Όμ± κ°νμ λ°μ΄ν° λΆμμ μν΄ νλ₯Ό ꡬ쑰ν νλ€
thead μμ
νμ μ λͺ©μΌλ‘ ꡬμ±λ rowμ μ§ν©
νμ λ κ° μ΄μμ theadκ° μ μ λμ΄μλ μλλ€.
tbody μμ
νμ λͺΈ λΆλΆμΌλ‘ νμ λ΄μ©μ΄ λ€μ΄κ°λ€
μ¬λ¬ κ°μ tbodyμ€μ κ°λ₯
tfoot μμ
νμ νΈν°λ‘ ꡬμ±λ rowμ μ§ν©
μμΉμ μκ΄μμ΄ ν λ§μ§λ§μ λνλλ€.
νμ λ κ° μ΄μμ tfootμ΄ μ μ λμ΄μλ μλλ€
col μμ: ꡬ쑰μ μΌλ‘ νλμ columnμ λννλ€. caption μμμ λ€μ theadλ tbodyμ μμ μ€μ νλ€. νμ μ»¬λΌ κ°―μ λ§νΌ col μμλ₯Ό μ¬μ©νλ€.
colgroup μμ: col μμμ κ·Έλ£Ή ꡬ쑰μ λ°λΌ μ¬λ¬κ°μ colgroupμΌλ‘ λΆλ¦¬ν μ μλ€.
scope μμ±
ν€λμ μ μν₯λ ₯μ΄ μ΄λμͺ½μΌλ‘ ν₯νλμ§λ₯Ό μ§μ
scopeμ κ°μ΄ row λλ colμ΄λ©΄
ν€λμ μrow λλ columnμ μ λͺ©
scopeμ κ°μ΄ rowgroupλλ colgroupμ΄λ©΄ ν€λμ μ rowμ κ·Έλ£Ή(μλμ μλ μ¬λ¬ μ€) λλ colμ κ·Έλ£Ή(μ°μΈ‘μ μλ μ¬λ¬ 컬λΌλ€)μ μ λͺ©
caption μμ
νμ μΊ‘μ (μ λͺ©)μ λνλΈλ€.
table μμμ 첫 λ²μ§Έ μμ μμλ‘ κ°μ₯ λ¨Όμ μ€μ λμ΄μΌ νλ€.
tableμ΄ figure μμμ μ μΌν μμμμλΌλ©΄ caption λμ figcaptionμμλ‘ μΊ‘μ μ νμν΄μΌ νλ€.
5. HTML μμ (Form)
form μμ
HTML μ λ ₯ μμμ μλ―Ένλ€
action μμ±: μμμ΄ μ μ‘λλ μλ² νμΌ URL
metho μμ±: νΌμ΄ μ μ‘λλ λ°©μ, get λλ post κ°μ κ°μ§λ€.
input μμ
λ€μν νμ μ κ°μ§λ μ λ ₯ λ°μ΄ν° νλ
Last updated