HTML Standard Attributes

HTML tags can have attributes. The special attributes for each tag are listed under each tag description. The attributes listed here are the core and language attributes that are standard for all tags (with a few exceptions).


Core Attributes

Not valid in base, head, html, meta, param, script, style, and title elements.

AttributeValueDescription
classclass_rule or style_ruleThe class of the element
idid_nameA unique id for the element
stylestyle_definitionAn inline style definition
titletooltip_text A text to display in a tool tip


Language Attributes

Not valid in base, br, frame, frameset, hr, iframe, param, and script elements.

AttributeValueDescription
dirltr | rtlSets the text direction
langlanguage_codeSets the language code


Keyboard Attributes

AttributeValueDescription
accesskeycharacterSets a keyboard shortcut to access an element
tabindexnumberSets the tab order of an element
크리에이티브 커먼즈 라이센스
Creative Commons License

Posted by 솔라뷰

2006/08/31 22:00 2006/08/31 22:00
,
Response
No Trackback , No Comment
RSS :
http://www.solarview.net/rss/response/62

Strict HTML 4.01로 가기 위한 지침서

Strict HTML 4.01로 가기 위한 지침서

  • 항상 모든 웹페이지는 DOCTYPE로 시작되어야 함
  • 바로 다음에 오는 <html> 엘리먼트는 웹 페이지의 최상위 혹은 루트 엘리먼트가 되어야 함
  • DOCTYPE다음에 오는 <html>태그로 페이지를 시작해서 </html>태그로 페이지를 끝내야 하며, <head>와 <body>만이 <html>엘리먼트 안에 들어갈 수 있음
  • <head>엘리먼트에는 <title>엘리먼트가 항상 있어야 함
  • <head>엘리먼트에 <title>, <meta>, <style>엘리먼트만 올 수 있음
  • <body>에는 블록 엘리먼트(block element)만 포함할 수 있음
  • 모든 인라인 엘리먼트(inline element)와 텍스트sms <body>엘리먼트 안에 들어가기 전에 다른 블록 엘리먼트 안으로 들어가야 함
  • 인라인 엘리먼트 안에는 텍스트와 다른 인라인 엘리먼트만 들어갈 수 있음
  • 인라인 엘리먼트 안에 블록 엘리먼트를 포함할 수 없음
  • <p>엘리먼트 안에 블록엘리먼트를 두면 안 됨
  • 리스트인 <ul>과 <ol> 엘리먼트 안에는 오직 <li>엘리먼트만 들어올 수 있음
  • <li>엘리먼트 안에는 무엇이든지 포함될 수 있음
  • <blockquote>는 오직 블록 엘리먼트만 포함될 수 있음
크리에이티브 커먼즈 라이센스
Creative Commons License

Posted by 솔라뷰

2006/08/31 21:59 2006/08/31 21:59
,
Response
No Trackback , No Comment
RSS :
http://www.solarview.net/rss/response/61

XHTML 1.0 체크리스트

XHTML 1.0 체크리스트

  • DOCTYPE을 Strict XHTML로 변경함. 또는 여전히 Transitional HTML을 사용하고 있다면 Transitional XHTML로 변경함
  • xmlns, lang, xml:lang속성을 <html>시작 태그에 추가함
  • <html>태그는 DOCTYPE 다음에 오는 맨 첫번째 태그가 되어야 하며, </html>종료태그는 가장 마지막 태그가 되어야 함
  • 모든 엘리먼트 이름들은 소문자로 작성되어야 함
  • 모든 시작 태그들은 종료 태그를 가져야 함. 또는 빈 엘리먼트의 경우 하나의 공백문자와 />로 끝나야 함
  • 모든 속성값들은 큰 따옴표로 둘러싸고 값을 가져야 함
  • HTML 콘텐츠에 &를 사용하지 말 것. &가 시작 엔티티를 위한 것이라면 대신 &amp를 사용할 것. 다른 특수 문자들도 엔티티로 변환함
크리에이티브 커먼즈 라이센스
Creative Commons License

Posted by 솔라뷰

2006/08/31 21:57 2006/08/31 21:57
Response
No Trackback , No Comment
RSS :
http://www.solarview.net/rss/response/60

HTML 4.01 / XHTML 1.0 Reference

Ordered by Function

  • NN: indicates the earliest version of Netscape that supports the tag
  • IE: indicates the earliest version of Internet Explorer that supports the tag
  • DTD: indicates in which XHTML 1.0 DTD the tag is allowed. S=Strict, T=Transitional, and F=Frameset 
Start tagPurposeNNIEDTD
Basic Tags
<!DOCTYPE> Defines the document typeSTF
<html>Defines an html document3.03.0STF
<body>Defines the body element3.03.0STF
<h1> to <h6>Defines header 1 to header 63.03.0STF
<p>Defines a paragraph3.03.0STF
<br>Inserts a single line break3.03.0STF
<hr>Defines a horizontal rule3.03.0STF
<!--...-->Defines a comment3.03.0STF
Char Format
<b>Defines bold text3.03.0STF
<font>Deprecated. Defines text font, size, and color3.03.0TF
<i>Defines italic text3.03.0STF
<em>Defines emphasized text 3.03.0STF
<big>Defines big text3.03.0STF
<strong>Defines strong text3.03.0STF
<small>Defines small text3.03.0STF
<sup>Defines superscripted text3.03.0STF
<sub>Defines subscripted text3.03.0STF
<bdo>Defines the direction of text display6.25.0STF
<u>Deprecated. Defines underlined text3.03.0TF
Output
<pre>Defines preformatted text3.03.0STF
<code>Defines computer code text3.03.0STF
<tt>Defines teletype text3.03.0STF
<kbd>Defines keyboard text3.03.0STF
<var>Defines a variable3.03.0STF
<dfn>Defines a definition term3.0STF
<samp>Defines sample computer code3.03.0STF
<xmp>Deprecated. Defines preformatted text3.03.0
Blocks
<acronym>Defines an acronym6.24.0STF
<abbr>Defines an abbreviation6.2STF
<address>Defines an address element4.04.0STF
<blockquote>Defines a long quotation3.03.0STF
<center>Deprecated. Defines centered text3.03.0TF
<q>Defines a short quotation6.24.0STF
<cite>Defines a citation3.03.0STF
<ins>Defines inserted text6.24.0STF
<del>Defines deleted text6.24.0STF
<s>Deprecated. Defines strikethrough text3.03.0TF
<strike>Deprecated. Defines strikethrough text3.03.0TF
Links
<a>Defines an anchor3.03.0STF
<link>Defines a resource reference 4.03.0STF
Frames
<frame>Defines a sub window (a frame)3.03.0F
<frameset>Defines a set of frames3.03.0F
<noframes>Defines a noframe section3.03.0TF
<iframe>Defines an inline sub window (frame)6.04.0TF
Input
<form>Defines a form 3.03.0STF
<input>Defines an input field3.03.0STF
<textarea>Defines a text area3.03.0STF
<button>Defines a push button6.24.0STF
<select>Defines a selectable list3.03.0STF
<optgroup>Defines an option group6.06.0STF
<option>Defines an item in a list box3.03.0STF
<label>Defines a label for a form control6.24.0STF
<fieldset>Defines a fieldset6.24.0STF
<legend>Defines a title in a fieldset6.24.0STF
<isindex>Deprecated. Defines a single-line input field3.03.0TF
Lists
<ul>Defines an unordered list3.03.0STF
<ol>Defines an ordered list3.03.0STF
<li>Defines a list item3.03.0STF
<dir>Deprecated. Defines a directory list3.03.0TF
<dl>Defines a definition list3.03.0STF
<dt>Defines a definition term3.03.0STF
<dd>Defines a definition description3.03.0STF
<menu>Deprecated. Defines a menu list3.03.0TF
Images
<img>Defines an image3.03.0STF
<map>Defines an image map 3.03.0STF
<area>Defines an area inside an image map3.03.0STF
Tables
<table>Defines a table3.03.0STF
<caption>Defines a table caption3.03.0STF
<th>Defines a table header3.03.0STF
<tr>Defines a table row3.03.0STF
<td>Defines a table cell3.03.0STF
<thead>Defines a table header4.0STF
<tbody>Defines a table body4.0STF
<tfoot>Defines a table footer4.0STF
<col>Defines attributes for table columns 3.0STF
<colgroup>Defines groups of table columns3.0STF
Styles
<style>Defines a style definition4.03.0STF
<div>Defines a section in a document3.03.0STF
<span>Defines a section in a document4.03.0STF
Meta Info
<head>Defines information about the document3.03.0STF
<title>Defines the document title3.03.0STF
<meta>Defines meta information3.03.0STF
<base>Defines a base URL for all the links in a page3.03.0STF
<basefont>Deprecated. Defines a base font3.03.0TF
Programming
<script>Defines a script3.03.0STF
<noscript>Defines a noscript section3.03.0STF
<applet>Deprecated. Defines an applet2.03.0TF
<object>Defines an embedded object3.0STF
<param>Defines a parameter for an object3.03.0STF
크리에이티브 커먼즈 라이센스
Creative Commons License

Posted by 솔라뷰

2006/08/31 21:55 2006/08/31 21:55
,
Response
No Trackback , No Comment
RSS :
http://www.solarview.net/rss/response/59