Introduction
Welcome to the advanced TinyMCE testing page.
This section includes various HTML elements for testing.
"This is a blockquote example for testing formatting."
Inline highlighted text and strikethrough text are also included.
HTML Code Example
Test Section
This is a test paragraph inside a div.
- List item 1
- List item 2
CSS Code Example
/* Container Styling */
.container {
width: 80%;
margin: auto;
padding: 20px;
border: 2px solid #ddd;
border-radius: 8px;
background: #f9f9f9;
}
/* Button Styling */
.button {
display: inline-block;
padding: 10px 20px;
background-color: #28A745;
color: white;
border-radius: 5px;
}
JavaScript Code Example
// Function to toggle dark mode
function toggleDarkMode() {
document.body.classList.toggle("dark-mode");
}
// Click event listener for a button
document.getElementById("toggleTheme").addEventListener("click", toggleDarkMode);
// Fetch API Example
async function fetchUserData() {
try {
let response = await fetch('https://jsonplaceholder.typicode.com/users');
let users = await response.json();
console.log("Fetched users:", users);
} catch (error) {
console.error("Error fetching data:", error);
}
}
Table Example
| Name | Age | Country |
|---|---|---|
| John Doe | 28 | USA |
| Maria Smith | 32 | Canada |