반응형
Q>
요소를 사용하여 화면을 구성하시오.
A>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>HTML5 요소 데모 화면</h1>
<div>
<label for="name">이름 : </label>
<input type="text" name="name">
</div>
<div>
<label for="email">이메일 : </label>
<input type="email" name="email">
</div>
<div>
<label for="website">웹사이트 : </label>
<input type="url" name="website">
</div>
<div>
<label for="number">정수 : </label>
<input type="number" name="number">
</div>
<div>
<label for="range">범위 : </label>
<input type="range" name="range">
</div>
<div>
<label for="textarea">메시지 : </label>
<textarea name="textarea" id="" cols="30" rows="2"></textarea>
</div>
<div>
<input type="submit" value="Submit">
</div>
</body>
</html>
https://developer.mozilla.org/ko/docs/Web/HTML/Element/input
https://developer.mozilla.org/ko/docs/Web/HTML/Element/input/text
https://developer.mozilla.org/ko/docs/Web/HTML/Element/input/email
https://developer.mozilla.org/ko/docs/Web/HTML/Element/input/url
https://developer.mozilla.org/ko/docs/Web/HTML/Element/input/number
https://developer.mozilla.org/ko/docs/Web/HTML/Element/input/range
https://developer.mozilla.org/ko/docs/Web/HTML/Element/textarea
https://developer.mozilla.org/ko/docs/Web/HTML/Element/input/submit
R>
|
반응형
'Python_WEB > HTML' 카테고리의 다른 글
[Ch3]HTML5 멀티미디어와 입력 양식 - 연습문제 5 (0) | 2020.11.06 |
---|---|
[Ch3]HTML5 멀티미디어와 입력 양식 - 연습문제 4 (0) | 2020.11.06 |
[Ch3]HTML5 멀티미디어와 입력 양식 - 연습문제 2 (0) | 2020.11.06 |
[Ch3]HTML5 멀티미디어와 입력 양식 - 연습문제 1 (0) | 2020.11.06 |
[Ch2]HTML5 기본 요소 - 연습문제 8 (0) | 2020.11.03 |