&amp Symbol In Html Code Example


Example: . and # in html

<!DOCTYPE html> <html> <head> <style> .classname {   background-color: green;   color: white; } #idname {   background-color: pink;   color: white; } </style> </head> <body> <div class="classname">I am  green colour<div> <div id="idname">I am  pink colour</div> </body> </html>

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable