HTML 빠른 참조

CodeW3C.com에서의 HTML 빠른 참조. 인쇄하여 일상 사용에 활용할 수 있습니다.

HTML 기본 문서

<html>
<head>
<title>이 문서의 이름이 여기에 들어갑니다</title>
</head>
<body>
여기에 보이는 텍스트
</body>
</html>

텍스트 요소

<p>이는 문단입니다</p>
<br> (줄 바꿈)
<hr> (수평선)
<pre>이 텍스트는 프리포맷 텍스트입니다</pre>

논리적 스타일

<em>이 텍스트는 강조 텍스트입니다</em>
<strong>이 텍스트는 강조 텍스트입니다</strong>
<code>이것은 컴퓨터 코드입니다</code>

물리적 스타일

<b>이 텍스트는 강조 텍스트입니다</b>
<i>이 텍스트는 기울임 텍스트입니다</i>

링크, 앵커, 이미지 요소

<a href="http://www.example.com/">이 링크는 링크입니다</a>
<a href="http://www.example.com/"><img src="URL"
alt="대체 텍스트"></a>
<a href="mailto:webmaster@example.com">이메일 보내기</a>이름 지정된 앵커:
<a name="tips">사용가능한 팁 섹션</a>
<a href="#tips">사용가능한 팁 섹션으로 이동</a>

불순서 목록

<ul>
<li>첫 번째 항목</li>
<li>다음 항목</li>
</ul>

정렬 목록

<ol>
<li>첫 번째 항목</li>
<li>다음 항목</li>
</ol>

정의 목록

<dl>
<dt>첫 번째 단어</dt>
<dd>정의</dd>
<dt>다음 단어</dt>
<dd>정의</dd>
</dl>

테이블

<table border="1">
<tr>
  <th>someheader</th>
  <th>someheader</th>
</tr>
<tr>
  <td>sometext</td>
  <td>sometext</td>
</tr>
</table>

프레임

<frameset cols="25%,75%">
  <frame src="page1.htm">
  <frame src="page2.htm">
</frameset>

양식

<form action="http://www.example.com/test.asp" method="post/get">
<input type="text" name="lastname"
value="Nixon" size="30" maxlength="50">
<input type="password">
<input type="checkbox" checked="checked">
<input type="radio" checked="checked">
<input type="submit">
<input type="reset">
<input type="hidden">
<select>
<option>Apples
<option selected>Bananas
<option>Cherries
</select>
<textarea name="Comment" rows="60"
cols="20"></textarea>
</form>

엔티티

<는 <와 같습니다
>는 >와 같습니다
©는 ©와 같습니다

기타 요소

<!-- 이는 주석입니다 -->
<blockquote>
어떤 출처에서 인용된 텍스트.
</blockquote>
<address>
주소 1<br>
주소 2<br>
도시<br>
</address>

Source : http://www.codew3c.com/html/html_quick.asp