Inline Style Sheets

Applied directly within an HTML element using the style attribute.

<p style="color: blue; font-size: 20px;">Hello, CSS!</p>

✔ Quick changes

❌ Not recommended for large projects


Qus. 1 : Which of the following HTML attribute is used to define inline styles?

  1. Style
  2. type
  3. class
  4. None of the above
Qus. 2 : What this code will happen: <p style="color:blue">text</p>

  1. to make that specific paragraph text color as blue
  2. Error
  3. nothing happen
  4. None of the above
Qus. 3 : What happens if an inline style conflicts with an external CSS rule

  1. The external CSS rule is applied
  2. The inline style is applied
  3. Both are ignored
  4. The browser applies the styles randomly

Programs

Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad