How to Create Neon Light Button using HTML and CSS? Last Updated : 12 Jul, 2025 Comments Improve Suggest changes 5 Likes Like Report The neon light button animation effect can be easily created by using HTML and CSS. By using HTML, we will design the basic structure of the button and then by using the CSS, we can create the neon light animation effect. HTML code: In this section, we will design a simple button structure using anchor tag. HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title> How to create Neon Light Button using HTML and CSS? </title> </head> <body> <a>GeeksForGeeks</a> </body> </html> CSS code: In this section, we will use some CSS properties to design the button and use hover class to get the animation effect when we hover the mouse over the button. CSS body { margin: 0; padding: 0; display: flex; height: 100vh; justify-content: center; align-items: center; background-color: #000; font-family: sans-serif; } /* styling the button */ a { padding: 20px 20px; display: inline-block; color: #008000; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; font-size: 3em; overflow: hidden; } /* creating animation effect */ a:hover { color: #111; background: #39ff14; box-shadow: 0 0 50px #39ff14; } Complete Code: In this section, we will combine the above two section of codes to create a Neon Light Button using HTML abd CSS. HTML <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title> How to create Neon Light Button using HTML and CSS? </title> <style> /*styling background*/ body { margin: 0; padding: 0; display: flex; height: 100vh; justify-content: center; align-items: center; background-color: #000; font-family: sans-serif; } /* styling the button*/ a { padding: 20px 20px; display: inline-block; color: #008000; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; font-size: 3em; overflow: hidden; } /*creating animation effect*/ a:hover { color: #111; background: #39ff14; box-shadow: 0 0 50px #39ff14; } </style> </head> <body> <a>GeeksForGeeks</a> </body> </html> Output: Create Quiz Comment L lakshgoel204 Follow 5 Improve L lakshgoel204 Follow 5 Improve Article Tags : HTML Explore HTML BasicsHTML Introduction4 min readHTML Editors4 min readHTML Basics7 min readStructure & ElementsHTML Elements4 min readHTML Attributes7 min readHTML Headings3 min readHTML Paragraphs3 min readHTML Text Formatting4 min readHTML Block and Inline Elements3 min readHTML Charsets4 min readListsHTML Lists3 min readHTML Ordered Lists5 min readHTML Unordered Lists4 min readHTML Description Lists3 min readVisuals & MediaHTML Colors11 min readHTML Links Hyperlinks2 min readHTML Images7 min readHTML Favicon4 min readHTML Video4 min readLayouts & DesignsHTML Tables9 min readHTML Iframes4 min readHTML Layout4 min readHTML File Paths3 min readProjects & Advanced TopicsHTML Forms4 min readHTML5 Semantics5 min readHTML URL Encoding4 min readHTML Responsive Web Design11 min readTop 10 Projects For Beginners To Practice HTML and CSS Skills8 min readTutorial ReferencesHTML Tags - A to Z List5 min readHTML Attributes Complete Reference8 min readHTML Global Attributes5 min readHTML5 Complete Reference8 min readHTML5 MathML Complete Reference3 min readHTML DOM Complete Reference15+ min readHTML DOM Audio/Video Complete Reference2 min readSVG Element Complete Reference5 min readSVG Attribute Complete Reference8 min readSVG Property Complete Reference7 min readHTML Canvas Complete Reference4 min read Like