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

[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 :  각 다각형의 코너 좌표값 (다각형 모양)  만약, 처음과 마지막 좌표값 짝이 동일하지 않을 시,  브라우저가 자동으로 마지막 좌표값을 추가함. 

 



분류 제목
form HTML - <input type="text"> 태그 - 1줄 텍스트 입력 (= 인풋텍스트타입/텍스트타입인풋…
attribute HTML - charset 속성 - 문자셋 지정 (= charset속성 = 차셋속성) ※ 문자인코딩, 언어셋
attribute HTML - onmousewheel 속성 - (폐기예고) 마우스휠 움직일 때 실행 (= onmousewhe…
form HTML - <input type="url"> 태그 - http(s) 프로토콜 형식의 URL 주소 입력 (=…
attribute HTML - onafterprint 속성 - 인쇄 대화상자 닫힌 이후 이벤트 발생 시 실행할 코드 정의 (=…
attribute HTML - oninput 속성 ★ - 사용자 입력값 변경 시 바로 실행 (= oninput속성 = 온인풋속…
attribute HTML - shape 속성 - 이미지맵 링크영역 모양 지정 (= shape속성 = 쉐이프속성) ※ 에어리어…
attribute HTML - sizes 속성 - 해상도별 이미지나 아이콘, 미디어(오디오/비디오) 등의 크기 지정 (= si…
form HTML - <input type="search"> 태그 - 검색어 입력 (= 인풋서치타입/서치타입인풋/서치…
attribute HTML - onload 속성 ★ - 지정 객체가 로드된 경우 실행 (= onload속성 = 온로드속성) ※…
form HTML - <input type="submit"> 태그 - 서버로 데이터 제출/전송 (= 인풋타입서브미트/…
attribute HTML - span 속성 ★ - 테이블 (열/열그룹) 병합 개수 지정 (= span속성 = 스팬속성) ※ …
form HTML - <input type="file"> 태그 - 업로드 할 파일 선택 (= 파일첨부/첨부파일 입력필…
attribute HTML - cite 속성 - (인용출처/삭제이유/삽입이유) 주소 연결 (= cite속성 = 사이트속성)
form HTML - <input type="reset"> 태그 - 입력창 초기화/재설정 (= 입력한 폼데이터 비우기…
attribute HTML - dir 속성 - 텍스트 출력방향 지정 (= dir속성 = 디르속성|디렉션속성)
attribute HTML - async 속성 ★★★ - 비동기적으로 외부스크립트 실행 지정 (= async속성 = 에이싱크속…
attribute HTML - onended 속성 - 미디어 재생 끝날 때 실행 (= onended속성 = 온엔디드속성) ※ …
attribute HTML - translate 속성 - 요소 내용 번역 허용 여부 지정 (= translate속성 = 트랜슬…
attribute HTML - novalidate 속성 - 폼데이터 제출 시, 유효성 평가 생략 (= novalidate속성 …
7/18
목록
찾아주셔서 감사합니다. Since 2012