HTML 实例:
<!DOCTYPE html>
<html>
<title>HTML 教程</title>
<body>
<h1>这是一个标题</h1>
<p>这是一个段落。</p>
</body>
</html>
亲自试一试
CSS 实例:
body {
background-color: lightblue;
}
h1 {
color: white;
text-align: center;
}
亲自试一试
JavaScript 实例:
<button onclick="myFunction()">Click Me!</button>
<script>
function myFunction() {
let x = document.getElementById("demo");
x.style.fontSize = "25px";
x.style.color = "red";
}
</script>
亲自试一试
Python 实例:
if 5 > 2:
print("Five is greater than two!")
亲自试一试
SQL 实例:
SELECT * FROM Customers
WHERE Country='Mexico';
亲自试一试
颜色选择器
W3Schools 经典颜色选择器