Source: https://developer.mozilla.org/en-US/docs/Web/HTML/Element
- metadata는 데이터의 상위에 존재하는 데이터를 의미
- 즉 문서가 가지고 있는 데이터를 설명해주는 데이터가 메타데이터
- style, script, data에 대한 정보를 가지고 있음 (페이지 렌더링에 도움 주는)
- document content를 논리적으로 나눌 수 있게 함
- document content의 개요를 잡는 걸 도와줌
- header, footer, navigation, heading elements(h1~h6) 등
article: 포럼 게시글과 같이
header: introductory content
h1~h6: section headings
nav: provide navigation links
main: main content of the body of a document
section: general sectioning element
aside: 본 게시글에 간접적으로 연관된 글
address: contact info
footer: author, copyright data, document 관련 link를 주로 포함
- 접근성과 SEO에 중요
- text content element는 그 컨텐츠의 목적과 구조를 잘 설명함
- body 태그 사이 -컨텐츠 블락/섹션을 잡는 데에 도움을 줌
<i>
element only when there is not a more appropriate semantic elementRubi characters are small, annotative characters that are placed above or to the right of a Chinese character to show the pronunciation.
<blockquote>
<time>
tag defines a specific time (or datetime). the datetime attribute of this element is used translate the time into a machine-readable format so that browsers can offer to add date reminders through the user's calendar, and search engines can produce smarter search results.- image, audio, video를 지원
<map>
tag.<audio>
and <video>
. It lets you specify timed text tracks (or time-based data), for example to automatically handle subtitles. The tracks are formatted in WebVTT format (.vtt files) — Web Video Text Tracks.7. Image & multimedia를 제외하고 HTML에서 지원하는 다른 컨텐츠를 위한 태그
embed: defines a container for an external resource by type, such as a web page, a picture, a media player, or a plug-in application. To display a picture, it is better to use the <img>
tag. To display HTML, it is better to use the <iframe>
tag. To display video or audio, it is better to use the <video>
and <audio>
tags.
object: defines a container for an external resource by type, such as a web page, a picture, a media player, or a plug-in application. To display a picture, it is better to use the <img>
tag. To display HTML, it is better to use the <iframe>
tag. To display video or audio, it is better to use the <video>
and <audio>
tags.
<object>
element.source: The <source>
tag is used to specify multiple media resources for media elements, such as <video>
, <audio>
, and <picture>
. The <source>
tag allows you to specify alternative video/audio/image files which the browser may choose from, based on browser support or viewport width. The browser will choose the first <source>
it supports.
iframe: nested browsing context, embedding another HTML page into the current one.
portal: enables the embedding of another HTML page into the current one for the purposes of allowing smoother navigation into new pages.
<picture>
element will be for art direction in responsive designs. Instead of having one image that is scaled up or down based on the viewport width, multiple images can be designed to more nicely fill the browser viewport. The <picture>
element contains two tags: one or more <source>
tags and one <img>
tag.- SVG와 MathML을 곧장 HTML 문서 안에 넣기 위한 태그
- 동적인 컨텐츠와 웹 앱을 만들기 위해, 자바스크립트와 같은 스크립팅 언어를 지원함
- demarcating: 경계를 표시하다
- 텍스트의 특정 부분이 수정된 부분이 바뀌었다고 알려주는 요소
- github의 deleted와 inserted 보여주는 것과 유사
- 테이블 형식의 데이터를 위한 요소
<colgroup>
tag must be a child of a <table>
element, after any <caption>
elements and before any <thead>
, <tbody>
, <tfoot>
, and <tr>
elements.<colgroup>
element.<table>
element and one or more <tr>
, <th>
, and <td>
elements. <table>
<thead>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
</thead>
<tbody>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Sum</td>
<td>$180</td>
</tr>
</tfoot>
</table>
- HTML 폼 구성을 위한 요소
form
fieldset: used to group several controls as well as labels (label) within a web form.
legend: represents a caption for the content of its parent fieldset.
label: represents a caption for an item in a user interface.
datalist: contains a set of option elements that represent the permissible or recommended options available to choose from within other controls.
option: is used to define an item contained in a select, an optgroup, or a datalist element.
button
input: used to create interactive controls for web-based forms in order to accept data from the user;
meter: represents either a scalar value within a known range or a fractional value.
optgroup: creates a grouping of options within a select element.
select
output: a container element into which a site or app can inject the results of a calculation or the outcome of a user action.
progress: displays an indicator showing the completion progress of a task, typically displayed as a progress bar.
textarea: represents a multi-line plain-text editing control, useful when you want to allow users to enter a sizeable amount of free-form text, for example a comment on a review or feedback form.
- 상호작용이 가능한 UI 객체를 만들 수 있는 요소
<details>
to specify a visible heading for the details.- 원래 존재하는 element같은 커스텀 element를 만들 수 있게 도와주는 요소
<template>
can be rendered later with a JavaScript. You can use the <template>
tag if you have some HTML code you want to use over and over again, but not until you ask for it. To do this without the <template>
tag, you have to create the HTML code with JavaScript to prevent the browser from rendering the code.