html - How do I add a parameter (class) to an URL -
this assignment i've got school:
create new class selector in css-file named 'current' element in nav. background color should #db2b2b
, text color must white.
next add parameter class="current" correct link in index.html.
this code of both css-file , html-file:
css
.current { background-color: #db2b2b; color: white; }
html
<nav> <a href="index.html">home</a> </nav>
the problem i'm dealing don't know add parameter , how. might have noticed, goal show on tab giving different color , text.
you can replace code bellow
<nav> <a class="current" href="index.html" >home</a> </nav>
and css below
a.current { background-color: #db2b2b; color: white; }
Comments
Post a Comment