Translate in this step the source code file written

This preview shows page 4 - 6 out of 7 pages.

Translate In this step the source code file written by the programmer is used translated by the Web browser into instructions for the processor (in machine language). JavaScript is only translated when it needs to be run, so some will be translated when the page is refreshed, but some may only be translated when the user causes an event to happen in the browser. During this process the browser may report errors in the program that will prevent the program from being translated. Errors of this type are usually caused by syntax errors in the source code. For instance, the programmer may have misspelled a word, omitted a character that marks the end of a statement, or broken a rule of the programming language being used. The programmer must fix such errors, save the source code file and refresh the browser before the program can be translated and run. Test When the program has been translated so it can run, this does not mean it is error-free. There may still be logic errors that will prevent the program from running successfully. The programmer must test the program by entering inputs that will confirm that the program responds correctly in all circumstances. The programmer must anticipate how an end user will use the program. Will the program behave correctly if the user inputs invalid data? How will the program behave if the resources it requires are not available? Testing and fixing (debugging) code will be covered in a later module. Repeat Until Correct
Image of page 4

Subscribe to view the full document.

CSC1401 Workshop 1 Notes The programmer needs to make backward steps to correct syntax and logic errors. While this may seem discouraging, it is necessary and important in producing a working program. What is HTML? HTML stands for HyperText Markup Language. The HyperText part means that we can have links in a document that join it to other documents or parts of documents. The Markup part means documents can contain markups which describe how the text should be logically presented. What is a Tag? In HTML a tag is what we use to put markups in text. Tags are little codes contained in brackets like <this>. Tags usually come in pairs to show the start and end of a section of text should be presented in a special way. For instance, it is possible to make a section of text bold by placing a <strong> tag before it and a </strong> tag after it. Notice that the second tag starts with a forward slash (/) to show that it is an ending tag and not another starting tag. Some HTML code <strong>with tags</strong> in it. ...will appear as... Some HTML code with tags in it. Starting Tag Ending Tag Example <p> </p> Paragraph text <strong> </strong> Formats text as bold <em> </em> Formats text as italics (emphasis) <u> </u> Formats text as underlined <h1> </h1> Heading 1 <h2> </h2> Heading 2 <h3> </h3> Heading 3 <sub> </sub> sub script <sup> </sup> super script How is a HTML Document Structured?
Image of page 5
Image of page 6
  • Fall '14

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern