-
Notifications
You must be signed in to change notification settings - Fork 0
/
text.html
59 lines (56 loc) · 2.53 KB
/
text.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>HTML5 new elements</title>
<style>
*{ box-sizing: border-box; }
code{
background: yellow;
font-size: 24px;
}
section{ margin: 3em 0; }
</style>
</head>
<body>
<h1>HTML5 text level semantics</h1>
<section>
<h2>data element</h2>
<p>
<data value="[email protected]">정찬명</data><br>
<code><data value="[email protected]">정찬명</data></code><br>
<br>
<data value="ISBN:978-89-5460-326-3">정찬명의 HTML 완벽 가이드</data><br>
<code><data value="ISBN:978-89-5460-326-3">정찬명의 HTML 완벽 가이드</data></code>
</p>
</section>
<section>
<h2>time element</h2>
<time>2011-11-12T14:54:39Z</time><br>
<code><time>2011-11-12T14:54:39Z</time></code> // T = time, Z = UTC <br><br>
<time datetime="2011-11-12T14:54:39Z">11월 12일(UTC)</time><br>
<code><time datetime="2011-11-12T14:54:39Z">11월 12일(UTC)</time></code><br><br>
<time>2011-11-12T14:54+09:00</time><br>
<code><time>2011-11-12T14:54+09:00</time></code> // 9시간을 더하여 한국 시간으로 표시<br><br>
<time>4h 18m 3s</time><br>
<code><time>4h 18m 3s</time></code> // 기간을 나타내는 형식<br><br>
<time datetime="4h 18m 3s">4시간 18분 3초</time><br>
<code><time datetime="4h 18m 3s">4시간 18분 3초</time></code>
</section>
<section>
<h2>mark element</h2>
<label for="search">검색:</label> <input type="search" id="search" value="html5"> <button>검색</button>
<p>2개의 검색 결과.</p>
<ol>
<li>시멘틱 마크업은 역시 정찬명의 <mark>html5</mark>...</li>
<li><mark>html5</mark>에 mark 요소가 있는 것 같던데요. 언제 쓰는거죠?</li>
</ol>
</section>
<section>
<h2>wbr element</h2>
<p>ThepoweroftheWebisinitsuniversality.Accessbyeveryoneregardlessofdisabilityisanessentialaspect.(wbr 요소 없는 문장)</p>
<p>The<wbr>power<wbr>of<wbr>the<wbr>Web<wbr>is<wbr>in<wbr>its<wbr>universality.<wbr>Access<wbr>by<wbr>everyone<wbr>regardless<wbr>of<wbr>disability<wbr>is<wbr>an<wbr>essential<wbr>aspect.(wbr 요소 있는 문장)</p>
</section>
</body>
</html>