HTML 태그

HTML 태그를 좀 더 이해하기 쉽도록 분류하여 접근해 볼 수 있습니다.
The Root Element
html
Metadata
head, title, base, link, meta, style, script
Sections
body, article, section, nav, aside, h1 ~ h6, header, footer, address
Grouping
p, pre, blockquote, ol, ul, li, dl, dt, dd, figure, figcaption, div, main, hr
Text
a, em, strong, cite, q, dfn, abbr, data, time, code, var, samp, kbd, mark, ruby, rb, rt, rp, rtc, bdi, bdo, span, br, wbr, small, i, b, u, s, sub, sup
Edit
ins, del
Embedded Content
img, embed, object, param, video, audio, source, track, map, area, iframe
Tables
table, tr, td, th, caption, tbody, thead, tfoot, colgroup, col
Forms
form, input, textarea, select, option, optgroup, datalist, label,
fieldset, legend, button, output, progress, meter, keygen
Scripting
script, noscript, template, canvas

HTML 태그는 HTML 요소의 시작과 끝을 표시하며 속성을 포함 할 수 있습니다. 다음과 같이 사용됩니다.

<tagname>Element content</tagname>

<tagname attributename="attributevalue">Element content</tagname>

<!-- or, for the few attributes without values, simply: -->

<tagname attributename>Element content</tagname>

<!-- or, for the few elements without content, simply: -->

<tagname>

<tagname attributename="attributevalue"><tagname>Element content</tagname>

<tagname attributename="attributevalue">Element content</tagname>

<!-- or, for the few attributes without values, simply: -->

<tagname attributename>Element content</tagname>

<!-- or, for the few elements without content, simply: -->

<tagname>

<tagname attributename="attributevalue">

전역 속성(global attributes)은 각 페이지에 나열된 특정 속성과 함께 모든 태그와 함께 사용할 수 있습니다.

you're currently offline