CSS
用于样式化网页的语言
学习CSS CSS参考手册
body {
background-color: #d0e4fe;
}
h1 {
color: orange;
text-align: center;
}
p {
font-family: "Times New Roman";
font-size: 20px;
}
亲自尝试
JavaScript
用于编写网页程序的语言
学习JS JS参考手册// 点击按钮可以更改此段落的颜色
function myFunction() {
var x;
x = document.getElementById("demo");
x.style.fontSize = "25px";
x.style.color = "red";
}
亲自尝试