| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ko/docs/Learn_web_development/Core/Accessibility/CSS_and_JavaScript | [Back] [Original] |
Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
CSS JavaScript , . CSS JavaScript .
| : | HTML, CSS, JavaScript . |
|---|---|
| : | CSS JavaScript . |
CSS JavaScript HTML , . , CSS JavaScript .
CSS .
CSS HTML , . HTML: , . , . . , .
, . , .
, , . HTML .
, ,
<h1>Heading</h1>
<p>Paragraph</p>
<ul>
<li>My list</li>
<li>has two items.</li>
</ul>
CSS .
h1 {
font-size: 5rem;
}
p,
li {
line-height: 1.5;
font-size: 1.6rem;
}
.
HTML .
.
<p>The water is <em>very hot</em>.</p>
<p>
Water droplets collecting on surfaces is called <strong>condensation</strong>.
</p>
.
strong,
em {
color: #a60000;
}
, .
<p>
Web content is marked up using Hypertext Markup Language, or
<abbr>HTML</abbr>.
</p>
, .
abbr {
color: #a60000;
}
.
<p>Visit the <a href="https://www.mozilla.org">Mozilla homepage</a>.</p>
.
a {
color: #ff0000;
}
a:hover,
a:visited,
a:focus {
color: #a60000;
text-decoration: none;
}
a:active {
color: #000000;
background-color: #a60000;
}
(: ), (: ) . , , (: ) . Firefox( ) Chrome( ) .
. . .
.
<div>
<label for="name">Enter your name</label>
<input type="text" id="name" name="name" />
</div>
form-css.html CSS . ( .)
CSS , , .
. ( ). / . .
.
table-css.html HTML CSS . ( .)
CSS . ( ), .
. .
: .
/ . . , .
. , ( ) , . (Tab Enter/Return .)
. . .
visibility:hidden display:none . , .
. .
. , . , . , ( ) .
JavaScript .
JavaScript , UI 2D 3D . 100% . .
. , , , , , . HTML: .
JavaScript . . , . JavaScript WAI-ARIA . .
3D . WebGL 3D <canvas> . 100% . , .
JavaScript . JavaScript . HTML, CSS JavaScript . .
! JavaScript 3D , . , . JavaScript HTML .
JavaScript . JavaScript , . JavaScript . , .
JavaScript .
<video> ( <video> ).. form-validation.html . . .
. JavaScript , (: JavaScript ) . . . .
: .
. <label> .
<label for="name">Enter your name:</label>
<input type="text" name="name" id="name" />
. UI ( ) .
form.onsubmit = validate;
function validate(e) {
errorList.innerHTML = "";
for (let i = 0; i < formItems.length; i++) {
const testItem = formItems[i];
if (testItem.input.value === "") {
errorField.style.left = "360px";
createLink(testItem);
}
}
if (errorList.innerHTML !== "") {
e.preventDefault();
}
}
: display visibility .
. , (: 4 ) . (if (testItem.input.value === '')) .
. (if (errorList.innerHTML !== '')) (preventDefault() ) ( ). .
errorList .
function createLink(testItem) {
const listItem = document.createElement("li");
const anchor = document.createElement("a");
const name = testItem.input.name;
anchor.textContent = `${name} field is empty: fill in your ${name}.`;
anchor.href = `#${name}`;
listItem.appendChild(anchor);
errorList.appendChild(listItem);
}
. , / .
errorField (CSS UI ). .
, WAI-ARIA ( ).
<div class="errors" role="alert" aria-relevant="all">
<ul></ul>
</div>
WAI-ARIA .
:
HTML required, min/minlength, max/maxlength ( <input> ). (: IE10 ).
JavaScript . .
JavaScript , . . mouseover, mouseout, dblclick . .
. .
mouse-and-keyboard-events.html ( .) . . .
imgThumb.onmouseover = showImg;
imgThumb.onmouseout = hideImg;
imgThumb.onfocus = showImg;
imgThumb.onblur = hideImg;
. / . ( ) . tabindex="0" .
click . Enter/Return onclick . tabindex . ( .).
? . : CSS JavaScript .
CSS JavaScript .
WAI-ARIA!
This page was last modified on 2026 5 2 by MDN contributors.
Your blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |