JSFiddle - React, Tailwind, and code Playground

by pythontraining12

HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Best Python Course in Delhi</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f2f2f2;
        }

        header {
            background-color: #333;
            color: #fff;
            padding: 20px;
            text-align: center;
        }

        .container {
            max-width: 800px;
            margin: 20px auto;
            background-color: #fff;
            padding: 20px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        h1 {
            font-size: 24px;
        }

        p {
            font-size: 16px;
        }

        a {
            color: #007bff;
            text-decoration: none;
        }

        a:hover {
            text-decoration: underline;
        }
    </style>
</head>
<body>
    <header>
        <h1>best Python Course in delhi</h1>
    </header>
    <div class="container">
        <h1> Best Online Python Certification Course</h1>
        <p>Technology is rapidly evolving. Global competition and productivity are increasing. Everything is digital and possible now. We offer machines for any type of job. We live in the twenty-first century, when robots can do all of our jobs. According to experts, technology will do all routine jobs in the future.
<br><br>
From sunrise to night, we rely on machines. Our meal is prepared using a microwave, a refrigerator, and other household appliances. We earn money by using laptops, desktop computers, and cellphones. In the medical industry, we employ various devices, such as MRI and CT scans, to ensure our health. To learn python, you can consider an <strong><a href="https://www.sithub.in/python-developer-course.php">Python developer course in delhi</a></strong> for students or beginners who want to learn Python in...

CSS

/* CSS for the blank box container */
.blank-box {
    background-color: #fff; /* Background color of the box */
    border: 1px solid #ccc; /* Border around the box */
    padding: 20px; /* Padding inside the box */
    width: 300px; /* Width of the box */
    margin: 0 auto; /* Center the box horizontally on the page */
    text-align: center; /* Center the text within the box */
}

/* CSS for the h1 heading inside the box */
.blank-box h1 {
    font-size: 24px; /* Font size of the heading */
    color: #333; /* Text color of the heading */
    margin: 0; /* Remove any default margin */
}

JavaScript

// Create a div element for the box
const box = document.createElement('div');
box.style.width = '200px'; // Set the width
box.style.height = '100px'; // Set the height
box.style.backgroundColor = '#f2f2f2'; // Set the background color
box.style.border = '1px solid #ccc'; // Set the border
box.style.padding = '20px'; // Set padding
box.style.textAlign = 'center'; // Set text alignment

/* // Create a button element
const button = document.createElement('button');
button.textContent = 'Click Me'; // Set button text
button.style.backgroundColor = '#007bff'; // Set button background color
button.style.color = '#fff'; // Set button text color
button.style.border = 'none'; // Remove button border
button.style.padding = '10px 20px'; // Set button padding
button.style.cursor = 'pointer'; // Change cursor on hover

// Append the button to the box
box.appendChild(button);

// Append the box to the body
document.body.appendChild(box);
 */
// Add an event listener to the button
/* button.addEventListener('click', function() {
    alert('Button Clicked!');
}); */