HTML Code Questions and Answers
Graded A+
What tag would you use to create an “invisible” line break that secretly organizes text?
The `<wbr>` tag adds an invisible break opportunity, great for long strings that need
splitting.
How do you add “secret instructions” to an ele...
HTML Code Questions and Answers
Graded A+
What tag would you use to create an “invisible” line break that secretly organizes text?
✔✔The `<wbr>` tag adds an invisible break opportunity, great for long strings that need
splitting.
How do you add “secret instructions” to an element without anyone seeing them?
✔✔The `data-*` attribute lets you store hidden information in elements, accessible with
JavaScript.
What tag would you use to create a “hidden treasure map” in HTML, revealing text only on
hover?
✔✔Combine the `<span>` tag with a `display: none` hover effect in CSS to reveal hidden text.
How do you create a “ghost” button that’s almost invisible until clicked?
✔✔Use a `<button>` tag with CSS styling to make it transparent, visible only on hover or click.
What’s the HTML trick to add “whispered text” that only appears if the screen reader is on?
1
, ✔✔The `<span class="sr-only">` class is used with CSS to make text readable only by screen
readers.
How would you make a text “echo” effect, where it repeats at different opacity levels?
✔✔Use the `<span>` tag and duplicate the text with CSS, layering the echo effect with `opacity`.
What tag creates a “shadow” under your text, as if it’s floating?
✔✔Use `<span style="text-shadow">` to add a shadow effect behind any text, making it look
lifted.
How can you add a “heartbeat” animation to a button in HTML?
✔✔Use a `<button>` tag with CSS keyframes to scale up and down, creating a pulsing heartbeat
effect.
How would you make text appear like “falling snowflakes” using basic HTML and CSS?
✔✔Wrap each letter in a `<span>` tag, then animate each `top` position individually in CSS to
fall down.
How do you make an “invisible wall” in HTML that blocks clicks to a certain area?
2
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through EFT, credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying this summary from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller StellarScores. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy this summary for R182,72. You're not tied to anything after your purchase.