100 likes | 219 Views
CS170 Computer Applications in Bussiness. Recitation Sec 17 & 18 09/30/09. Common Mistakes in HTML. <html> <head> <title>Welcome to my page !</title> </head> <body> Hello World! </body > </html>. It’s not beautiful!. Beautiful Code should be at least like. <html> < head>
E N D
CS170 Computer Applications in Bussiness Recitation Sec 17 & 18 09/30/09
Common Mistakes in HTML <html> <head> <title>Welcome to my page!</title> </head> <body> Hello World! </body> </html> It’s not beautiful!
Beautiful Code should be at least like <html> <head> <title>Welcome to my page!</title> </head> <body> Hello World! </body> </html>
What is wrong with this? <html> <head> <title><h1>Welcome to my page!</h1></title> </head> <body> Hello World! </body> </html>
What is wrong with this? <html> <head> <title>Welcome to my page!</title> </head> <body bgcolor = red> <body background = “bgimg.jpg”> <br>Hello World!</br> </body> </html>
Basic Logic • Propositions: True or False • Conjunction ^ && • true ^ true = true • true ^ false = false • false ^ true = false • false ^ false = false • Disjunction V || • true ^ true = true • true ^ false = true • false ^ true = true • false ^ false = false
Basic Logic • Propositions: True or False • Conjunction ^ && • Disjunction V || • Negation ¬ ! • ¬true = false • ¬false = true • Conditional ->
Algorithms and Flow Chart Start Present ID card Age>=18 Eligible in Atlantic City Go home Stop
Javascript <html> <head> <title>Hello Javascript</title> </head> <body> <h1 align="center">Hello Javascript!!!</h1> <script type="text/javascript"> alert("Welcome to Javascript!!!"); var name = prompt("What's your name?", "afdf"); document.write("<h2>Have fun, " + name + "</h2>"); document.write(Date()); doxument.write(); </script> </body> </html>
Next Assignment-Logic & Algrithms • html file should be submitted as an attachment andNOTuploaded to Eden • None of the future submissions should be made public in your Eden space constitutes a violation of academic integrity ZERO