HTML Diff
0 added 0 removed
Original 2026-01-01
Modified 2026-03-09
1 <ul><li>index.html</li>
1 <ul><li>index.html</li>
2 <li>style.css</li>
2 <li>style.css</li>
3 </ul><p>HTML</p>
3 </ul><p>HTML</p>
4 <p>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;title&gt;On-hover effects: buttons, part 2&lt;/title&gt; &lt;meta charset="utf-8"&gt; &lt;link rel="stylesheet" href="style.css"&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="buttons"&gt; &lt;button class="btn-green" type="button"&gt; &lt;img class="icon" src="icons/reload-6x-white.png" alt="Reloading the icon"&gt; Refresh &lt;/button&gt; &lt;button class="btn-yellow" type="button"&gt; &lt;span class="hidden"&gt;25&lt;img src="icons/dollar-6x-white.png" alt="Dollar icon"&gt;&lt;/span&gt; &lt;img class="icon" src="icons/cart-6x-white.png" alt="Cart icon"&gt; Buy &lt;/button&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt;</p>
4 <p>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;title&gt;On-hover effects: buttons, part 2&lt;/title&gt; &lt;meta charset="utf-8"&gt; &lt;link rel="stylesheet" href="style.css"&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="buttons"&gt; &lt;button class="btn-green" type="button"&gt; &lt;img class="icon" src="icons/reload-6x-white.png" alt="Reloading the icon"&gt; Refresh &lt;/button&gt; &lt;button class="btn-yellow" type="button"&gt; &lt;span class="hidden"&gt;25&lt;img src="icons/dollar-6x-white.png" alt="Dollar icon"&gt;&lt;/span&gt; &lt;img class="icon" src="icons/cart-6x-white.png" alt="Cart icon"&gt; Buy &lt;/button&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt;</p>
5 <p>Thanks! We’ll fix everything at once!</p>
5 <p>Thanks! We’ll fix everything at once!</p>
6 <p>You’ve gone to a different page</p>
6 <p>You’ve gone to a different page</p>
7 <p>Click inside the mini-browser to shift the focus onto this window.</p>
7 <p>Click inside the mini-browser to shift the focus onto this window.</p>
8 <p>100%</p>
8 <p>100%</p>
9 <ol><li>For .btn-yellow:hover .hidden, set opacity to be equal to 1.</li>
9 <ol><li>For .btn-yellow:hover .hidden, set opacity to be equal to 1.</li>
10 <li>For .btn-yellow:hover .icon set the scale transform to the value 10.</li>
10 <li>For .btn-yellow:hover .icon set the scale transform to the value 10.</li>
11 <li>And also set opacity to 0.</li>
11 <li>And also set opacity to 0.</li>
12 </ol><p>After you complete every change, hover the cursor over the yellow button to check your work.</p>
12 </ol><p>After you complete every change, hover the cursor over the yellow button to check your work.</p>