About Us Generator for Website

HTML code of About Us Generator for Website

<!DOCTYPE html>

<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title>About Us Generator</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
}
.container {
max-width: 600px;
margin: 50px auto;
background-color: #fff;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
label {
font-weight: bold;
}
textarea {
width: 100%;
height: 200px;
margin-top: 10px;
}
button {
padding: 10px 20px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background-color: #0056b3;
}
.copy-btn {
display: block;
margin-top: 10px;
padding: 10px 20px;
background-color: #28a745;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
}
.copy-btn:hover {
background-color: #218838;
}
</style>
</head>
<body>

<div class=”container”>
<h2>About Us Generator</h2>
<form id=”aboutUsForm”>
<div>
<label for=”websiteName”>Website Name:</label>
<input type=”text” id=”websiteName” required>
</div>
<div>
<label for=”websiteType”>Website Type:</label>
<input type=”text” id=”websiteType” required>
</div>
<div>
<label for=”websiteSpeciality”>Website Speciality:</label>
<input type=”text” id=”websiteSpeciality” required>
</div>
<button type=”button” onclick=”generateAboutUs()”>Generate</button>
</form>
<textarea id=”generatedHtml” readonly></textarea>
<button class=”copy-btn” onclick=”copyToClipboard()”>Copy</button>
</div>

<script>
function generateAboutUs() {
const websiteName = document.getElementById(‘websiteName’).value;
const websiteType = document.getElementById(‘websiteType’).value;
const websiteSpeciality = document.getElementById(‘websiteSpeciality’).value;

const aboutUsHtml = `
<div style=”font-family: Sans-serif ;background-color:rgb(248,249,250);padding:18px;color:black”><br><h2 style=”font-family: Sans-serif ;color:black;”>About Us !</h2>

<h2 style=”font-family: Sans-serif ;text-align: center;”>Welcome To ${websiteName}</h2>

<p><b>${websiteName} </b> is a Professional <b>${websiteType}</b> Platform. Here we will only provide you with interesting content that you will enjoy very much. We are committed to providing you the best of <b>${websiteType}</b>, with a focus on reliability and <b>${websiteSpeciality}</b>. we strive to turn our passion for <b>${websiteType}</b> into a thriving website. We hope you enjoy our <b>${websiteType}</b> as much as we enjoy giving them to you.</p>

<p>I will keep on posting such valuable anf knowledgeable information on my Website for all of you. Your love and support matters a lot.</p>
<p style=”font-weight: bold; text-align: center;”>Thank you For Visiting Our Site<br><br>
<span style=”color: blue; font-size: 16px; font-weight: bold; text-align: center;”>Have a great day !</span></p></div><br><br>
`;

document.getElementById(‘generatedHtml’).value = aboutUsHtml;
}

function copyToClipboard() {
const textarea = document.getElementById(‘generatedHtml’);
textarea.select();
document.execCommand(‘copy’);
alert(‘HTML copied to clipboard!’);
}
</script>

</body>
</html>

Leave a Comment