<!DOCTYPE html> <html lang="en"> <head> <title>HTML id Attribute</title> <style> #hello{ border: 1px solid red; } #container{ background: #ccc; } #infoText{ color: yellow; } </style> </head> <body> <p><input type="text" id="hello"></p> <div id="container">How are you</div> <p id="infoText">I am fine.</p> </body> </html>