• 회원가입
  • 로그인
  • 구글아이디로 로그인

[attribute] HTML - coords 속성 - 이미지맵 링크영역 좌표 표시 (= coords속성 = 코즈속성/코드스속성/코우오드스속성) ※ 좌표속성

목차
  1. coords 예제 - 이미지맵 영역 좌표 표시
  2. coords 정의
  3. coords 구문

 

coords 예제 - 이미지맵 영역 좌표 표시

 

<img src="https://i.imgur.com/NUjTqSd.gif" width="389" height="26" border="0" usemap="#Search_Engine">
<map name="Search_Engine">
    <area shape="rect" coords="4,3,68,21" href="http://naver.com" target="_blank" onFocus="blur()">
    <area shape="rect" coords="78,4,119,20" href="http://daum.net" target="_blank" onFocus="blur()">
    <area shape="rect" coords="128,5,193,19" href="http://www.paran.com" target="_blank" onFocus="blur()">
    <area shape="rect" coords="204,3,259,20" href="http://nate.com" target="_blank" onFocus="blur()">
    <area shape="rect" coords="269,2,323,20" href="http://www.google.co.kr/" target="_blank" onFocus="blur()">
    <area shape="rect" coords="331,4,385,18" href="http://kr.yahoo.com/" target="_blank" onFocus="blur()">

 

coords 정의

 

이미지맵 에어리어(area: 링크영역)의 좌표(coordinate) 지정.

 


 

1.

  • shape 속성과 함께 사용되어, 링크영역의 (크기/모양/배치)를 지정.
  • 링크영역 왼쪽상단 구석지 좌표: 0,0

 

2. coords 속성 사용 가능 태그 종류

<area>

 

3.

모든 브라우저 지원.

 

 

coords 구문

 

<area coords="value">

 


[속성값]

 

value

링크 영역 표시 좌표값

  • x1,y1,x2,y2 :  왼쪽 상단, 오른쪽 하단 코너 좌표값 (사각형 모양)
  • x,y,radius :  원의 중심 좌표값과 반지름 (원 모양)
  • x1,y1,x2,y2,..,xn,yn :  각 다각형의 코너 좌표값 (다각형 모양)  만약, 처음과 마지막 좌표값 짝이 동일하지 않을 시,  브라우저가 자동으로 마지막 좌표값을 추가함. 

 



분류 제목
attribute HTML - for 속성 - <label>/<output> 관련 요소 ID 바인딩 지정 (= for속성 = …
attribute HTML - ontimeupdate 속성 - (오디오/비디오) 재생위치 변경 시 실행 (= ontimeupd…
attribute HTML - open 속성 - <details> 태그 안 세부내용 표시함을 기본으로 지정 (= open속성 …
attribute HTML - border 속성 - (HTML5 지원 X) 테두리 너비 지정 (= border속성 = 보더속성…
attribute HTML - value 속성 ★★★ - 요소값 지정 (= value속성 = 밸류속성) ※ 초기값/기본값/현재…
attribute HTML - onwheel 속성 - 마우스휠/터치패드휠 움직일 때 실행 (= onwheel속성 = 온휠속성…
attribute HTML - contenteditable 속성 - 요소 내용 수정 가능 여부 지정 (= contentedit…
attribute HTML - formtarget 속성 - 폼데이터 전달할 폼 지정 (= formtarget속성 = 폼타겟속성…
attribute HTML - dirname 속성 - input/textarea 요소의 텍스트 방향 지정 (= dirname속…
attribute HTML - class 속성 ★★★ - 클래스명 선택자 지정 (= class속성 = 클래스속성)
attribute HTML - onscroll 속성 ★ - 마우스 스크롤 이벤트 시 실행 (= onscroll속성 = 온스크롤…
attribute HTML - bgcolor 속성 - (HTML5 지원 X) 배경색 지정 (= bgcolor속성 = 비지컬러속…
attribute HTML - usemap 속성 - 이미지를 이미지맵으로 지정 (= usemap속성 = 유즈맵속성|유스맵속성)
attribute HTML - onpaste 속성 - 사용자가 요소에 내용 붙여넣기 시 실행 (= onpaste속성 = 온패스…
attribute HTML - data 속성 - <object> 태그의 리소스 URL 주소 지정 (= data속성 = 데이터속…
attribute HTML - onfocus 속성 ★ - 포커스 설정 시 실행 (= onfocus속성 = 온포커스속성) ※ o…
form HTML - <input type="range"> 태그 - 지정범위 내 입력값 지정 (= 인풋레인지타입/레인…
attribute HTML - multiple 속성 ★ - 복수 (파일업로드/이메일입력/옵션선택) 허용 (= multiple속…
attribute HTML - target 속성 ★ - (링크된 문서 열 곳 / 폼 제출할 곳) 지정 (= target속성 =…
attribute HTML - maxlength 속성 ★ - 입력 가능한 최대 글자 개수 지정 (= maxlength속성 = …
8/18
목록
찾아주셔서 감사합니다. Since 2012