본문 바로가기
WORKS/Html CSS

[HTML] input 태그: text, password / textarea 태그 / submit , reset button

by Jelly 젤리 2022. 2. 24.

input 태그

text, password, textarea

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<hr>
	<table>
		<tr>
			<td>
				<input type="text" name="user_name" size="20" placeholder="이름을 입력하세요" maxlength="5">
			</td>
		</tr>
		<tr>
			<td>
				<input type="password" name="user_age" size="20" placeholder="나이를 입력하세요" maxlength="5">
			</td>
		</tr>
		<tr>
			<td>
				<textarea name="user_memo" cols="20" rows="5" placeholder="메모(선택)"></textarea>
			</td>
		</tr>
	</table>
   <hr>
</body>
</html>
Page Title


submit button

reset button

<!DOCTYPE html>
<html>
<head>
<title>submit button</title>
</head>
<body>
<form action='#'>
	아무글자나 입력: <input type='text' placeholder='텍스트 입력.'>
	<input type="submit" value="제출">
	<input type="reset" value="초기화">
</form>
</body>
</html>
submit button
아무글자나 입력:
728x90

댓글