Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    How to create Awesome Cool Loading Animation using HTML CSS and JS

    16 June 2025

    How to create Login and Signup Form using HTML CSS and JS

    9 June 2025

    How to create Impossible light bulb using HTML CSS and JS

    5 June 2025
    Facebook X (Twitter) Instagram YouTube Telegram Threads
    Coding StellaCoding Stella
    • Home
    • Blog
    • HTML & CSS
      • Login Form
    • JavaScript
    • Hire us!
    Coding StellaCoding Stella
    Home - HTML & CSS - YouTube New to You Button using HTML & CSS
    HTML & CSS

    YouTube New to You Button using HTML & CSS

    Coding StellaBy Coding Stella11 January 2024Updated:11 January 2024No Comments3 Mins Read
    Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Email WhatsApp Copy Link

    Hey coders! Today, we’re keeping it chill and simple as we create a ‘New to You’ button for YouTube using just HTML and CSS – no fancy graphics or external stuff.

    Why bother with this button? Well, it’s not just about the button itself; it’s about having a bit of coding fun. Whether you’re a pro or just starting, this tutorial is a cool way to boost your skills.

    We’re not getting too fancy; we’re just making a button and exploring a bit of design. The ‘New to You’ button is more than just a visual thing; it’s a chance to add a touch of cool to your coding style.

    Join us in this laid-back coding adventure, where we’ll use HTML and CSS to make a button that looks good on any screen. Ready to spice up YouTube a bit? Let’s dive into the code!

    HTML :

    The given code snippet represents a gradient button. It includes a basic structure with a head section and a body section. The head section imports the “Roboto” font from Google Fonts and sets it as the default font for all elements. The body section contains a single anchor element with the text “New to you”.

    <!DOCTYPE html>
    <html lang="en" >
    <head>
      <meta charset="UTF-8">
      <title>Youtube New to You Button | Coding Stella</title>
      <link rel="stylesheet" href="./style.css">
    
    </head>
    <body>
    <!-- partial:index.partial.html -->
    <a href="#"><span>New to you</span></a>
    <!-- partial -->
      
    </body>
    </html>

    CSS :

    The given code is a CSS stylesheet imports the “Roboto” font from Google Fonts and sets it as the default font for all elements. The body element is centered on the page and has a dark background color. The anchor element is styled with a gradient background, padding, and rounded corners. On hover, it creates a glowing effect with a translucent background and a blur effect.

    @import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400&display=swap");
    
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: "Roboto", sans-serif;
    }
    
    body {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      background: #14171e;
    }
    
    a {
      position: relative;
      text-decoration: none;
      color: #fff;
      background: linear-gradient(45deg, #0ce39a, #69007f, #fc0987);
      padding: 14px 25px;
      border-radius: 10px;
      font-size: 1.25em;
    }
    
    a span {
      position: relative;
      z-index: 1;
    }
    
    a::before {
      content: "";
      position: absolute;
      inset: 1px;
      background: #272727;
      border-radius: 9px;
      transition: 0.5s;
    }
    
    a:hover::before {
      opacity: 0.7;
    }
    
    /* add some glow effect */
    a::after {
      content: "";
      position: absolute;
      inset: 0px;
      background: linear-gradient(45deg, #0ce39a, #69007f, #fc0987);
      border-radius: 9px;
      transition: 0.5s;
      opacity: 0;
      filter: blur(20px);
    }
    
    a:hover:after {
      opacity: 1;
    }

    In a nutshell, we’ve crafted a stylish ‘New to You’ button for YouTube using only HTML and CSS in this tutorial. Simple and beginner-friendly, this button is ready to freshen up your YouTube projects. Happy coding!

    If you hit a snag in your project, no biggie! Grab the source code by clicking the Download button, and you’re all set for your coding adventure. Enjoy coding!

    Button Gradient
    Share. Copy Link Twitter Facebook LinkedIn Email WhatsApp
    Previous ArticleNext Level Login & Registration Form using HTML & CSS
    Next Article Magic Navigation Menu 4 using HTML, CSS & JavaScript
    Coding Stella
    • Website

    Related Posts

    HTML & CSS

    How to create Awesome Cool Loading Animation using HTML CSS and JS

    16 June 2025
    HTML & CSS

    How to Create Animated Bicycle Product Card using HTML & CSS

    1 June 2025
    HTML & CSS

    How to make Happy birthday cake Animation using HTML & CSS

    29 May 2025
    Add A Comment
    Leave A Reply Cancel Reply

    Trending Post

    Master Frontend in 100 Days Ebook

    2 March 202419K Views

    How to make Modern Login Form using HTML & CSS | Glassmorphism

    11 January 202417K Views

    How to make I love you Animation in HTML CSS & JavaScript

    14 February 202415K Views

    How to make Valentine’s Day Card using HTML & CSS

    13 February 202412K Views
    Follow Us
    • Instagram
    • Facebook
    • YouTube
    • Twitter
    ads
    Featured Post

    How to Make A Quiz Application with a Timer using HTML CSS and JavaScript

    14 December 2023

    How to create Cool Responsive Card Slider using HTML CSS & JavaScript

    17 January 2025

    How to make Download Button with Progress bar in HTML CSS & JavaScript

    15 February 2024

    How to make Dots Ring Loader using HTML CSS

    16 April 2024
    Latest Post

    How to create Awesome Cool Loading Animation using HTML CSS and JS

    16 June 2025

    How to create Login and Signup Form using HTML CSS and JS

    9 June 2025

    How to create Impossible light bulb using HTML CSS and JS

    5 June 2025

    How to create Animated Rubik Cube using HTML CSS and JS

    3 June 2025
    Facebook X (Twitter) Instagram YouTube
    • About Us
    • Privacy Policy
    • Return and Refund Policy
    • Terms and Conditions
    • Contact Us
    • Buy me a coffee
    © 2025 Coding Stella. Made with 💙 by @coding.stella

    Type above and press Enter to search. Press Esc to cancel.

    Ad Blocker Enabled!
    Ad Blocker Enabled!
    Looks like you're using an ad blocker. We rely on advertising to help fund our site.
    Okay! I understood