COMP 126: Practical Web Design & Development for Everyone
<meta name="viewport"
content="width=device-width,initial-scale=1.0"/>
Add this to your <head> (not <header>) element:
Translation:
"Please check the width of the viewport before rendering this page in the browser and scale/display the page's contents according to that width."
for HTML: https://validator.w3.org/
for CSS: http://jigsaw.w3.org/css-validator/
Text
ARIA is an additional set of HTML attributes that can be used to provide additional semantics and accessibility when the usual HTML semantics aren't sufficient.
ARIA attributes are meant to enhance your usual accessible semantic HTML practices, not to replace them. Use ARIA only when the usual HTML accessibility standards are insufficient.
Note that ARIA is primarily used with JavaScript, so we won't be using it extensively in this class.
<div class="background-image" role="img">
</div>
<div class="site-title" role="banner"></div>
<nav class="navbar" role="navigation"></nav>
<form role="search"></form>
<div role="form"></div>
<div role="complementary"></div>
<h2 class="aside-title" role="heading">title</h2>
<a href="#" role="button">read more</a>
<nav class="navbar" role="navigation" aria-label="Primary Naviation">
</nav>
<form role="search">
<input type="search" placeholder="Search" aria-label="Search"/>
</input>
</form>
<div role="form" aria-label="Contact Information">
<form>
</form>
</div>
<div role="complementary" aria-label="Further Information"></div>
<div class="background-image" role="img" aria-label="Maine forest">
</div> /* Note! This is how you can annotate a background image
for accessibility. */
<h2 class="aside-title" role="heading" aria-level="2">title</h2>
<a href="#" role="button" aria-label="Read More">read more</a>