How to Create Neon Light Button using HTML and CSS? Last Updated : 25 Sep, 2024 Comments Improve Suggest changes Like Article 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: Comment More infoAdvertise with us Next Article How to Create Neon Light Button using HTML and CSS? L lakshgoel204 Follow Improve Article Tags : HTML Similar Reads How to Create a Transparent Button using HTML and CSS? Transparent buttons are a popular design choice in modern web development, as they create a sleek and minimalist look. By using CSS, you can easily create buttons with fully transparent or semi-transparent backgrounds. This article uses the background-color: transparent; property to design the trans 2 min read How to create a Hero Image using HTML and CSS ? A Hero Image is a large image with text, often placed at the top of a webpage. Hero images can be designed using HTML and CSS. This article contains two sections. The first section attaches the image and designs the basic structure. The second section designs the images and texts on the images. The 2 min read How to Create Alert Button in HTML? To create alert buttons in HTML, define buttons with different classes for various alert types Success, Info, Warning, Danger, and Default, and style them with background colors, border colors, and hover effects for visual feedback. Utilize CSS transitions to add smooth animations when the buttons a 2 min read How to Build Animated Cursor Neon using HTML, CSS and JavaScript? The neon cursor moves with your mouse, creating a cool visual effect. You can change the neon color to match your website. You can also adjust how bright and wide the neon glow is to fit your style. You can transform your cursor into a bright neon trail. You can choose different colors, adjust the g 2 min read How to create a clickable button in HTML ? In this article, we will create a Button by using the <Button> Element in the Document. It is used to submit the content. The images and text content can use inside a button tag. Syntax: <button type = "button"> Example: Using HTML <button> type Attribute html <!DOCTYPE html> 1 min read Like