html
html
1
2
3
4
5
6
7
8
9
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
</body>
</html>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
body {
background: linear-gradient(to right, SkyBlue, DeepSkyBlue, Black);
}
#hi{
color: #dd0000;
text-shadow: 3px 2px 4px #101010;
}
#idk{
text-align: center;
color: #00aa00;
text-shadow: 3px 2px 4px #101010;
}
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
var x = prompt("Enter a sentence:").split(" ");
var a = 0;
document.write("<h1 id = 'idk'>Splitting Sentences! :D</h1>")
while(a < x.length){
if(x[a] == ""){
x.splice(a,1);
a = 0;
}
else{
a += 1;
}
}
for(var y=0;y<x.length;y++){
var z = y + 1;
document.write("<div id = 'hi'>" + "Word " + z + ": " + x[y] +"</div>");
}
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run