๋ฐ์ํ
์น ์ ๊ทผ์ฑ์ ์ํ ํค๋ณด๋ Tab ํด๋ฆญ์ ํตํด focus ์ด๋์,
interactive element์ธ <a>, <span>, <button>, <input>, <select> ๋ฑ์ ์์๋ค์ ์๋์ผ๋ก focus๊ฐ ์กํ๋๋ค.
tabindex = "0"
์ด์ธ์ <span>์ด๋ <div> ๋ฑ์ ์์์๋ focus๋ฅผ ์ก๊ณ ์ถ๋ค๋ฉด
tabindex="0"๋ฅผ ์ถ๊ฐํ์๋ฉด ๋ฉ๋๋ค.
<div id="test1" name="test1" tabindex="0">
</div>
tabindex = "-1"
๊ธฐ๋ณธ์ ์ผ๋ก focus๊ฐ ์กํ๋ ์์์ ์๋์ผ๋ก focus๊ฐ ์กํ์ง ์๊ฒ ํ๋ ค๋ฉด
tabindex="-1"๋ฅผ ์ถ๊ฐํ์๋ฉด ๋ฉ๋๋ค.
<a id="test2" name="test2" tabindex="-1">
</a>
tabindex = "์์"
์ํ๋ ์์๋๋ก focus๋ฅผ ์ก๊ณ ์ถ๋ค๋ฉด
tabindex="1", tabindex="2", tabindex="3", ...., tabindex="0" ์ด๋ฌํ ์์ ์์๋๋ก ์ถ๊ฐํ์๋ฉด ๋ฉ๋๋ค.
<input type="text" id="test3" name="test3" tabindex="3" />
<button id="test2" name="test2" tabindex="2" />
<a id="test1" name="test1" tabindex="1" />
focus ์กํ๋ ์์ : id test1 > test2 > test3
์ฐธ๊ณ : https://developer.mozilla.org/ko/docs/Web/HTML/Global_attributes/tabindex
๋ฐ์ํ
'๋ณด์' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[SVN] Eclipse SVN Save authentication ์๋ ๋ก๊ทธ์ธ ์คํจ (0) | 2022.04.21 |
---|---|
[๋ณด์] Replay Attack(์ฌ์ ์ก ๊ณต๊ฒฉ) (2) | 2022.01.20 |
[๋ณด์] DMZ ๋คํธ์ํฌ (0) | 2022.01.20 |
[๋ณด์] ์ธ์ฆ์ (0) | 2021.12.30 |
[๋ณด์] ๊ณต๊ฐํค ๊ธฐ๋ฐ ๊ตฌ์กฐ(PKI: Public Key Infrastructure) (2) | 2021.12.30 |
๋๊ธ