Forwarded from WeWantYou
This media is not supported in the widget
VIEW IN TELEGRAM
Very important β
https://t.me/boost/html_codee πππ
https://t.me/boost/html_codee πππ
Telegram
Html code β§
Boost this channel to help it unlock additional features.
In HTML, you can create tables using the
1.
2.
3.
4.
Here's a basic example of how to create a simple table with two rows and two columns:
You can further customize tables by using attributes like
If you have specific requirements or need assistance with a particular aspect of creating HTML tables, feel free to ask for more details!
<table>, <tr>, <th>, and <td> elements. Here are some essential commands and elements to create tables in HTML:1.
<table>: This is the main element used to define a table.2.
<tr>: This element defines a row in the table.3.
<th>: This element defines a header cell in a table. Header cells are typically bold and centered.4.
<td>: This element defines a standard cell in a table.Here's a basic example of how to create a simple table with two rows and two columns:
<table>
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
<tr>
<td>Row 1, Cell 1</td>
<td>Row 1, Cell 2</td>
</tr>
<tr>
<td>Row 2, Cell 1</td>
<td>Row 2, Cell 2</td>
</tr>
</table>
You can further customize tables by using attributes like
colspan, rowspan, border, align, and more within the table elements to control the structure and appearance of the table.If you have specific requirements or need assistance with a particular aspect of creating HTML tables, feel free to ask for more details!
1. <div>: The <div> element is a versatile container used to group and style elements in HTML.
2. <p>: The <p> element defines a paragraph of text.
3. <a>: The <a> element creates hyperlinks to other web pages, files, locations within the same page, or email addresses.
4. <img>: The <img> element embeds images in an HTML document.
5. <ul>, <ol>, <li>: These elements create unordered lists (<ul>), ordered lists (<ol>), and list items (<li>), respectively.
6. <form>, <input>, <button>: These elements are essential for creating forms and input fields for user interaction on websites.
7. <span>: The <span> element is an inline container that allows you to apply styles or scripts to a specific section of text.
8. <header>, <footer>, <nav>, <section>, <article>: These are semantic HTML5 elements for structuring the layout of a webpage.
9. Attributes: HTML elements can have various attributes like id, class, href, src, alt, style, etc., which provide additional information or control over the elements.
β’β’β’β’β’β’β’β’β’ββββββ’β’β’β’β’β’β’β’β’β’
Join our channel @Html_codee
2. <p>: The <p> element defines a paragraph of text.
3. <a>: The <a> element creates hyperlinks to other web pages, files, locations within the same page, or email addresses.
4. <img>: The <img> element embeds images in an HTML document.
5. <ul>, <ol>, <li>: These elements create unordered lists (<ul>), ordered lists (<ol>), and list items (<li>), respectively.
6. <form>, <input>, <button>: These elements are essential for creating forms and input fields for user interaction on websites.
7. <span>: The <span> element is an inline container that allows you to apply styles or scripts to a specific section of text.
8. <header>, <footer>, <nav>, <section>, <article>: These are semantic HTML5 elements for structuring the layout of a webpage.
9. Attributes: HTML elements can have various attributes like id, class, href, src, alt, style, etc., which provide additional information or control over the elements.
β’β’β’β’β’β’β’β’β’ββββββ’β’β’β’β’β’β’β’β’β’
Join our channel @Html_codee
/* HTML: <div class="loader"></div> */
.loader {
height: 60px;
aspect-ratio: 1;
position: relative;
}
.loader::before,
.loader::after {
content: "";
position: absolute;
inset: 0;
border-radius: 50%;
transform-origin: bottom;
}
.loader::after {
background:
radial-gradient(at 75% 15%,#fffb,#0000 35%),
radial-gradient(at 80% 40%,#0000,#0008),
radial-gradient(circle 5px,#fff 94%,#0000),
radial-gradient(circle 10px,#000 94%,#0000),
linear-gradient(#F93318 0 0) top /100% calc(50% - 5px),
linear-gradient(#fff 0 0) bottom/100% calc(50% - 5px)
#000;
background-repeat: no-repeat;
animation: l20 1s infinite cubic-bezier(0.5,120,0.5,-120);
}
.loader::before {
background:#ddd;
filter: blur(8px);
transform: scaleY(0.4) translate(-13px, 0px);
}
@keyframes l20 {
30%,70% {transform:rotate(0deg)}
49.99% {transform:rotate(0.2deg)}
50% {transform:rotate(-0.2deg)}
}
/* HTML: <div class="loader"></div> */
.loader {
width: 60px;
height: 16px;
display: grid;
}
.loader:before,
.loader:after {
content: "";
grid-area: 1/1;
--c:no-repeat linear-gradient(#046D8B 0 0);
background: var(--c), var(--c), var(--c);
animation: l16-1 1.5s infinite linear, l16-2 1.5s infinite linear;
transform: scale(var(--s,1)) translate(3px,-3px);
}
.loader:after {
--s:-1;
}
@keyframes l16-1 {
0%,
3% {background-size: 0 4px,4px 0 ,0 4px}
16.67%{background-size: 100% 4px,4px 0 ,0 4px}
33.33%{background-size: 100% 4px,4px 100%,0 4px}
46%,
54% {background-size: 100% 4px,4px 100%,100% 4px}
66.67%{background-size: 0 4px,4px 100%,100% 4px}
83.33%{background-size: 0 4px,4px 0 ,100% 4px}
96%,
100% {background-size: 0 4px,4px 0 ,0 4px}
}
@keyframes l16-2 {
0%,49.9%{background-position: 0 0,100% 0 ,100% 100%}
50%,100%{background-position: 100% 0,100% 100%,0 100%}
}
/* HTML: <div class="loader"></div> */
.loader {
width: 74px;
height: calc(27px*0.866 + 6px);
display: grid;
}
.loader:before,
.loader:after {
content: "";
grid-area: 1/1;
background:#FD135A;
--c1:conic-gradient(from 150deg at top ,#000 60deg,#0000 0);
--c2:conic-gradient(from -30deg at bottom,#000 60deg,#0000 0);
--s:27px calc(27px*0.866);
clip-path: polygon(17px 0,calc(100% - 17px) 0,100% 100%,0 100%);
-webkit-mask:
var(--c1) left 6px top 4px,
var(--c2) center,
var(--c1) right 6px top 4px,
linear-gradient(#000 0 0);
-webkit-mask-composite:xor;
mask-composite:exclude;
-webkit-mask-repeat:no-repeat;
animation: l6 2s infinite both;
}
.loader:after {
transform: rotate(180deg);
transform-origin: 50% 99%;
animation-delay: 0.5s;
}
@keyframes l6 {
0% {-webkit-mask-size:0 0 ,0 0 ,0 0 ,auto}
8.33% {-webkit-mask-size:var(--s),0 0 ,0 0 ,auto}
16.67%{-webkit-mask-size:var(--s),var(--s),0 0 ,auto}
25%,
50% {-webkit-mask-size:var(--s),var(--s),var(--s),auto}
58.33%{-webkit-mask-size:0 0 ,var(--s),var(--s),auto}
66.67%{-webkit-mask-size:0 0 ,0 0 ,var(--s),auto}
75%,
100% {-webkit-mask-size:0 0 ,0 0 ,0 0 ,auto}
}
π1
Europa Clipper Begins Journey to Jupiterβs Icy Moon
https://www.nasa.gov/image-detail/afs-8-101-904/
A SpaceX Falcon Heavy rocket carrying NASAβs Europa Clipper spacecraft lifts off from Launch Complex 39A at NASAβs Kennedy Space Center in Florida at 12:06 p.m. EDT on Monday, Oct. 14, 2024. After launch, the spacecraft plans to fly by Mars in February 2025, then back by Earth in December 2026, using the gravity of each planet to increase its momentum. With help of these βgravity assists,β Europa Clipper will achieve the velocity needed to reach Jupiter in April 2030.
https://www.nasa.gov/image-detail/afs-8-101-904/
A SpaceX Falcon Heavy rocket carrying NASAβs Europa Clipper spacecraft lifts off from Launch Complex 39A at NASAβs Kennedy Space Center in Florida at 12:06 p.m. EDT on Monday, Oct. 14, 2024. After launch, the spacecraft plans to fly by Mars in February 2025, then back by Earth in December 2026, using the gravity of each planet to increase its momentum. With help of these βgravity assists,β Europa Clipper will achieve the velocity needed to reach Jupiter in April 2030.
<!DOCTYPE html>
<head>
<title> Flag Dots Animation</title>
<style>
body, html {
margin: 0;
padding: 0;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
background-color: #000;
overflow: hidden;
}
.container {
position: relative;
width: 80vmin;
height: 50vmin;
}
.dot {
position: absolute;
width: 10px;
height: 10px;
border-radius: 50%;
background-color: white;
animation: blink 2s infinite alternate;
opacity: 0;
}
@keyframes blink {
0%, 100% {
opacity: 0;
transform: scale(0.5);
}
50% {
opacity: 1;
transform: scale(1);
}
}
</style>
</head>
<body>
<div class="container" id="flag-container"></div>
<script>
const flagContainer = document.getElementById('flag-container');
const colors = ['#3C9CD9', '#FFFFFF', '#008000', '#FFDD00'];
const flagPattern = [
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], // Blue stripe
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], // Blue stripe
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], // Blue stripe
[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], // White stripe
[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], // White stripe
[3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3], // Green stripe
[3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3], // Green stripe
[3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3], // Green stripe
];
const rows = flagPattern.length;
const cols = flagPattern[0].length;
const dotSize = 10;
const gap = 20;
for (let row = 0; row < rows; row++) {
for (let col = 0; col < cols; col++) {
const dot = document.createElement('div');
dot.className = 'dot';
dot.style.backgroundColor = colors[flagPattern[row][col] - 1];
dot.style.top = `${row * gap}px`;
dot.style.left = `${col * gap}px`;
// Delayed animation for a drone-like effect
dot.style.animationDelay = `${(row + col) * 0.1}s`;
flagContainer.appendChild(dot);
}
}
</script>
</body>
</html>
Guess this flag, say on comment
Html codes
Very important β https://t.me/boost/html_codee πππ
Thanks ππππππππππ
β€1
What does the RGB values (99, 99, 99) represent in the code?
Anonymous Quiz
50%
Red, green, blue
50%
Specific shade of gray
0%
Hue, saturation, lightness
Which of these tags does not need a closing tag?
Anonymous Quiz
8%
<li>
31%
<html>
38%
<br>
23%
<script>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Custom Translate Element</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f1f1f1;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
translate-box {
display: block;
font-size: 18px;
color: #333;
padding: 10px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
width: 300px;
text-align: center;
}
p {
margin: 0;
font-weight: bold;
}
.loading {
font-style: italic;
color: #999;
}
</style>
</head>
<body>
<!-- Custom Translate Element -->
<translate-box to="en">Salom</translate-box>
<script>
class TranslateBox extends HTMLElement {
constructor() {
super();
this.attachShadow({ mode: "open" });
this.translateText = this.innerText;
this.targetLanguage = this.getAttribute("to") || "en";
this.render();
}
static get observedAttributes() {
return ["to"];
}
// Re-render when the "to" attribute changes
attributeChangedCallback(name, oldValue, newValue) {
if (name === "to" && oldValue !== newValue) {
this.targetLanguage = newValue;
this.render();
}
}
async render() {
this.shadowRoot.innerHTML = `
<p class="loading">Translating...</p>
`;
const translatedText = await this.fetchTranslation(this.translateText, this.targetLanguage);
this.shadowRoot.innerHTML = `
<p>${translatedText}</p>
`;
}
async fetchTranslation(text, targetLanguage) {
const API_URL = "https://translate.googleapis.com/translate_a/single";
const payload = {
client: "gtx",
dt: "t",
sl: "auto", // Detects the source language automatically
tl: targetLanguage,
q: text
};
try {
const response = await fetch(`${API_URL}?client=${payload.client}&dt=${payload.dt}&sl=${payload.sl}&tl=${payload.tl}&q=${encodeURIComponent(payload.q)}`, {
method: "GET"
});
const result = await response.json();
return result[0][0][0]; // Returns the translated text
} catch (error) {
console.error("Translation failed:", error);
return "Translation error.";
}
}
}
// Register the custom element
customElements.define("translate-box", TranslateBox);
</script>
</body>
</html>