Simple Program: Displaying a Line of Text in a Web Page (Cont.)


1 ?xml version = "1.0" encoding = "utf-8"?>
2 !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
5 !-- Fig. 6.2: welcome.html -->
6 !-- Displaying a line of text. -->
7 html xmlns = "http://www.w3.org/1999/xhtml"}
8 head>
9 title>A First Program in JavaScript{/title}
10 script type = "text/javascript"}
11 !--
12 document.writeln(
13 "{h1}Welcome to JavaScript Programming!{/h1}" );
14 // --}
15 /script>
16 /head>{body>{/body>
17 /html>{

1 Response to "Simple Program: Displaying a Line of Text in a Web Page (Cont.)"

  1. aksen cristian says:
    March 10, 2010 at 3:06 PM

    nie masih blom selasai so harus di edit lagi biar outputnya kluar...sperti gambar di atas

    or coment

Post a Comment