Html codes
184 subscribers
112 photos
15 videos
226 files
198 links
👋 Welcome to Html Codee
🚀 Here you’ll find mini tools, code snippets, and web tricks to grow fast.
🧩 Built with HTML, PHP, and smart ideas.
💌 Support: support@bestpage.x10.mx
🏁 If you don't walk today, run tomorrow.
Download Telegram
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Rainbow Text</title>
    <style>
        @keyframes rainbow {
            0% { color: red; }
            16.7% { color: orange; }
            33.3% { color: yellow; }
            50% { color: green; }
            66.7% { color: blue; }
            83.3% { color: indigo; }
            100% { color: violet; }
        }

        .rainbow-text {
            font-size: 2em;
            font-weight: bold;
            animation: rainbow 4s infinite; /* Change the duration if needed */
        }
    </style>
</head>
<body>
    <h1 class="rainbow-text">Rainbow Text Effect</h1>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Code Mockup with Highlight and Copy</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://cdn.jsdelivr.net/npm/daisyui@3.2.1/dist/full.css" rel="stylesheet">

<!-- Prism.js for Syntax Highlighting -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-javascript.min.js"></script>

<style>
/* Optional styling for code block */
pre {
padding: 1rem;
border-radius: 0.5rem;
font-family: monospace;
overflow-x: auto;
}
</style>
</head>
<body class="bg-base-200 p-10">

<div class="card shadow-lg max-w-md mx-auto">
<div class="card-body">
<h2 class="card-title">Highlighted Code Block</h2>

<!-- Code Block with Syntax Highlighting -->
<pre id="codeBlock" class="language-javascript">
<code class="language-javascript">
function greet() {
console.log("Hello, World!");
}
</code>
</pre>

<!-- Copy Button -->
<div class="mt-4">
<button class="btn btn-primary" id="copyButton">Copy Code</button>
</div>
</div>
</div>

<script>
// JavaScript for copy functionality
document.getElementById('copyButton').addEventListener('click', function() {
const codeBlock = document.getElementById('codeBlock').innerText;
navigator.clipboard.writeText(codeBlock).then(() => {
alert("Code copied to clipboard!");
}).catch(err => {
console.error("Failed to copy text: ", err);
});
});
</script>

</body>
</html>
`
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Grammar Checker and Translator</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 40px;
}
textarea {
width: 100%;
height: 150px;
padding: 10px;
font-size: 16px;
}
button {
padding: 10px 15px;
background-color: #4CAF50;
color: white;
border: none;
cursor: pointer;
font-size: 16px;
margin-right: 10px;
}
.result, .translation {
margin-top: 20px;
}
.error {
color: red;
}
select {
padding: 5px;
font-size: 16px;
}
</style>
</head>
<body>
<h1>Open-Source Grammar Checker and Translator</h1>
<p>Enter text in the box below and click "Check Grammar" or "Translate":</p>

<textarea id="text-input" placeholder="Type or paste your text here..."></textarea>
<br>
<button onclick="checkGrammar()">Check Grammar</button>
<select id="language-select">
<option value="en">English</option>
<option value="es">Spanish</option>
<option value="fr">French</option>
<option value="de">German</option>
<option value="uk">Ukrainian</option>
</select>
<button onclick="translateText()">Translate</button>

<div class="result" id="result"></div>
<div class="translation" id="translation"></div>

<script>
async function checkGrammar() {
const text = document.getElementById("text-input").value;
const resultDiv = document.getElementById("result");
resultDiv.innerHTML = "Checking grammar...";

try {
const response = await fetch("https://api.languagetool.org/v2/check", {
method: "POST",
headers: {
"Content-Type": "application/x-www-form-urlencoded"
},
body: new URLSearchParams({
text: text,
language: "en-US"
})
});

const result = await response.json();
displayResults(result.matches);
} catch (error) {
resultDiv.innerHTML = "Error checking grammar. Please try again.";
}
}

function displayResults(matches) {
const resultDiv = document.getElementById("result");
resultDiv.innerHTML = "";

if (matches.length === 0) {
resultDiv.innerHTML = "<p>No grammar errors found!</p>";
return;
}

matches.forEach(match => {
const error = document.createElement("p");
error.classList.add("error");
error.innerHTML = `Error: <strong>${match.message}</strong> at position ${match.offset}. Suggested correction: <strong>${match.replacements[0]?.value || "No suggestion"}</strong>`;
resultDiv.appendChild(error);
});
}

// Translation functionality using Open Source Library (LibreTranslate)
async function translateText() {
const text = document.getElementById("text-input").value;
const targetLanguage = document.getElementById("language-select").value;
const translationDiv = document.getElementById("translation");
translationDiv.innerHTML = "Translating...";

try {
const response = await fetch("https://libretranslate.de/translate", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
q: text,
source: "en", // You can detect the source language dynamically if needed
target: targetLanguage,
format: "text"
})
});

const result = await response.json();
translationDiv.innerHTML = <p>Translation: <strong>${result.translatedText}</strong></p>;
} catch (error) {
translationDiv.innerHTML = "Error translating text. Please try again.";
}
}
</script>
</body>
</html>
`
<div class="avatar-group -space-x-6 rtl:space-x-reverse">
<div class="avatar">
<div class="w-12">
<img src="https://img.daisyui.com/images/stock/photo-1534528741775-53994a69daeb.webp" />
</div>
</div>
<div class="avatar">
<div class="w-12">
<img src="https://img.daisyui.com/images/stock/photo-1534528741775-53994a69daeb.webp" />
</div>
</div>
<div class="avatar">
<div class="w-12">
<img src="https://img.daisyui.com/images/stock/photo-1534528741775-53994a69daeb.webp" />
</div>
</div>
<div class="avatar placeholder">
<div class="bg-neutral text-neutral-content w-12">
<span>+99</span>
</div>
</div>
</div>
HTML, XML, WML is ...... ?
Anonymous Quiz
43%
Programming language
29%
Script
29%
Markup language
Html codes
HTML, XML, WML is ...... ?
The meaning can change if you translate it into another language!
For example:
HTML, XML, not JML ...... ?
Which HTML element is used to define the structure of a webpage?
Anonymous Quiz
33%
<body>
0%
<header>
0%
<section>
67%
All of the above
🏆1
`
<div id="article-carousel" class="relative w-full" data-carousel="static">
<!-- Carousel wrapper -->
<div class="relative h-56 overflow-hidden rounded-lg md:h-96">
<!-- Item 1 -->
<div class="hidden duration-700 ease-in-out" data-carousel-item>
<div class="max-w-sm bg-white border border-gray-200 rounded-lg shadow">
<a href="#">
<img class="rounded-t-lg" src="https://via.placeholder.com/400x250" alt="Article Image 1" />
</a>
<div class="p-5">
<a href="#">
<h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900">Article Title 1</h5>
</a>
<p class="mb-3 font-normal text-gray-700">This is a short description of article 1...</p>
<a href="#" class="inline-flex items-center px-3 py-2 text-sm font-medium text-center text-white bg-blue-600 rounded-lg hover:bg-blue-700 focus:ring-4 focus:outline-none focus:ring-blue-300">
Read More
<svg aria-hidden="true" class="w-4 h-4 ml-2 -mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
</svg>
</a>
</div>
</div>
</div>

<!-- Item 2 -->
<div class="hidden duration-700 ease-in-out" data-carousel-item>
<div class="max-w-sm bg-white border border-gray-200 rounded-lg shadow">
<a href="#">
<img class="rounded-t-lg" src="https://via.placeholder.com/400x250" alt="Article Image 2" />
</a>
<div class="p-5">
<a href="#">
<h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900">Article Title 2</h5>
</a>
<p class="mb-3 font-normal text-gray-700">This is a short description of article 2...</p>
<a href="#" class="inline-flex items-center px-3 py-2 text-sm font-medium text-center text-white bg-blue-600 rounded-lg hover:bg-blue-700 focus:ring-4 focus:outline-none focus:ring-blue-300">
Read More
<svg aria-hidden="true" class="w-4 h-4 ml-2 -mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
</svg>
</a>
</div>
</div>
</div>

<!-- Item 3 -->
<div class="hidden duration-700 ease-in-out" data-carousel-item>
<div class="max-w-sm bg-white border border-gray-200 rounded-lg shadow">
<a href="#">
<img class="rounded-t-lg" src="https://via.placeholder.com/400x250" alt="Article Image 3" />
</a>
<div class="p-5">
<a href="#">
<h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900">Article Title 3</h5>
</a>
<p class="mb-3 font-normal text-gray-700">This is a short description of article 3...</p>
<a href="#" class="inline-flex items-center px-3 py-2 text-sm font-medium text-center text-white bg-blue-600 rounded-lg hover:bg-blue-700 focus:ring-4 focus:outline-none focus:ring-blue-300">
Read More
<svg aria-hidden="true" class="w-4 h-4 ml-2 -mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
</svg>
</a>
</div>
</div>
</div>
</div>

<!-- Slider controls -->
<button type="button" class="absolute top-0 left-0 z-30 flex items-center justify-center h-full px-4 cursor-pointer group focus:outline-none" data-carousel-prev>
<span class="inline-flex items-center justify-center w-8 h-8 rounded-full bg-white/30 group-hover:bg-white/50 group-focus:ring-4 group-focus:ring-white group-focus:outline-none">
👍1
<svg aria-hidden="true" class="w-6 h-6 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path>
</svg>
<span class="sr-only">Previous</span>
</span>
</button>
<button type="button" class="absolute top-0 right-0 z-30 flex items-center justify-center h-full px-4 cursor-pointer group focus:outline-none" data-carousel-next>
<span class="inline-flex items-center justify-center w-8 h-8 rounded-full bg-white/30 group-hover:bg-white/50 group-focus:ring-4 group-focus:ring-white group-focus:outline-none">
<svg aria-hidden="true" class="w-6 h-6 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
</svg>
<span class="sr-only">Next</span>
</span>
</button>
</div>
`
@Html_codee |this is pro code !
👍1