SCSD
SCSD
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
min-height: 100vh;
margin: 0;
.header {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1rem;
font-size: 1.5rem;
font-weight: bold;
color: #4a5568;
.header::before {
margin-right: 0.5rem;
.container {
background-color: #f0f0f5;
padding: 2rem;
border-radius: 0.5rem;
width: 24rem;
text-align: center;
.form-group {
margin-bottom: 1rem;
text-align: left;
.form-group label {
display: block;
color: #4a5568;
margin-bottom: 0.5rem;
.form-group select {
width: 100%;
padding: 0.5rem;
border-radius: 0.25rem;
.apply-button {
width: 100%;
background-color: #6b46c1;
color: white;
padding: 0.5rem;
border: none;
border-radius: 0.25rem;
cursor: pointer;
}
.sample-paragraph {
margin-top: 1rem;
padding: 1rem;
background-color: #c4b5fd;
color: black;
text-align: center;
border-radius: 0.25rem;
font-weight: bold;
</style>
</head>
<body>
<div class="container">
<form id="stylerForm">
<div class="form-group">
<select id="textColor">
<option value="yellow">Yellow</option>
<option value="red">Red</option>
<option value="green">Green</option>
<option value="blue">Blue</option>
<option value="purple">Purple</option>
<option value="orange">Orange</option>
<option value="pink">Pink</option>
<option value="cyan">Cyan</option>
</select>
</div>
<div class="form-group">
<select id="fontSize">
<option value="small">Small</option>
<option value="medium">Medium</option>
<option value="large">Large</option>
</select>
</div>
<div class="form-group">
<select id="bgColor">
</select>
</div>
</form>
</div>
<script>
function applyStyles() {
paragraph.style.color = textColor;
paragraph.style.fontSize = fontSize;
paragraph.style.backgroundColor = bgColor;
}
</script>