HTML | 속성(Attribute)
1. 속성(Attribute)
태그의 기본 기능을 수정하거나, 스스로 기능하지 못하는 특정한 요소 유형에 기능을 제공하는 것이다.
2. 예시
이미지를 넣는 태그는 <img>
, 하지만 이대로는 정보가 부족하다.
<img src="https://s3-ap-northeast-2.amazonaws.com/opentutorials-user-file/module/3135/7648.png",
width="200">
- 결과
여기서 src
와 width
는 img 태그의 속성인 것을 알 수 있다.
src
는 파일 경로 및 이미지의 주소(URL), width
는 가로 길이 속성을 나타낸다.
위의 <img>
같이 어떤 속성이 있는지 모르는 경우,
역시나 검색을 이용하면 됩니다. "HTML img tag"
또는 "<img>"
검색하여 알아가봅시다!
Author And Source
이 문제에 관하여(HTML | 속성(Attribute)), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://velog.io/@goblin820/HTML-4저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)