CSS
用於美化網頁的語言
學習 CSS CSS 參考
body {
background-color: #d0e4fe;
}
h1 {
color: orange;
text-align: center;
}
p {
font-family: "Times New Roman";
font-size: 20px;
}
親自嘗試
JS
用於程式設計網頁的語言
學習 JS JS 參考// 點選按鈕更改此段落的顏色
function myFunction() {
var x;
x = document.getElementById("demo");
x.style.fontSize = "25px";
x.style.color = "red";
}
親自嘗試