검색결과 리스트
분류 전체보기 에 해당되는 글 656건
- 2011.09.26 7.1 HTML5 Semantic <mark> (4)
- 2011.09.22 7. HTML5 Towards Semantic Web (2)
- 2011.09.21 6.10 HTML5 Input Type: Color
- 2011.09.20 6.9 HTML5 Input Type: Date (1)
- 2011.09.20 6.8 HTML5 Input Type: Number
- 2011.09.19 6.7 HTML5 Input Type: Range
- 2011.09.19 6.6 HTML5 Input Type: Email, URL, Phone
- 2011.09.15 6.5 HTML5 Input Type: Search
- 2011.09.15 6.4 HTML5 Input Attr: DataList
- 2011.09.14 6.3 HTML5 Input Attr: Required field
기존에 HTML 작성시 특정한 단어나 일부분을 강조하고 싶을 때 기존에는 <STRONG> 태그를 많이 사용하셨을 것입니다. 하지만 <STRONG>태그의 경우 해당 부분을 시각적으로 강조하는 역할만 부여되어 있는 상태 입니다.
그래서 의미적으로 강조하고 싶으시다면 <MARK> 태그를 사용하기 바랍니다.
Basically, it is used to bring the reader's attention to <mark>a part of the text</mark>
<MARK>태그의 경우는 의미적인 강조는 해주지만 시각적인 효과는 없기 때문에 시각적인 효과를 함께 주고 싶으면 CSS를 이용해서 효과를 줄 수 있습니다.
mark { background-color:#ff9; color:#000; font-style:normal; font-weight:bold; }
|
|
현재 한국마이크로소프트에서 Evangelist로 근무하고 있으며 국내 유수의 대기업 프로젝트에 참여했던 경험과 Microsoft MVP로 다년간 활동했습니다. |
HTML5 강좌 전체 목록
- HTML5 DocType의 정의
- HTML5 Header stuff
- Audio
- Video
- Canvas
Canvas: Rectangle
Canvas: Shadow
Canvas: Path
Canvas: Image
Canvas: Text - Web form 2.0
Input Attr: Placeholder
Input Attr: Autofocus
Input Attr: Required field
Input Attr: DataList
Input Type: Search
Input Type: Email, URL, Phone
Input Type: Range
Input Type: Number
Input Type: Date
Input Type: Color - Towards Semantic Web
Semantic <mark>
Semantic <time>
Semantic <meter>
Semantic <progress>
Semantic <section>
Semantic <header>
Semantic <footer>
Semantic <nav>
Semantic <article>
Semantic <aside>
1990년 팀 버네스 리의 의해서 태어난 월드 와이드 웹을 우리는 사랑하고 있습니다. 물론 그가 인터넷을 만들어 낸 것은 아니지만 HTML과 HTTP 프로토콜에 크게 기여를 한 것은 사실입니다.
그때 당시는 하이퍼링크로 연결된 웹 세상을 만들어 내는 것이 중요한 이슈였다면 지금은 의미가 부여된 의미 있는 웹 문서를 만드는 것에 많은 사람들이 관심을 기울이고 있습니다. HTML5에서는 새로운 레벨의 태그를 통해서 의미를 전달하려고 하고 있습니다.
새로운 레벨의 의미를 전달하기 위한 태그들로 아래와 같은 요소들이 추가 되었습니다. 아래 태그들은 글 안에서 새로운 의미를 부여할 수 있습니다.
- <MARK>
- <TIME>
- <METER>
- <PROGRESS>
문서의 구조 안에서 새로운 의미를 부여하기 위한 태그들도 함께 추가 되었습니다.
- <SECTION>
- <HEADER>
- <FOOTER>
- <NAV>
- <ARTICLE>
- <ASIDE>
앞으로 관련된 태그들을 하나씩 살펴 보도록 하겠습니다.
|
|
현재 한국마이크로소프트에서 Evangelist로 근무하고 있으며 국내 유수의 대기업 프로젝트에 참여했던 경험과 Microsoft MVP로 다년간 활동했습니다. |
HTML5 강좌 전체 목록
- HTML5 DocType의 정의
- HTML5 Header stuff
- Audio
- Video
- Canvas
Canvas: Rectangle
Canvas: Shadow
Canvas: Path
Canvas: Image
Canvas: Text - Web form 2.0
Input Attr: Placeholder
Input Attr: Autofocus
Input Attr: Required field
Input Attr: DataList
Input Type: Search
Input Type: Email, URL, Phone
Input Type: Range
Input Type: Number
Input Type: Date
Input Type: Color - Towards Semantic Web
Semantic <mark>
Semantic <time>
Semantic <meter>
Semantic <progress>
Semantic <section>
Semantic <header>
Semantic <footer>
Semantic <nav>
Semantic <article>
Semantic <aside>
지금 설명해 드릴 Color 속성도 아직은 Opera 11만 지원하고 있는 기능입니다.
<label for="background-color">Choose a calor for background :</label>
<input id="background-color" type="color" />
현재 지원하는 웹 브라우저는 Opera 11 뿐 입니다.
| Browsers | Color input Support |
|---|---|
| IE 9 | |
| Firefox 4 | |
| Safari 5 | |
| Chrome 8 | |
| Opera 11 | ✓ |
|
|
현재 한국마이크로소프트에서 Evangelist로 근무하고 있으며 국내 유수의 대기업 프로젝트에 참여했던 경험과 Microsoft MVP로 다년간 활동했습니다. |
HTML5 강좌 전체 목록
- HTML5 DocType의 정의
- HTML5 Header stuff
- Audio
- Video
- Canvas
Canvas: Rectangle
Canvas: Shadow
Canvas: Path
Canvas: Image
Canvas: Text - Web form 2.0
Input Attr: Placeholder
Input Attr: Autofocus
Input Attr: Required field
Input Attr: DataList
Input Type: Search
Input Type: Email, URL, Phone
Input Type: Range
Input Type: Number
Input Type: Date
Input Type: Color - Towards Semantic Web
Semantic <mark>
Semantic <time>
Semantic <meter>
Semantic <progress>
Semantic <section>
Semantic <header>
Semantic <footer>
Semantic <nav>
Semantic <article>
Semantic <aside>
댓글을 달아 주세요
<input id="meeting" type="date" value="2011-01-13"/>
다만 글을 쓰고 있는 이 시점에서는 지원하는 웹 브라우저가 Opera 11 밖에 없다는 것이 특이한 점입니다.
| Browsers | Date Time Support |
|---|---|
| IE 9 | |
| Firefox 4 | |
| Safari 5 | |
| Chrome 8 | |
| Opera 11 | ✓ |
일반적으로 Date를 사용하면 아래와 같은 모양이 됩니다.
여기에 약간의 변화를 준다면 Week, Month, Time도 사용 가능합니다.
<input type="week" ...
<input type="time" ...
| Attributes | Descriptions |
|---|---|
| value | Value is the default value of the input box when a page is first loaded. This is a common attribute for <input> element regardless which type you are using. |
| min | Minimum Date or time |
| max | Maximum Date or time |
| step | Step scale factor. Different type of input has its own default "step" value.
|
|
|
현재 한국마이크로소프트에서 Evangelist로 근무하고 있으며 국내 유수의 대기업 프로젝트에 참여했던 경험과 Microsoft MVP로 다년간 활동했습니다. |
HTML5 강좌 전체 목록
- HTML5 DocType의 정의
- HTML5 Header stuff
- Audio
- Video
- Canvas
Canvas: Rectangle
Canvas: Shadow
Canvas: Path
Canvas: Image
Canvas: Text - Web form 2.0
Input Attr: Placeholder
Input Attr: Autofocus
Input Attr: Required field
Input Attr: DataList
Input Type: Search
Input Type: Email, URL, Phone
Input Type: Range
Input Type: Number
Input Type: Date
Input Type: Color - Towards Semantic Web
Semantic <mark>
Semantic <time>
Semantic <meter>
Semantic <progress>
Semantic <section>
Semantic <header>
Semantic <footer>
Semantic <nav>
Semantic <article>
Semantic <aside>
Number 필드는 이름에서 볼 수 있듯이 숫자 입력을 편하게 하기 위해서 제안된 태크 입니다. 다른 웹 폼들도 대부분 그러하지만 Number 도 모바일 같이 입력이 제한된 환경에서 유용하게 사용됩니다.
<input id="movie" type="number" value="0"/>
숫자를 입력하기 위해서 제안된 용도에 맞게 이 항목을 선택하게 되면 모바일 환경과 같이 입력기가 별도로 뜰 때에는 숫자를 입력하기 위한 용도의 입력기가 나타 납니다.
Number는 단순히 숫자 입력을 요구하기 위한 용도로 사용되지는 않습니다. 숫자 이외에 다른 문제는 입력을 거부하거나 지정된 범위를 벗어나는 숫자의 입력을 거부하는 용도로도 활용 될 수 있습니다.
Attributes
Descriptions
value
Value is the default value of the input box when a page is first loaded. This is a common attribute for <input> element regardless which type you are using.
min
Obviously, the minimum value you of the number. I should have specified minimum value to 0 for my demo up there as a negative number doesn't make sense for number of movie watched in a week.
max
Apprently, this represents the biggest number of the number input.
step
Step scale factor, default value is 1 if this attribute is not specified.
| Browsers | Render "Number" input as Spinner |
|---|---|
| IE 9 | |
| Firefox 4 | |
| Safari 5 | ✓ (in Mac OS, but not Windows) |
| Chrome 8 | ✓ |
| Opera 11 | ✓ |
| Attributes | Descriptions |
|---|---|
| value | Value is the default value of the input box when a page is first loaded. This is a common attribute for <input> element regardless which type you are using. |
| min | Obviously, the minimum value you of the number. I should have specified minimum value to 0 for my demo up there as a negative number doesn't make sense for number of movie watched in a week. |
| max | Apprently, this represents the biggest number of the number input. |
| step | Step scale factor, default value is 1 if this attribute is not specified. |
Java Script에서 Number 객체를 활용 할 때에는 stepUp(), steopDown(), valueAsNumber 등의 속성을 사용할 수 있습니다.
하지만 역시 웹 폼의 기능들은 모바일 환경에서 제일 유용합니다.
|
|
현재 한국마이크로소프트에서 Evangelist로 근무하고 있으며 국내 유수의 대기업 프로젝트에 참여했던 경험과 Microsoft MVP로 다년간 활동했습니다. |
HTML5 강좌 전체 목록
- HTML5 DocType의 정의
- HTML5 Header stuff
- Audio
- Video
- Canvas
Canvas: Rectangle
Canvas: Shadow
Canvas: Path
Canvas: Image
Canvas: Text - Web form 2.0
Input Attr: Placeholder
Input Attr: Autofocus
Input Attr: Required field
Input Attr: DataList
Input Type: Search
Input Type: Email, URL, Phone
Input Type: Range
Input Type: Number
Input Type: Date
Input Type: Color - Towards Semantic Web
Semantic <mark>
Semantic <time>
Semantic <meter>
Semantic <progress>
Semantic <section>
Semantic <header>
Semantic <footer>
Semantic <nav>
Semantic <article>
Semantic <aside>
댓글을 달아 주세요
Range는 특정 범위 값을 입력할 때 사용하는 필드입니다. 역시나 Range 역시 입력 환경이 제한적인 모바일 환경에서 사용이 특히 유용합니다. 그래서인지 지금 우선 지원하는 브라우저들도 모바일 환경에 강한 브라우저 들입니다.
Range의 사용방법은 아래와 같습니다.
<input id="test" type="range"/>
아래와 같이 사용했을 때 현재 지원하는 브라우저에서 보여지는 모습입니다.
현재 이 Range를 지원하는 웹 브라우저는 Chrome, Safari, Opera 등입니다.
| Browsers | Render Range input as Slider |
|---|---|
| IE 9 | |
| Firefox 4 | |
| Safari 5 | ✓ |
| Chrome 8 | ✓ |
| Opera 11 | ✓ |
Range를 사용하기 위해서는 몇 가지 속성을 더 정확하게 써주는것이 좋습니다. 현재 값이나 최대 값, 최소 값 같은 것들입니다.
<input id="slider1" type="range" min="100" max="500" step="10" />
| Attribute | Descriptions |
|---|---|
| value | Value is a common attribute of "Input" element. The value can be any valid floating point number, not neccessary must be an integer number. Default value is minimum value plus half of the maximum value. |
| min | Minimum value of the range. Default minimum value is 0. |
| max | Maximum value of the range. Default maximum value is 100. |
| step | This is Step scale factor of the slider, default value is 1 and only allowing integer number unless minimum value is non integer number. |
| list | List is the DataList in the past lesson. Datalist can be incorporated into Range type input, however, none of the browser has implemented this feature as of writing. |
|
|
현재 한국마이크로소프트에서 Evangelist로 근무하고 있으며 국내 유수의 대기업 프로젝트에 참여했던 경험과 Microsoft MVP로 다년간 활동했습니다. |
HTML5 강좌 전체 목록
- HTML5 DocType의 정의
- HTML5 Header stuff
- Audio
- Video
- Canvas
Canvas: Rectangle
Canvas: Shadow
Canvas: Path
Canvas: Image
Canvas: Text - Web form 2.0
Input Attr: Placeholder
Input Attr: Autofocus
Input Attr: Required field
Input Attr: DataList
Input Type: Search
Input Type: Email, URL, Phone
Input Type: Range
Input Type: Number
Input Type: Date
Input Type: Color - Towards Semantic Web
Semantic <mark>
Semantic <time>
Semantic <meter>
Semantic <progress>
Semantic <section>
Semantic <header>
Semantic <footer>
Semantic <nav>
Semantic <article>
Semantic <aside>
댓글을 달아 주세요
아래와 같이 email, url, tel 등 타입을 명시하게 되면 HTML5를 지원하는 웹 브라우저는 여기에 적합한 입력기 형태를 노출해 줍니다. 현재로는 주로 모바일 환경에서 이를 지원하도록 되었습니다.
<input id="email" type="email"/>
<input id="website" type="url"/>
<input id="phone" type="tel" />
아래는 안드로이드 계열의 폰과 iOS계열의 스마트 폰에서 위의 폼을 접근했을 때 유형 별로 어떤 입력기가 출력되는지를 볼 수 있습니다.
|
|
현재 한국마이크로소프트에서 Evangelist로 근무하고 있으며 국내 유수의 대기업 프로젝트에 참여했던 경험과 Microsoft MVP로 다년간 활동했습니다. |
HTML5 강좌 전체 목록
- HTML5 DocType의 정의
- HTML5 Header stuff
- Audio
- Video
- Canvas
Canvas: Rectangle
Canvas: Shadow
Canvas: Path
Canvas: Image
Canvas: Text - Web form 2.0
Input Attr: Placeholder
Input Attr: Autofocus
Input Attr: Required field
Input Attr: DataList
Input Type: Search
Input Type: Email, URL, Phone
Input Type: Range
Input Type: Number
Input Type: Date
Input Type: Color - Towards Semantic Web
Semantic <mark>
Semantic <time>
Semantic <meter>
Semantic <progress>
Semantic <section>
Semantic <header>
Semantic <footer>
Semantic <nav>
Semantic <article>
Semantic <aside>
댓글을 달아 주세요
<input id="mysearch" type="search" />
아무래도 크게 중요한 기능이 아니어서 그런지 아직 많은 웹 브라우저에서 지원하지는 않고 있습니다.
| Browsers | Tweak search box? |
|---|---|
| IE 9 Beta | |
| Firefox 4 | |
| Safari 5 | ✓ |
| Chrome 8 | ✓ |
| Opera 9 |
지원하는 웹 브라우저를 보면 Safari 5, Chrome 8 정도인데 지원하는 웹 브라우저의 특징을 보면 모바일 기능이 강력한 웹 브라우저들 입니다.
Search와 함께 Placeholder를 함께 사용하는 것도 가능합니다.
<label for="mysearch2">Enter your search string here : </label>
<input id="mysearch2" type="search" placeholder="search">
|
|
현재 한국마이크로소프트에서 Evangelist로 근무하고 있으며 국내 유수의 대기업 프로젝트에 참여했던 경험과 Microsoft MVP로 다년간 활동했습니다. |
HTML5 강좌 전체 목록
- HTML5 DocType의 정의
- HTML5 Header stuff
- Audio
- Video
- Canvas
Canvas: Rectangle
Canvas: Shadow
Canvas: Path
Canvas: Image
Canvas: Text - Web form 2.0
Input Attr: Placeholder
Input Attr: Autofocus
Input Attr: Required field
Input Attr: DataList
Input Type: Search
Input Type: Email, URL, Phone
Input Type: Range
Input Type: Number
Input Type: Date
Input Type: Color - Towards Semantic Web
Semantic <mark>
Semantic <time>
Semantic <meter>
Semantic <progress>
Semantic <section>
Semantic <header>
Semantic <footer>
Semantic <nav>
Semantic <article>
Semantic <aside>
댓글을 달아 주세요
DataList도 아직 모든 브라우저에서 공통적으로 지원되지 않습니다. 현재는 FireFox 4와 Opera 11만 지원됩니다.
| Browsers | Datalist Support |
|---|---|
| IE 9 | |
| Firefox 4 | ✓ |
| Safari 5 | |
| Chrome 8 | |
| Opera 11 | ✓ |
<datalist id="country">
<option value="Afghanistan">
<option value="Albania">
<option value="Algeria">
<option value="Andorra">
<option value="Angola">
</datalist>
|
|
현재 한국마이크로소프트에서 Evangelist로 근무하고 있으며 국내 유수의 대기업 프로젝트에 참여했던 경험과 Microsoft MVP로 다년간 활동했습니다. |
HTML5 강좌 전체 목록
- HTML5 DocType의 정의
- HTML5 Header stuff
- Audio
- Video
- Canvas
Canvas: Rectangle
Canvas: Shadow
Canvas: Path
Canvas: Image
Canvas: Text - Web form 2.0
Input Attr: Placeholder
Input Attr: Autofocus
Input Attr: Required field
Input Attr: DataList
Input Type: Search
Input Type: Email, URL, Phone
Input Type: Range
Input Type: Number
Input Type: Date
Input Type: Color - Towards Semantic Web
Semantic <mark>
Semantic <time>
Semantic <meter>
Semantic <progress>
Semantic <section>
Semantic <header>
Semantic <footer>
Semantic <nav>
Semantic <article>
Semantic <aside>
댓글을 달아 주세요
HTML5에서는 아래와 같이 Required 속성을 사용 할 수 있습니다.
<form>
<label for="movie">What is your favorite movie : </label>
<input name="movie" type="text" required />
<input type="submit" value="Submit"/>
</form>
만약 입력하지 않고 Submit 버튼을 누르게 되면 웹 브라우저는 사용자에게 입력을 요구 합니다.
사용하기 따라서 굉장히 편리한 기능이긴 하지만 아직까지 입력을 요구할 때 메시지를 설정하는 부분이 없고 지금은 FireFox와 Opera 9 만 지원하고 있어서 사용이 제한적입니다.
| IE 9 | |
| Firefox 4 | ✓ |
| Safari 5 | |
| Chrome 8 | |
| Opera 9 | ✓ |
- HTML5 DocType의 정의
- HTML5 Header stuff
- Audio
- Video
- Canvas
Canvas: Rectangle
Canvas: Shadow
Canvas: Path
Canvas: Image
Canvas: Text - Web form 2.0
Input Attr: Placeholder
Input Attr: Autofocus
Input Attr: Required field
Input Attr: DataList
Input Type: Search
Input Type: Email, URL, Phone
Input Type: Range
Input Type: Number
Input Type: Date
Input Type: Color - Towards Semantic Web
Semantic <mark>
Semantic <time>
Semantic <meter>
Semantic <progress>
Semantic <section>
Semantic <header>
Semantic <footer>
Semantic <nav>
Semantic <article>
Semantic <aside>
댓글을 달아 주세요
비밀댓글입니다
처음 공부하는 사람인데요..^^ 다른 자료나 책에서는 <strong>태그의 경우 시각적으로뿐만이 아니라 의미적으로도 강조한다고 주로 쓰여있는데 이 글의 맨 윗부분에서는 시각적으로만 강조한다고 쓰여있어서요.. <mark>의 경우가 시각적으로만 강조한다고..
어떤게 맞는지 궁금해서요...
Strong 태그가 시각적으로 볼드 효과만 내는게 맞습니다. ^^
It’s a very informative article.I am happy to read all this stuff.you are doing a great job. I admire your efforts. Thanks for sharing this article.