Code Snippet Exxamples
HTML
My Webpage
Hello, World!
This is a simple HTML webpage.
JS
// Simple JavaScript function to add two numbers
function addNumbers(a, b) {
return a + b;
}
// Example usage
console.log(addNumbers(5, 3)); // Output: 8CSS
/* Simple CSS styling for a paragraph */
p {
color: blue;
font-size: 18px;
font-family: Arial, sans-serif;
}PY
# Simple Python function to calculate the area of a rectangle
def calculate_area(length, width):
return length * width
# Example usage
print(calculate_area(5, 3)) # Output: 15Plain Text
This is a simple plain text document.
It doesn't contain any markup or formatting.