<!DOCTYPE html> <html lang="en"> <head> <title>HTML class Attribute</title> <style> .box{ padding: 10px; border: 1px blue; } .highlight{ background: red; } </style> </head> <body> <p><input type="text" class="highlight"></p> <div class="box highlight">Good Morning</div> <p class="highlight">Have a wonderfull day.</p> </body> </html>