100 likes | 231 Vues
This document outlines common mistakes encountered in HTML coding within the context of CS170's Computer Applications in Business. It compares various flawed HTML segments, explaining issues related to syntax and proper structuring. Highlighting errors such as incorrectly placed tags, use of deprecated attributes, and improper event handling in JavaScript, this guide aims to help students grasp the essentials of beautiful and functional web design. Ensure adherence to assignment submissions for academic integrity.
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