For styling one element from a stylesheet, which attributes are the better practice to use?
Alang or dir
Bstyle or title
Cid or class
Dhref or src
Answer & Solution
Correct answer: C. id or class
Selecting by id or class from a stylesheet is preferred over writing styles into the style attribute.
Keep practising HTML, CSS and Scratch
Browse all HTML, CSS and Scratch questions for Olympiad (Class 6), or explore more Computer Science topics.
Related questions
Before its current name, the Scratch Foundation was known as what?A Scratch 2.0 project file is essentially which kind of file?Which more advanced visual language was inspired by Scratch?Which file format does Scratch 3.0 use for projects?Scratch 3.0 supports which kind of arrays, called lists?Scratch 2.0 was released in which year?In which year was Scratch 3.0 first released as a full version?Scratch is event-driven with many active objects. What are they called?