OpenTechBook
  • Home
  • Open Books
    • All Open Books

    • Free eBooks
    • Free Magazines
    • Free Journals

    • Submit an Open Book
  • Quizzes
Home » Quiz » CSS Quiz

How can you underline text using CSS?

Difficulty level
  • font-decoration: underline;
  • font-style: underline;
  • text-decoration: underline;
  • text-style: underline;
To underline text in CSS, you should use the text-decoration property and set it to "underline." This CSS rule adds a line beneath the text.
Add your answer
Loading...
Facebook Twitter Linkedin Reddit Pinterest
CSS Quiz
Quiz
How can you set a fallback font in case the primary font fails to load?
Which CSS property is used to vertically align inline elements or inline-block elements?

Related Quiz

  • Which CSS pseudo-class would allow you to target only the last list item in an unordered list?
  • You're developing a website where certain styles should only be applied to screens wider than 768px. How would you set this condition using media queries?
  • You need to create a layout where a sidebar stays to the left and the main content takes up the remaining width. Which combination of float and width properties would achieve this?
  • Which CSS property is used to create animations by gradually changing from one set of CSS styles to another?
  • In a grid layout, how would you make an element occupy the space of two columns starting from the second column?

Leave a commentCancel

Your email address will not be published. Required fields are marked *

Hot Quiz

Python QuizPHP QuizServlet QuizData Analyst QuizAppium QuizSpring Boot QuizADO.NET QuizAPI Testing QuizNode.js QuizDatabase Testing QuizAWS Lambda QuizAutomation Testing QuizData Science Statistics QuizWeb Services QuizSoftware Testing QuizC Language QuizR Programming QuizC++ QuizBootstrap QuizAlgorithm Quiz
Copyright © 2024 Open Tech Book
  • About
  • Contact
  • FAQ
  • DMCA
  • Disclaimer
  • Privacy Policy