Inline and External Javascript

Duration: 2 min

This video lesson is available to enrolled students.

Return to /learn/UP-POLICE-COMPUTER-OPERATOR/emerging-technologies/javascript-basics/inline-and-external-javascript-linking-behavior-to-web-pages/asset-inline-and-external-javascript after enrolling

Inside: a video lesson and guided study material.

Module outline

  1. About the course: About the Course
  2. General Knowledge: Polity, Physics, Biology, State Wise GK, Chemistry, History, Geography, GK- Current Affairs, Indian Economy, Static General Knowledge, Environment, Evolution of Indian Banking (Banking & Financial Awareness)
  3. Mental Aptitude and Reasoning: Ratio and Proportion (Ratios), Divisibility Rules, Data Interpretation, Permutation and Combination, Number System, Sequence and Series (Series), Speed Time and Distance, Series (Number and Letter Series) (Numerical Relations and Reasoning), Coding Decoding, Data Sufficiency, Non Verbal Reasoning (Spatial Aptitude) (Spatial Reasoning) (Visual Reasoning), Vocabulary, Profit and Loss, Arithmetic, Mental Ability, Percentage, Algebra, Mensuration and Geometry, Age Problems, Clock, Calendar, Verbal Analogy (Word Based Analogy), Deductive and Inductive Reasoning (Logical Deduction and Induction) (Prepositional Reasoning), Analogy, Analytical Reasoning (Counting Figures Reasoning), Puzzle Solving (Puzzles), Selection Decision Table (Decision Making), Cubes & Dices, Blood Relations, Venn Diagram, Logical Sequence Of Words, Inequality, Directions (Direction Test), Data Arrangement, Facts, Inference and Judgements, Syllogisms, Seating Arrangements, Ranking, Order and Sequence
  4. CS | Computer Fundamentals: Basics of COA, Number System, Number Representation, C Fundamentals, Algorithm Analysis, Input Output Organisation
  5. CS | Database Management System: Basics of DBMS, ER Diagram, Relational Model & Functional Dependencies, Keys & Integrity Constraints, SQL
  6. CS | Workplace productivity Tools: MS Office Applications, Keyboard Shortcuts
  7. CS | Computer Networks: Introduction to CN, Data Communication, Data Link Layer - Ethernet, Net Layer: IPv4 & Proto, Net Layer: IP Addressing, Transport Layer Services, Application Layer, Hardware Basics, Network Security
  8. CS | The Internet: Website, Browser & Services, Internet Fundamentals, Web Design & Development, Web Publishing & Hosting, Server Side & Security, Emerging Technologies
  9. CS | Emerging Technologies: Artificial Intelligence, Emerging Tech Trends, Introduction to OS, Windows OS, Linux OS, Unix OS, JavaScript-Basics
  10. CS | Boolean algebra: Digital Systems & Boolean Basics, Boolean Expression, Boolean Minimization, Logic Gates & Hardware
  11. CS | Data Structures: Introduction to DS, Array, Stack, Queue
  12. CS | Cryptography: Society, Law & Ethics, Cyber Threats and Malware Attacks, Role of Internet and Web Services, Security in Mobile and Wireless Computing, Electronic Data Interchange and E-Commerce, Physical Security and Cryptography Basics, Intrusion Detection Systems (IDS), Cyber Safety and Security
  13. UP Police Previous Year Papers:
  14. UP Police Full Mock Tests:
AI summary & chapters

AI Summary

An AI-generated summary of this video lecture.

The video presents a lecture on integrating JavaScript into HTML documents, covering two primary methods. The first method, inline JavaScript, is demonstrated by showing the use of the <script> element within an HTML document, with a code snippet illustrating the basic syntax. The second method, external JavaScript, is introduced as a best practice for larger projects, where JavaScript code is saved in a separate file, such as script.js, and linked to the HTML document. The lecture also briefly touches on other HTML elements, including the <img> tag for images and the <a> tag for hyperlinks, providing their basic syntax and attributes.

Chapters

  1. 0:00 – 1:43 00:00-01:43

    The video begins with a discussion on including JavaScript in an HTML document using the <script> element. The instructor shows a code snippet for inline JavaScript, which is placed directly within the HTML file between <script> and </script> tags. The example includes a simple alert function. The instructor then transitions to the concept of external JavaScript, explaining that it is a good practice for larger projects. The text on the screen states, 'Separating JavaScript code into an external file is a good practice for larger projects. Save the JavaScript code in a separate file, for example, script.js.' The instructor also briefly mentions other HTML elements, such as the <img> tag for images and the <a> tag for hyperlinks, providing their basic syntax and attributes.

The lecture systematically introduces the two main ways to incorporate JavaScript into a web page: inline and external. It emphasizes that while inline JavaScript is suitable for small scripts, external JavaScript is a best practice for larger, more complex applications, promoting code organization and reusability. The lesson also provides a brief overview of other fundamental HTML elements, reinforcing the connection between HTML and JavaScript in web development.

Loading lesson…