Monday, April 7, 2025

Html Coding for Blinking Text in Blog

 Sure! Here's a simple way to make text blink in an HTML blog using CSS (since the old <blink> tag is deprecated and not supported in modern browsers).

✅ Modern HTML + CSS Blinking Text Example:

<!DOCTYPE html> <html> <head> <style> .blinking { animation: blinker 1s linear infinite; color: red; font-weight: bold; } @keyframes blinker { 50% { opacity: 0; } } </style> </head> <body> <p class="blinking">This text blinks!</p> </body> </html>

What’s going on:

  • .blinking: CSS class that triggers a fade in/out loop.

  • @keyframes blinker: controls the animation steps (you can adjust speed/duration).

  • You can change color, font-weight, or animation timing as you like.

Want to blink a specific word in a sentence? You can just wrap that word in a <span class="blinking"> inside your paragraph.

How to Get Audio File Url.mp3

Great question! To use background music on your Blogger site, you need a direct .mp3 link to the audio file — meaning it should end in .mp3 and not open a player page. Here's how to get one:


🎵 Option 1: Upload to a Free File Hosting Service

1. File.io / SoundHost / Dropbox (with tweaks)

Dropbox (Steps to get a direct link):

  1. Upload your .mp3 file to Dropbox.

  2. Click "Share" on the file → then "Copy link" (it will look like:
    https://www.dropbox.com/s/abcd1234/myfile.mp3?dl=0)

  3. Replace www.dropbox.com with dl.dropboxusercontent.com and remove ?dl=0:

    https://dl.dropboxusercontent.com/s/abcd1234/myfile.mp3

✅ That is your direct mp3 link.


🎵 Option 2: Use GitHub (if you're a bit tech-savvy)

  1. Create a GitHub repo (public).

  2. Upload the .mp3 file.

  3. Go to the raw file view, copy the raw file URL — e.g.:

    https://raw.githubusercontent.com/yourusername/yourrepo/main/music.mp3

🎵 Option 3: Use Google Drive (a little trickier)

Google Drive doesn’t give a direct .mp3 link easily, but you can work around it:

  1. Upload the .mp3 file to Google Drive.

  2. Right-click → Get link (set to "Anyone with the link").

  3. Copy the file ID from the share link:
    https://drive.google.com/file/d/FILE_ID/view?usp=sharing

  4. Use this format to generate a direct link:

    https://docs.google.com/uc?export=download&id=FILE_ID

But ⚠️ this may not always autoplay due to Google’s limitations.


Need a quick audio file to test with?

You can try this royalty-free test file from SoundHelix:

https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3

Would you like help hosting your file? You can send me the .mp3, and I can walk you through uploading it somewhere that gives a direct link.

Html coding for adding a mute/play button if you want better user control (and to not annoy visitors 😅) in blogger

 Absolutely! Let's give your Blogger background music a mute/play button so users can control it — and you stay in their good books 😄


✅ HTML + JavaScript Code for Background Music with Mute/Play Button

Paste this into a HTML/JavaScript gadget or directly into your Blogger theme where you'd like the button to appear:

<!-- Background Music Player -->

<audio id="bg-music" autoplay loop>

  <source src="YOUR_AUDIO_FILE_URL.mp3" type="audio/mpeg">

  Your browser does not support the audio element.

</audio>


<!-- Mute/Play Button -->

<button id="music-toggle" style="position:fixed; bottom:20px; right:20px; z-index:9999; padding:10px 15px; font-size:16px;">

  🔊 Music On

</button>


<script>

  const music = document.getElementById('bg-music');

  const toggleBtn = document.getElementById('music-toggle');


  // Check if audio is playing

  function isPlaying(audio) {

    return !audio.paused;

  }


  toggleBtn.addEventListener('click', () => {

    if (isPlaying(music)) {

      music.pause();

      toggleBtn.textContent = '🔇 Music Off';

    } else {

      music.play();

      toggleBtn.textContent = '🔊 Music On';

    }

  });

</script>

  • You can also add hidden if you don’t want the player to be visible:

<audio autoplay loop hidden> <source src="your-audio-file.mp3" type="audio/mpeg"> </audio>

🔧 What to Do:

  1. Replace YOUR_AUDIO_FILE_URL.mp3 with your direct mp3 link.

  2. The button will appear fixed at the bottom-right of your page.

  3. Visitors can toggle the music on/off easily.


💡 Optional Styling Tip:

You can change the button’s look with CSS or replace it with an icon or image for a fancier feel.

Want me to help with a custom-styled button or icon version too?

Monday, March 31, 2025

Html Coding for Whatsapp Sharing in Blogger

 If you want to add a WhatsApp share button to your Blogger posts, you can use a simple HTML code snippet. Here’s how:

Code for WhatsApp Share Button

<a href="https://api.whatsapp.com/send?text=Check%20out%20this%20post:%20YOUR_POST_URL" target="_blank"> <img src="https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg" alt="Share on WhatsApp" width="40"> </a>

Steps to Add This to Blogger

  1. Go to Blogger Dashboard

  2. Click on "Layout"

  3. Choose "Add a Gadget" → Select "HTML/JavaScript"

  4. Paste the Above Code

  5. Replace YOUR_POST_URL with your actual blog post link

  6. Click Save and Preview

For Automatic Sharing of Each Post

To make the button dynamically share the current blog post, use this:

<a href="https://api.whatsapp.com/send?text=Check%20out%20this%20post:%20<script>document.write(encodeURIComponent(document.URL));</script>" target="_blank"> <img src="https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg" alt="Share on WhatsApp" width="40"> </a>

Friday, March 28, 2025

Html Coding to give tabular column in blogger

 In Blogger, you can create a tabular column using simple HTML inside a post or page. Below is a basic example of how to create a table in Blogger:

Basic HTML Table Code for Blogger

<table border="1" cellpadding="10" cellspacing="0"> <tr> <th>Serial No</th> <th>Name</th> <th>Age</th> <th>Country</th> </tr> <tr> <td>1</td> <td>Alice</td> <td>25</td> <td>USA</td> </tr> <tr> <td>2</td> <td>Bob</td> <td>30</td> <td>UK</td> </tr> <tr> <td>3</td> <td>Charlie</td> <td>28</td> <td>India</td> </tr> </table>

Adding CSS Styling for a Better Look

If you want a better-designed table, you can use CSS in Blogger’s HTML editor:


<style> table { width: 100%; border-collapse: collapse; } th, td { border: 1px solid black; padding: 10px; text-align: left; } th { background-color: #f2f2f2; } tr:nth-child(even) { background-color: #f9f9f9; } </style> <table> <tr> <th>Serial No</th> <th>Name</th> <th>Age</th> <th>Country</th> </tr> <tr> <td>1</td> <td>Alice</td> <td>25</td> <td>USA</td> </tr> <tr> <td>2</td> <td>Bob</td> <td>30</td> <td>UK</td> </tr> <tr> <td>3</td> <td>Charlie</td> <td>28</td> <td>India</td> </tr> </table>

How to Add This Code in Blogger?

  1. Go to Blogger Dashboard

  2. Click on "Posts" → "Create a New Post"

  3. Click on "HTML View" (instead of "Compose")

  4. Copy and paste the HTML code

  5. Click Publish or Preview to check the table

Thursday, March 27, 2025

Html Coding for Dancing image in blogger


 If you want to add a dancing image to your Blogger site, you can use simple HTML and CSS. Here's a basic example:

Steps:

  1. Go to Blogger → Open your blog.

  2. Click "Theme" → "Customize" → "Edit HTML."

  3. Paste the following code inside your post or widget section.


🎶 Dancing Image Code:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Dancing Image</title>
    <style>
        @keyframes dance {
            0% { transform: translateY(0); }
            50% { transform: translateY(-20px); }
            100% { transform: translateY(0); }
        }

        .dancing-img {
            width: 200px;
            display: block;
            margin: 20px auto;
            animation: dance 0.5s infinite alternate ease-in-out;
        }
    </style>
</head>
<body>

    <img class="dancing-img" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTvatSdGS5zjaCx0Nsx4zriZNEaDRZ_pFJ2PqFxVS0OljWnVaJj4Z5XXmsJji1y6uYLhWn9BB8APEpPn_HTdfwmxLqsa_MZ1WzbCeIW51yJGnDZ0KFaNYHdgQAmtBW9J1aXYT4rj_IzxXunuNKOazImXPdzQu4zlnlO28LLfnrwFUQ0XSbvWsIuhQhXRM/w264-h208/photo_2025-02-14_10-21-11.jpg" alt="Dancing Image">


</body>
</html>

🔥 How It Works:

  • The @keyframes dance creates a bouncing effect.

  • The .dancing-img applies animation to your image.

  • Replace "https://your-image-url-here.com/dance.gif" with your own dancing image URL.


📌 Extra Tips:

  • Use a GIF for a real dancing effect.

  • You can adjust width, animation-duration, and transform for custom movements.

Let me know if you need more tweaks! 🎵💃

Friday, March 7, 2025

How to Add Glitter Text in Your Blogger Page

 Here's a simple HTML, CSS, and JavaScript code snippet for adding a digital clock to your Blogger site.

Steps to Add the Digital Clock:

  1. Open Blogger and go to the Layout section.
  2. Click on Add a Gadget and select HTML/JavaScript.
  3. Paste the following code and save it.

How To Add Welcome Text in Blogger Page

Here's a simple HTML, CSS, and JavaScript code for adding a Welcome Text in your Blogger site.

Steps to Add the Digital Clock:

  1. Open Blogger and go to the Layout section.
  2. Click on Add a Gadget and select HTML/JavaScript.
  3. Paste the following code and save it.

Tuesday, February 11, 2025

Html Coding for Digital Clock

Here's a simple HTML, CSS, and JavaScript code snippet for adding a digital clock to your Blogger site.

Steps to Add the Digital Clock:

  1. Open Blogger and go to the Layout section.
  2. Click on Add a Gadget and select HTML/JavaScript.
  3. Paste the following code and save it.

HTML, CSS & JavaScript Code for Digital Clock

Coding 1:

 <div id="clock-container">

  <div id="digital-clock"></div>

</div>


<style>

  #clock-container {

    text-align: center;

    font-size: 24px;

    font-family: Arial, sans-serif;

    font-weight: bold;

    background: black;

    color: lime;

    padding: 10px;

    border-radius: 10px;

    display: inline-block;

  }

</style>


<script>

  function updateClock() {

    var now = new Date();

    var hours = now.getHours();

    var minutes = now.getMinutes();

    var seconds = now.getSeconds();

    var amPm = hours >= 12 ? 'PM' : 'AM';


    hours = hours % 12 || 12; // Convert to 12-hour format

    minutes = minutes < 10 ? '0' + minutes : minutes;

    seconds = seconds < 10 ? '0' + seconds : seconds;


    var timeString = hours + ":" + minutes + ":" + seconds + " " + amPm;

    document.getElementById('digital-clock').innerHTML = timeString;

  }


  setInterval(updateClock, 1000);

  updateClock();

</script>

Saturday, January 11, 2025

BLOGGER YOUTUBE AD HTML CODE:

 <div class="videoWrapper">

    <!-- Copy & Pasted from YouTube -->

    <iframe width="560" height="349" src="PASTE YOUTUBE EMBEDDED CODE URL" frameborder="0" allowfullscreen></iframe>

</div>

<style>

.videoWrapper {

position: relative;

padding-bottom: 56.25%; /* 16:9 */

padding-top: 25px;

height: 0;

}

.videoWrapper iframe {

position: absolute;

top: 0;

left: 0;

width: 100%;

height: 100%;

}

</style>

Friday, January 10, 2025

How To Add Scrolling Image In Blogger

 <style>

div.scroll-container {

  background-color: #333;

  overflow: auto;

  white-space: nowrap;

  padding: 10px;

}


div.scroll-container img {

  padding: 10px;

}

</style>

<h2>Image Gallery With Horizontal Scroll</h2>


<div class="scroll-container">

  <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDEe5AltizoKfjrpUwKF7j-lwio0f3kCCA4oAD_xm24Z_PdfdQBmC6bGs7JhUiGqT5pD1DfzrAakQRvZHinzIFCD96-XG1BUKHQ96HzVyFayashKFPgSIYK7kLsWV8cThlyEICN0Q7hpk_Yqarq-oOmZPXdfXpI1ViCuRu5W4wu8Vp8Y6imhsgUSyFHXw/s1600/photo_2024-12-21_10-16-51.jpg" width="200" height="200" />

<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgn5QEdMqot2nAaJKMfcRzlL9PBlMrzXjffcD4hBXYZUXPmLONBRot9jerLl3g7i_GtoDOYSNVlL11DrRI0NycVzLAiWhHWkL1Q02tIHfUKuWsy-bkOb2fZBicimOVPJSXa0PKZw_vbZ_QKGInMOFTF57uCvUIiq-EbsCfXGKWLc9RW0iIJNrmL6DahuTo/s1600/676a6748302ba_1735026504.jpg" width="200" height="200" />

  <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCu6jlca1_QphwHEH5flcPRVkNEvSQhr9TXculA63Fvu4-nurxj_deG5b34uUOibZhPgEiqVUITaML153G2TCQpawIRtZucT58i5IWUvXtqJhxgQ30osU5xZdK7lgkCEdH-qutobwvl1tBRe3JVVAjM9An7wYqTu5r2nK_8uzalLrvB26Mh05gqLR78mo/s1600/photo_2024-12-16_14-33-03.jpg" width="200" height="200" />

  <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXLDLmmZHM4XfHkXzB0KiytT0Y3DyxXcpvX58j4goHiy-Ns4kg4gI__BXUfcdKUvbTDvQwjFNh3_MJJrrZA6OCZzua5QuGljubVXSI25MLs6Z8rW9JVfWsY55K0KOuoOowmlJ9VTQKUJJ7o5-QXU-2EM3HccYG_z6L8RhllDBGCRpzlIugrGuzkGGk5CA/s1600/photo_2024-12-16_14-31-11.jpg" width="200" height="200" />

  <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiEkC_pKRJ1b2evnx7Dpg0ErIrugPoJxhnEYT2G-ec8C0qptlxPg91OhXewEe0D0aikb47jq4DqefqwWSUmSClZevWhgUhqwK0LSHACv7gP7Xb065nt02iHhW2IZw51JhZGGfAhF490XyZCGCHXsbr1MRJl4QzU65w_Yk_xwaiIQCembs_YnUwZaRVW1c/s1600/photo_2024-12-16_14-31-23.jpg" width="200" height="200" />

  <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5B-VaZwHRldSLcAH9xsz1EjyhQIWXPe6JQCeZLJg3Jy7uQqYX0j8Fr7ATsxKDFMld_tor0o6tW7-VWCXOCcxQX_iEfRFIKDAaQp6CXtD1Bmk9_u0jv6pYraeD7-uIwpmIwLB5_bO0UgIwbeszKXFYrvgOaeEQo0StS1NhLsPl37_Cs4wDgErtQSfKbrM/s1600/673dd2185f187_1732104728.jpg" width="200" height="200" />

<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5V_d1jG-9d8Z4_bdVjDMLab_gJIOKRHeE9NyjI8WgwC9dumx2rp8J9i3QqMUYvzGnr-nmuEqBmgApSrSRVJURYUR7KjhUdE7pJBE_HvV70sjdyvodXioup45arcxyOrC0bWok-DWpZpPCeFz4_nnPBfA5NnIcV0pp0zXYdXCIgHEITS0hL8KbC35nIlY/s1600/676a6763ac2d0_1735026531.jpg" width="200" height="200" />

</div>

Html Coding for Blinking Text in Blog

 Sure! Here's a simple way to make text blink in an HTML blog using CSS (since the old <blink> tag is deprecated and not support...