* {
margin
:
0
;
padding
}
#h
{
text-align
center
#d
width
900px
10px
auto
button {
100px
height
30px
border-radius:
3px
cursor
pointer
#b
border
1px
solid
#F00
1
#0F0
2
#00F
function
funRed() {
document.getElementById(
'h0'
).style.color =
'#F00'
funGreen() {
'#0F0'
funBlue() {
'#00F'
window.onload =
() {
'b0'
).onclick = funRed;
'b1'
).onclick = funGreen;
'b2'
).onclick = funBlue;
<!DOCTYPE html>
<
html
>
head
meta
charset
=
"utf-8"
/>
title
>New Page</
link
href
"css/style.css"
rel
"stylesheet"
script
src
"js/script.js"
></
</
body
br
h1
id
"h0"
>Hello World!</
div
"d0"
button
"b0"
>Red</
"b1"
>Green</
"b2"
>Blue</