SEO Audit Tool
body {
font-family: Arial, sans-serif;
margin: 0;
}
header {
background-color: #1a1a1a;
color: white;
padding: 1em;
}
main {
padding: 1em;
}
section {
margin-bottom: 2em;
}
h1, h2 {
margin-top: 0;
}
label {
display: block;
margin-bottom: 0.5em;
}
input[type="text"] {
padding: 0.5em;
border-radius: 5px;
border: none;
width: 100%;
margin-bottom: 1em;
}
button {
padding: 0.5em;
border-radius: 5px;
border: none;
background-color: #1a1a1a;
color: white;
cursor: pointer;
}
button:hover {
background-color: #333333;
}
#website-info, #seo-analysis {
margin-top: 1em;
padding: 1em;
border-radius: 5px;
background-color: #f2f2f2;
}
footer {
background-color: #1a1a1a;
color: white;
text-align: center;
padding: 1em;
}
function getWebsiteInfo() {
const url = document.getElementById("url").value;
fetch(`https://api.urlmeta.org/?url=${url}`)
.then(response => response.json())
.then(data => {
const websiteInfo = `
${data.meta.title}
Meta Description: ${data.meta.description}
Canonical URL: ${data.meta.canonical}
OG Title: ${data.meta.ogTitle}
OG Description: ${data.meta.ogDescription}
OG Image: ${data.meta.ogImage.url}
Twitter