HTML/기초
html 자주쓰는 Tag
고기고기물고기
2022. 3. 24. 03:53
button
<button>Log in</button>
input
- required maxlength : 글자 제한
- type : http://jun.hansung.ac.kr/cwp/htmls/HTML%20Input%20Types.html
- placeholder : 입력된게 없을 시 출력
HTML Input 요소의 타입들(types)
HTML Input 요소의 타입들(types) 이 장에서는 요소의 입력 타입(type) 들을 설명한다. HTML에서 사용할 수 있는 다른 input type은 다음과 같습니다.: Input Type: text 텍스트 입력(text input)위 한 줄의 입력 필
jun.hansung.ac.kr
<input required maxlength="15" type = "text" placeholder="what is your name?"/>
Input 버튼 -> 버튼과 차이점 html 의 기본 제한사항 사용가능
<form id = "login-form">
<input required maxlength="15" type = "text" placeholder="what is your name?"/>
<!-- <button>Log in</button> -->
<input type="submit" value="Log In"/>
</form>
a href
- 사이트 링크
<a href = "http://www.naver.com"> go to naver</a>
go to naver
span
- span태그 내부에 객체가 들어가면 그 객체의 크기만큼 공간이 할당이 됩니다.
- 출처 : https://coding-factory.tistory.com/189
<span class="box">대한사람 대한으로 길이 보전하세</span>