1 / 10

CS170 Computer Applications in Bussiness

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>

jada
Download Presentation

CS170 Computer Applications in Bussiness

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS170 Computer Applications in Bussiness Recitation Sec 17 & 18 09/30/09

  2. Common Mistakes in HTML <html> <head> <title>Welcome to my page!</title> </head> <body> Hello World! </body> </html> It’s not beautiful!

  3. Beautiful Code should be at least like <html> <head> <title>Welcome to my page!</title> </head> <body> Hello World! </body> </html>

  4. What is wrong with this? <html> <head> <title><h1>Welcome to my page!</h1></title> </head> <body> Hello World! </body> </html>

  5. 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>

  6. 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

  7. Basic Logic • Propositions: True or False • Conjunction ^ && • Disjunction V || • Negation ¬ ! • ¬true = false • ¬false = true • Conditional ->

  8. Algorithms and Flow Chart Start Present ID card Age>=18 Eligible in Atlantic City Go home Stop

  9. 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>

  10. 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

More Related