Introduction to web programming with JavaScriptT11 Sessions
This document provides an overview of web programming with JavaScript. It discusses topics like:
- HTML and CSS which are used to structure and style web pages
- How browsers interpret HTML, CSS, and JavaScript to display web pages
- What backend and frontend development involve
- Common JavaScript concepts like variables, operators, functions, and events
- Tools that can be used for web development like text editors, browsers, and version control software
- Resources for learning more about JavaScript and web programming
Your code sucks, let's fix it! - php|tek13Rafael Dohms
The document discusses improving code quality through techniques like Object Calisthenics and readability tips. Object Calisthenics are a set of simple exercises to help internalize object-oriented design principles and improve code quality. Some examples of Object Calisthenics rules discussed include having only one indentation level per method and removing duplicated logic. The document also provides an example of refactoring code based on these principles to improve readability, reuseability and performance.
The document provides information about jQuery selectors and filters. It discusses using CSS selectors like ID, class, and tag name to select elements. It also covers jQuery filters like :first, :last, :even, :odd to select elements based on their position. Additionally, it mentions content filters like :empty and :contains to select elements based on their content, and attribute filters like [attribute] and [attribute=value] to select elements based on their attributes. Examples are given to demonstrate applying basic, content, and attribute filters to style and modify elements on a student list table.
This document discusses data validation models and different approaches to validation. It covers syntactic validation to check data type and format, as well as semantic validation to check if data makes sense. Various PHP libraries and frameworks are benchmarked for validation performance. Deferred validation using argument resolvers is recommended to ensure objects are always valid. Domain models should encapsulate semantic validation rules. Validation should occur as early as possible to catch errors quickly.
JavaScript is a scripting language used primarily for client-side web development. It is based on the ECMAScript standard but browsers support additional objects like Window and DOM objects. JavaScript can be used to create dynamic and interactive effects on web pages like menus, alerts, and updating content without reloading. It is commonly used for form validation, AJAX applications, and other interactive features. The document provides examples of basic JavaScript concepts like variables, data types, operators, and control structures and how to embed scripts in HTML.
PHP provides several functions for sorting arrays, including sort(), asort(), rsort(), and arsort(). sort() arranges elements in ascending order, asort() maintains index positions during sorting, rsort() sorts in descending order, and arsort() maintains indexes during reverse sorting. These functions allow rearranging array elements alphabetically or numerically into a specified order for easier analysis.
The document discusses various techniques for securing web applications including input filtering, output escaping, preventing SQL injection and cross-site scripting attacks, and protecting against session hijacking. It provides examples of how to filter and sanitize user input, escape output before sending to remote systems, and regenerate session IDs to prevent session fixation attacks.
Full-day tutorial for the dutch php conference 2011 giving a very quick tour around all the various areas of the ZCE syllabus and some tips on the exam styles
Web Typography is exploding all over the web, we made a jQuery plugin to give you control over those new fonts. We also made this powerpoint for a talk on the same subject.
This document summarizes a presentation about writing secure Drupal code. It discusses common vulnerabilities like cross-site scripting, access bypass, and SQL injection. It provides examples of secure and vulnerable code and recommends best practices to prevent vulnerabilities, including input filtering, access control, and automated testing. It also discusses security improvements in Drupal 8 and learning from security advisories.
This document discusses PHPSpec, a behavior-driven development (BDD) framework for PHP. It begins by explaining what PHPSpec is and how it implements BDD through a domain-specific language (DSL) based on RSpec. The document then covers how PHPSpec specifies tests using contexts, examples, expectations, matchers, mocks, and stubs. It provides examples of writing PHPSpec tests and using various PHPSpec features. The document concludes by mentioning upcoming PHPSpec features and linking to resources for learning more.
Typed Properties and more: What's coming in PHP 7.4?Nikita Popov
The document summarizes new features coming in PHP 7.4, including typed properties, arrow functions, the nullsafe operator, and array spread syntax. It also discusses future language features like property accessors and generics. Some deprecations are noted, such as changes to ternary operator and concatenation precedence to avoid ambiguity.
Roles are an excellent object-oriented tool both for allomorphism and for
reuse.
Roles facilitate allomorphism by favoring "does this object do X" versus "is
this object a subclass of X". You often care more about capability than
inheritance. In a sense, roles encode types better than inheritance.
Roles also provide an excellent faculty for reuse. This effectively eliminates
multiple inheritance, which is often the only solution for sharing code between
unrelated classes.
Roles can combine with conflict detection. This eliminates accidental shadowing
of methods that is painful with multiple inheritance and mixins.
Parameterized roles (via MooseX::Role::Parameterized) improve the reusability
of roles by letting each consumer cater the role to its needs. This does
sacrifice some allomorphism, but there are ways to restore it.
This document outlines PHP functions including function declaration, arguments, returning values, variable scope, static variables, recursion, and useful built-in functions. Functions are blocks of code that perform tasks and can take arguments. They are declared with the function keyword followed by the name and parameters. Functions can return values and arguments are passed by value by default but can also be passed by reference. Variable scope inside functions refers to the local scope unless specified as global. Static variables retain their value between function calls. Recursion occurs when a function calls itself. Useful built-in functions include function_exists() and get_defined_functions().
Love it or hate it, JavaScript is playing an increasingly important role in the next generation of web and mobile apps. As code continues to move from the server to the client, JavaScript is being used to do more than simple HTML manipulation. Be prepared for this transition and make sure the JavaScript you write is optimized and ready to perform on desktops and devices! In this session, you will learn ten practical tips that you can use today to write faster, more maintainable, memory friendly JavaScript.
The document is a presentation by Tatar Balazs Janos on writing secure Drupal code. It provides an overview of the presenter's background and experience with Drupal security. The presentation covers trends in security, types of vulnerabilities like cross-site scripting and SQL injection, and techniques for protecting against vulnerabilities such as input filtering, automated testing, and access control. It includes code examples and opportunities for audience participation through a bingo game.
This document discusses PHP functions and arrays. It covers basic syntax for defining functions, returning values from functions, and variable scope. It also covers array basics like indexing and printing arrays, as well as operations like sorting, searching, and iterating over arrays. Functions for stacks, queues and sets using arrays are also demonstrated. The document is a comprehensive reference for working with functions and arrays in PHP.
The document discusses abstract syntax trees (ASTs) and parsing of code. It provides examples of parsing JavaScript code into tokens and then building a syntax tree. It also discusses common JavaScript parsers like Esprima and Acorn, and AST specifications like ESTree. Homomorphic parsing is shown where code and AST are equivalent. Common uses of ASTs include transpilation, linting, minification, and code transformation.
PHP 8.0 is expected to be released by the end of the year, so it’s time to take a first look at the next major version of PHP. Attributes, union types, and a just-in-time compiler are likely the flagship features of this release, but there are many more improvements to be excited about. As PHP 8.0 is a major version, this release also includes backwards-incompatible changes, many of which are centered around stricter error handling and more type safety.
This talk will discuss new features already implemented in PHP 8, backwards-compatibility breaks to watch out for, as well as some features that are still under discussion.
This document discusses conducting a PHP security audit. It recommends interviewing developers to understand the application and security features. The audit involves black box testing from outside, and an open code review to find issues like SQL, PHP and HTML injections. The report summarizes problems found like register_globals use, SQL injections and header injections, with criticality and load impact. Conducting regular cross-audits and establishing a security mantra can help improve code security.
This presentation will give you a brief background to JavaScript, what it is and where it comes from. Then it will walk you through general pitfalls, best practices and more advanced topics such as object-orientation, scope and closures.
This document provides an overview of JavaScript basics including variables, data types, operators, conditional statements, loops, functions, arrays, and error handling. It explains JavaScript syntax, how to include JavaScript code in HTML pages, and commonly used statements like if/else, switch case, while and for loops. It also covers JavaScript functions, returning values from functions, and printing pages. The document describes JavaScript strings and array objects, and their associated methods. Finally, it discusses different types of errors in JavaScript like syntax errors, runtime errors, and logical errors.
PHP 8.0 comes with many long-awaited features: A just-in-time compiler, attributes, union types, and named arguments are just a small part of the list. As a major version, it also includes some backward-incompatible changes, which are centered around stricter error handling and enhanced type safety. Let's have an overview of the important changes in PHP 8.0 and how they might affect you!
This document provides an introduction to PHP including:
- PHP code uses <?php ?> tags and semicolons to end statements. It is loosely typed and supports variables, arrays, and objects.
- Built-in variables like $_GET and $_SERVER provide access to server and request data. Strings support escape sequences and variable interpolation.
- PHP has advantages like being open source, easy to learn, and having a large community, but disadvantages include loose syntax that can cause errors and previous lack of object orientation.
Let's write secure Drupal code! - DrupalCamp London 2019Balázs Tatár
- The document discusses secure Drupal coding practices presented by Balazs Janos Tatar at DrupalCamp London 2019.
- It covers common vulnerabilities like cross-site scripting, access bypass, SQL injection and how to prevent them through input filtering, access control configuration, and using Drupal's database APIs.
- Tatar also discusses security improvements in Drupal 8 like Twig templates, automated CSRF protection, and content security policy compatibility. He encourages learning from security advisories and reviewing sites for vulnerabilities.
The document provides an overview of JavaScript and the Document Object Model (DOM). It introduces JavaScript as a scripting language used to add interactivity and dynamic behavior to web pages. It describes how JavaScript can be implemented in HTML using <script> tags in the head or body, or externally in .js files. The document then covers JavaScript syntax including data types, operators, conditional statements, loops, functions. It also discusses the DOM and how JavaScript can manipulate HTML elements and attributes.
This document provides an introduction and overview of JavaScript. It begins with an explanation of what dynamic HTML (DHTML) is and its key technologies including HTML, CSS, JavaScript, and the DOM. It then discusses what JavaScript is, its advantages, and what it can do. The document outlines how JavaScript code can be implemented in web pages and describes basic JavaScript syntax including variables, data types, operators, and conditional and loop statements. It provides examples of JavaScript functions, events, and interacting with HTML elements.
Full-day tutorial for the dutch php conference 2011 giving a very quick tour around all the various areas of the ZCE syllabus and some tips on the exam styles
Web Typography is exploding all over the web, we made a jQuery plugin to give you control over those new fonts. We also made this powerpoint for a talk on the same subject.
This document summarizes a presentation about writing secure Drupal code. It discusses common vulnerabilities like cross-site scripting, access bypass, and SQL injection. It provides examples of secure and vulnerable code and recommends best practices to prevent vulnerabilities, including input filtering, access control, and automated testing. It also discusses security improvements in Drupal 8 and learning from security advisories.
This document discusses PHPSpec, a behavior-driven development (BDD) framework for PHP. It begins by explaining what PHPSpec is and how it implements BDD through a domain-specific language (DSL) based on RSpec. The document then covers how PHPSpec specifies tests using contexts, examples, expectations, matchers, mocks, and stubs. It provides examples of writing PHPSpec tests and using various PHPSpec features. The document concludes by mentioning upcoming PHPSpec features and linking to resources for learning more.
Typed Properties and more: What's coming in PHP 7.4?Nikita Popov
The document summarizes new features coming in PHP 7.4, including typed properties, arrow functions, the nullsafe operator, and array spread syntax. It also discusses future language features like property accessors and generics. Some deprecations are noted, such as changes to ternary operator and concatenation precedence to avoid ambiguity.
Roles are an excellent object-oriented tool both for allomorphism and for
reuse.
Roles facilitate allomorphism by favoring "does this object do X" versus "is
this object a subclass of X". You often care more about capability than
inheritance. In a sense, roles encode types better than inheritance.
Roles also provide an excellent faculty for reuse. This effectively eliminates
multiple inheritance, which is often the only solution for sharing code between
unrelated classes.
Roles can combine with conflict detection. This eliminates accidental shadowing
of methods that is painful with multiple inheritance and mixins.
Parameterized roles (via MooseX::Role::Parameterized) improve the reusability
of roles by letting each consumer cater the role to its needs. This does
sacrifice some allomorphism, but there are ways to restore it.
This document outlines PHP functions including function declaration, arguments, returning values, variable scope, static variables, recursion, and useful built-in functions. Functions are blocks of code that perform tasks and can take arguments. They are declared with the function keyword followed by the name and parameters. Functions can return values and arguments are passed by value by default but can also be passed by reference. Variable scope inside functions refers to the local scope unless specified as global. Static variables retain their value between function calls. Recursion occurs when a function calls itself. Useful built-in functions include function_exists() and get_defined_functions().
Love it or hate it, JavaScript is playing an increasingly important role in the next generation of web and mobile apps. As code continues to move from the server to the client, JavaScript is being used to do more than simple HTML manipulation. Be prepared for this transition and make sure the JavaScript you write is optimized and ready to perform on desktops and devices! In this session, you will learn ten practical tips that you can use today to write faster, more maintainable, memory friendly JavaScript.
The document is a presentation by Tatar Balazs Janos on writing secure Drupal code. It provides an overview of the presenter's background and experience with Drupal security. The presentation covers trends in security, types of vulnerabilities like cross-site scripting and SQL injection, and techniques for protecting against vulnerabilities such as input filtering, automated testing, and access control. It includes code examples and opportunities for audience participation through a bingo game.
This document discusses PHP functions and arrays. It covers basic syntax for defining functions, returning values from functions, and variable scope. It also covers array basics like indexing and printing arrays, as well as operations like sorting, searching, and iterating over arrays. Functions for stacks, queues and sets using arrays are also demonstrated. The document is a comprehensive reference for working with functions and arrays in PHP.
The document discusses abstract syntax trees (ASTs) and parsing of code. It provides examples of parsing JavaScript code into tokens and then building a syntax tree. It also discusses common JavaScript parsers like Esprima and Acorn, and AST specifications like ESTree. Homomorphic parsing is shown where code and AST are equivalent. Common uses of ASTs include transpilation, linting, minification, and code transformation.
PHP 8.0 is expected to be released by the end of the year, so it’s time to take a first look at the next major version of PHP. Attributes, union types, and a just-in-time compiler are likely the flagship features of this release, but there are many more improvements to be excited about. As PHP 8.0 is a major version, this release also includes backwards-incompatible changes, many of which are centered around stricter error handling and more type safety.
This talk will discuss new features already implemented in PHP 8, backwards-compatibility breaks to watch out for, as well as some features that are still under discussion.
This document discusses conducting a PHP security audit. It recommends interviewing developers to understand the application and security features. The audit involves black box testing from outside, and an open code review to find issues like SQL, PHP and HTML injections. The report summarizes problems found like register_globals use, SQL injections and header injections, with criticality and load impact. Conducting regular cross-audits and establishing a security mantra can help improve code security.
This presentation will give you a brief background to JavaScript, what it is and where it comes from. Then it will walk you through general pitfalls, best practices and more advanced topics such as object-orientation, scope and closures.
This document provides an overview of JavaScript basics including variables, data types, operators, conditional statements, loops, functions, arrays, and error handling. It explains JavaScript syntax, how to include JavaScript code in HTML pages, and commonly used statements like if/else, switch case, while and for loops. It also covers JavaScript functions, returning values from functions, and printing pages. The document describes JavaScript strings and array objects, and their associated methods. Finally, it discusses different types of errors in JavaScript like syntax errors, runtime errors, and logical errors.
PHP 8.0 comes with many long-awaited features: A just-in-time compiler, attributes, union types, and named arguments are just a small part of the list. As a major version, it also includes some backward-incompatible changes, which are centered around stricter error handling and enhanced type safety. Let's have an overview of the important changes in PHP 8.0 and how they might affect you!
This document provides an introduction to PHP including:
- PHP code uses <?php ?> tags and semicolons to end statements. It is loosely typed and supports variables, arrays, and objects.
- Built-in variables like $_GET and $_SERVER provide access to server and request data. Strings support escape sequences and variable interpolation.
- PHP has advantages like being open source, easy to learn, and having a large community, but disadvantages include loose syntax that can cause errors and previous lack of object orientation.
Let's write secure Drupal code! - DrupalCamp London 2019Balázs Tatár
- The document discusses secure Drupal coding practices presented by Balazs Janos Tatar at DrupalCamp London 2019.
- It covers common vulnerabilities like cross-site scripting, access bypass, SQL injection and how to prevent them through input filtering, access control configuration, and using Drupal's database APIs.
- Tatar also discusses security improvements in Drupal 8 like Twig templates, automated CSRF protection, and content security policy compatibility. He encourages learning from security advisories and reviewing sites for vulnerabilities.
The document provides an overview of JavaScript and the Document Object Model (DOM). It introduces JavaScript as a scripting language used to add interactivity and dynamic behavior to web pages. It describes how JavaScript can be implemented in HTML using <script> tags in the head or body, or externally in .js files. The document then covers JavaScript syntax including data types, operators, conditional statements, loops, functions. It also discusses the DOM and how JavaScript can manipulate HTML elements and attributes.
This document provides an introduction and overview of JavaScript. It begins with an explanation of what dynamic HTML (DHTML) is and its key technologies including HTML, CSS, JavaScript, and the DOM. It then discusses what JavaScript is, its advantages, and what it can do. The document outlines how JavaScript code can be implemented in web pages and describes basic JavaScript syntax including variables, data types, operators, and conditional and loop statements. It provides examples of JavaScript functions, events, and interacting with HTML elements.
This document provides an introduction to JavaScript and covers topics such as:
- JavaScript allows for interactivity on web pages by manipulating the browser and reacting to user actions.
- JavaScript code is embedded within HTML pages and executed on the client-side by the browser.
- Common JavaScript concepts covered include variables, functions, scope, events, and form validation.
- JavaScript can be used to validate user input, perform calculations, and modify the DOM in response to events.
The document provides an overview of Dynamic HTML (DHTML) and its core technologies: HTML, CSS, JavaScript, and the DOM. It explains that DHTML allows dynamic and interactive web pages by combining these technologies. JavaScript is described as the scripting language that defines dynamic behavior, handling events and user interactions to manipulate the DOM. The document gives examples of common JavaScript functions, syntax elements, and how to incorporate JavaScript code into web pages.
This document provides an outline and overview of client-side technologies including JavaScript, DOM, and jQuery. The outline covers JavaScript concepts like data types, control structures, arrays, functions, and objects. It also covers DOM levels and manipulating the DOM. Finally, it discusses jQuery and how to load, select elements, handle events, and more. The presentation aims to familiarize students with these important front-end technologies.
This document provides an outline and overview of client-side technologies including JavaScript, DOM, and jQuery. The outline includes sections on JavaScript concepts like data types, control structures, arrays, functions, and objects. It also covers DOM levels and manipulating the DOM, as well as introductions to jQuery for selecting elements, changing styles, and handling events. The presentation provides an overview of these key client-side technologies for students.
JavaScript is the programming language of the web. It can dynamically manipulate HTML content by changing element properties like innerHTML. Functions allow JavaScript code to run in response to events like button clicks or timeouts. JavaScript uses objects and prototypes to define reusable behaviors and properties for objects. It is an important language for web developers to learn alongside HTML and CSS.
This document provides an introduction to JavaScript and the Document Object Model (DOM). It discusses what JavaScript is, how it can be implemented into web pages, its syntax, data types, functions, and how it interacts with the DOM. JavaScript allows dynamic behavior and interactivity on web pages by accessing and modifying elements and properties of the DOM tree.
The document provides an overview of jQuery and JavaScript concepts. It discusses:
1. What jQuery is and why it's useful, allowing developers to simplify common tasks with fewer lines of code.
2. How to access DOM elements using jQuery selectors, which are similar to CSS selectors. This allows selecting elements by name, ID, class, and other attributes.
3. Core JavaScript concepts like variables, data types, operators, and functions. It also covers variable scope, error handling, and working with objects.
This document provides an introduction and overview of jQuery. It discusses how jQuery simplifies DOM navigation and manipulation, handles browser differences, and makes JavaScript coding easier. The document covers basic jQuery concepts like selectors, the jQuery function, attributes, and events. It also provides examples of common jQuery code.
JavaScript is a client-side scripting language that adds interactivity to HTML pages. It can be embedded in HTML using <script> tags and scripts can be placed internally in the HTML file or externally in a .js file. JavaScript code can be inserted in the <head> or <body> sections, but is typically placed at the end of the <body> for faster page loads. Core JavaScript concepts include variables, objects, functions, operators, conditions, loops, and arrays. The DOM (Document Object Model) allows JavaScript to access and modify HTML elements on the page and events can be used to trigger JavaScript functions in response to user actions.
Javascript allows interactive content on web pages and control of the browser and document. It is an interpreted scripting language that is cross-platform but support varies. Javascript can provide interactive content, control document appearance and content, and interact with the user through event handlers.
JavaScript is a dynamic programming language used widely in web pages. It allows client-side scripts to interact with users and dynamically update pages. JavaScript code can be placed within <script> tags in HTML pages or external .js files. Common uses of JavaScript include basic arithmetic, variables, functions, objects, arrays, conditional logic, and DOM manipulation. Key JavaScript concepts covered in the document include data types, operators, variables, functions, objects, arrays, conditional statements, and the Date object.
jQuery is a JavaScript library that makes HTML document traversal and manipulation, event handling, animation, and Ajax interactions more simple. It works across browsers and allows developers to select elements, handle events, and perform animations with simple code. The document discusses how jQuery works, how to launch code when the document is ready, and how to add and remove HTML classes using jQuery. It also introduces callbacks and functions in jQuery, explaining how to pass callback functions into other functions.
The document provides background information on HTML, JavaScript, CSS, and their relationships. It discusses how SGML led to the creation of HTML by Tim Berners-Lee as a subset of SGML. Cascading Style Sheets (CSS) were later created to separate document structure from presentation. Extensible Markup Language (XML) further separated content from style. The document also covers the evolution of HTML versions and the creation of XHTML.
The document provides an overview of jQuery including:
- What jQuery is and its main features like DOM manipulation and AJAX
- How to include jQuery in an HTML document and basic usage syntax
- jQuery selectors to find elements and filters to refine selections
- Common jQuery methods for manipulating attributes, events, HTML, CSS, and more
- Examples of using various jQuery functions and concepts
Ajay Khatri is a senior software developer, technical trainer, and associate professor currently working in Indore, India. He has over 14 years of experience developing software and delivering training. Some of his accomplishments include developing a faculty feedback management system, a web-based integrated development environment, and over 75 Android apps with a total of over 5 million downloads. He also has several technical certifications from Microsoft and has published papers on software development topics.
This document provides an introduction and overview of key concepts in C++ programming, including data types, operators, conditional statements, loops, functions, variables, input/output, and more. It begins with an introduction and overview of topics to be covered. It then demonstrates the basic structure of a C++ program, use of comments, printing to the screen, getting user input, and chaining stream operations. The document continues explaining additional concepts like special characters, data types, operators, conditional statements, switch statements, and looping structures. It provides examples throughout to demonstrate each concept.
Competitive programming involves writing computer programs to solve problems according to provided specifications in a competition format. It tests algorithmic skills, programming skills, speed, creativity, debugging skills, and more. To get started, participants should understand complexity, choose a programming language, learn data structures, and brush up on basics like number theory. Problem properties include absolute correctness checks, background stories to hide the actual problem, and examples of input/output formats. Practice is important and can be done on various online judge systems like CodeChef and Hackerrank.
Zotero is a free reference management software that allows users to collect, organize, and cite references. It has both a standalone software and browser plugin. The software helps manage references and create bibliographies in different citation styles. Key functions include saving references from online sources with a single click, organizing references into collections, manually adding references, attaching files and URLs, and inserting citations and bibliographies into word documents.
This document provides an introduction to HTML and covers several key topics:
1. It explains what HTML is and that it is the skeleton or structure of web pages, describing elements with markup tags.
2. It reviews important HTML tags like headings, paragraphs, links, images, and lists and how they are used to provide structure and semantics to text.
3. It also discusses other useful tags like comments and provides additional resources for further learning HTML.
This document provides an overview of MySQL and SQL commands. It discusses:
1) Different database architectures like 2-tier and 3-tier that separate the database, web server, and application logic.
2) How to connect to a MySQL server using the mysql command line client and send SQL statements.
3) Common SQL commands like SELECT, INSERT, UPDATE, DELETE etc and how to retrieve, modify and delete data from database tables.
4) Examples of creating a database, table, inserting and querying data using the marks table example.
5) Additional SQL functions, wildcards, limiting results and other advanced query features.
This document provides an introduction to CSS syntax and properties. It covers topics like inline, internal, and external CSS styles. CSS rules consist of selectors and declaration blocks containing property-value pairs. Common selectors include tags, IDs, and classes. Properties like color, background-color, background-image, and others are demonstrated along with shorthand and specific notation. Background images can be positioned and set to repeat, scroll, or be fixed. Comments are also included to add clarity to CSS stylesheets.
Search Engine Optimization (SEO) for Website SuccessMuneeb Rana
Unlock the essentials of Search Engine Optimization (SEO) with this concise, visually driven PowerPoint. Inside you’ll find:
✅ Clear definitions and core concepts of SEO
✅ A breakdown of On‑Page, Off‑Page, and Technical SEO
✅ Actionable best‑practice checklists for keyword research, content optimization, and link building
✅ A quick‑start toolkit featuring Google Analytics, Search Console, Ahrefs, SEMrush, and Moz
✅ Real‑world case study demonstrating a 70 % organic‑traffic lift
✅ Common challenges, algorithm updates, and tips for long‑term success
Whether you’re a digital‑marketing student, small‑business owner, or PR professional, this deck will help you boost visibility, build credibility, and drive sustainable traffic. Download, share, and start optimizing today!
This presentation has been made keeping in mind the students of undergraduate and postgraduate level. To keep the facts in a natural form and to display the material in more detail, the help of various books, websites and online medium has been taken. Whatever medium the material or facts have been taken from, an attempt has been made by the presenter to give their reference at the end.
In the seventh century, the rule of Sindh state was in the hands of Rai dynasty. We know the names of five kings of this dynasty- Rai Divji, Rai Singhras, Rai Sahasi, Rai Sihras II and Rai Sahasi II. During the time of Rai Sihras II, Nimruz of Persia attacked Sindh and killed him. After the return of the Persians, Rai Sahasi II became the king. After killing him, one of his Brahmin ministers named Chach took over the throne. He married the widow of Rai Sahasi and became the ruler of entire Sindh by suppressing the rebellions of the governors.
How to Create Quotation Templates Sequence in Odoo 18 SalesCeline George
In this slide, we’ll discuss on how to create quotation templates sequence in Odoo 18 Sales. Odoo 18 Sales offers a variety of quotation templates that can be used to create different types of sales documents.
Analysis of Quantitative Data Parametric and non-parametric tests.pptxShrutidhara2
This presentation covers the following points--
Parametric Tests
• Testing the Significance of the Difference between Means
• Analysis of Variance (ANOVA) - One way and Two way
• Analysis of Co-variance (One-way)
Non-Parametric Tests:
• Chi-Square test
• Sign test
• Median test
• Sum of Rank test
• Mann-Whitney U-test
Moreover, it includes a comparison of parametric and non-parametric tests, a comparison of one-way ANOVA, two-way ANOVA, and one-way ANCOVA.
How to Create a Rainbow Man Effect in Odoo 18Celine George
In Odoo 18, the Rainbow Man animation adds a playful and motivating touch to task completion. This cheerful effect appears after specific user actions, like marking a CRM opportunity as won. It’s designed to enhance user experience by making routine tasks more engaging.
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...parmarjuli1412
The document provides an overview of therapeutic communication, emphasizing its importance in nursing to address patient needs and establish effective relationships. THERAPEUTIC COMMUNICATION included some topics like introduction of COMMUNICATION, definition, types, process of communication, definition therapeutic communication, goal, techniques of therapeutic communication, non-therapeutic communication, few ways to improved therapeutic communication, characteristics of therapeutic communication, barrier of THERAPEUTIC RELATIONSHIP, introduction of interpersonal relationship, types of IPR, elements/ dynamics of IPR, introduction of therapeutic nurse patient relationship, definition, purpose, elements/characteristics , and phases of therapeutic communication, definition of Johari window, uses, what actually model represent and its areas, THERAPEUTIC IMPASSES and its management in 5th semester Bsc. nursing and 2nd GNM students
HOW YOU DOIN'?
Cool, cool, cool...
Because that's what she said after THE QUIZ CLUB OF PSGCAS' TV SHOW quiz.
Grab your popcorn and be seated.
QM: THARUN S A
BCom Accounting and Finance (2023-26)
THE QUIZ CLUB OF PSGCAS.
Forestry Model Exit Exam_2025_Wollega University, Gimbi Campus.pdfChalaKelbessa
This is Forestry Exit Exam Model for 2025 from Department of Forestry at Wollega University, Gimbi Campus.
The exam contains forestry courses such as Dendrology, Forest Seed and Nursery Establishment, Plantation Establishment and Management, Silviculture, Forest Mensuration, Forest Biometry, Agroforestry, Biodiversity Conservation, Forest Business, Forest Fore, Forest Protection, Forest Management, Wood Processing and others that are related to Forestry.
Strengthened Senior High School - Landas Tool Kit.pptxSteffMusniQuiballo
Landas Tool Kit is a very helpful guide in guiding the Senior High School students on their SHS academic journey. It will pave the way on what curriculum exits will they choose and fit in.
Artificial intelligence Presented by JM.jmansha170
AI (Artificial Intelligence) :
"AI is the ability of machines to mimic human intelligence, such as learning, decision-making, and problem-solving."
Important Points about AI:
1. Learning – AI can learn from data (Machine Learning).
2. Automation – It helps automate repetitive tasks.
3. Decision Making – AI can analyze and make decisions faster than humans.
4. Natural Language Processing (NLP) – AI can understand and generate human language.
5. Vision & Recognition – AI can recognize images, faces, and patterns.
6. Used In – Healthcare, finance, robotics, education, and more.
Owner By:
Name : Junaid Mansha
Work : Web Developer and Graphics Designer
Contact us : +92 322 2291672
Email : [email protected]
Parenting Teens: Supporting Trust, resilience and independencePooky Knightsmith
For more information about my speaking and training work, visit: https://www.pookyknightsmith.com/speaking/
SESSION OVERVIEW:
Parenting Teens: Supporting Trust, Resilience & Independence
The teenage years bring new challenges—for teens and for you. In this practical session, we’ll explore how to support your teen through emotional ups and downs, growing independence, and the pressures of school and social life.
You’ll gain insights into the teenage brain and why boundary-pushing is part of healthy development, along with tools to keep communication open, build trust, and support emotional resilience. Expect honest ideas, relatable examples, and space to connect with other parents.
By the end of this session, you will:
• Understand how teenage brain development affects behaviour and emotions
• Learn ways to keep communication open and supportive
• Explore tools to help your teen manage stress and bounce back from setbacks
• Reflect on how to encourage independence while staying connected
• Discover simple strategies to support emotional wellbeing
• Share experiences and ideas with other parents
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptxArshad Shaikh
Diptera, commonly known as flies, is a large and diverse order of insects that includes mosquitoes, midges, gnats, and horseflies. Characterized by a single pair of wings (hindwings are modified into balancing organs called halteres), Diptera are found in almost every environment and play important roles in ecosystems as pollinators, decomposers, and food sources. Some species, however, are significant pests and disease vectors, transmitting diseases like malaria, dengue, and Zika virus.
How to Manage Maintenance Request in Odoo 18Celine George
Efficient maintenance management is crucial for keeping equipment and work centers running smoothly in any business. Odoo 18 provides a Maintenance module that helps track, schedule, and manage maintenance requests efficiently.
How to Manage Maintenance Request in Odoo 18Celine George
Basics of Java Script (JS)
1. JS - JavaScript
Lecture - 1
Ajay Khatri
Senior Assistant Professor
Acropolis Institute ofTechnology & Research
www.ajaykhatri.in
2. www.ajaykhatri.in
Table of Contents
What is DHTML?
DHTMLTechnologies
XHTML, CSS, JavaScript, DOM
Introduction to JavaScript
What is JavaScript
Implementing JavaScript into Web pages
In <head> part
In <body> part
In external .js file
3. www.ajaykhatri.in
Table of Contents (2)
JavaScript Syntax
JavaScript operators
JavaScript DataTypes
JavaScript Pop-up boxes
alert, confirm and prompt
Conditional and switch statements, loops and
functions
Document Object Model
5. www.ajaykhatri.in
What is DHTML?
Dynamic HTML (DHTML)
Makes possible a Web page to react and change
in response to the user’s actions
DHTML = HTML + CSS + JavaScript
DHTML
XHTML CSS JavaScript DOM
6. www.ajaykhatri.in
DTHML = HTML + CSS + JavaScript
HTML defines Web sites content through
semantic tags (headings, paragraphs, lists, …)
CSS defines 'rules' or 'styles' for presenting
every aspect of an HTML document
Font (family, size, color, weight, etc.)
Background (color, image, position, repeat)
Position and layout (of any object on the page)
JavaScript defines dynamic behavior
Programming logic for interaction with the
user, to handle events, etc.
8. www.ajaykhatri.in
JavaScript
JavaScript is a front-end scripting language
developed by Netscape for dynamic content
Lightweight, but with limited capabilities
Can be used as object-oriented language
Client-side technology
Embedded in your HTML page
Interpreted by theWeb browser
Simple and flexible
Powerful to manipulate the DOM
9. www.ajaykhatri.in
JavaScript Advantages
JavaScript allows interactivity such as:
Implementing form validation
React to user actions, e.g. handle keys
Changing an image on moving mouse over it
Sections of a page appearing and disappearing
Content loading and changing dynamically
Performing complex calculations
Custom HTML controls, e.g. scrollable table
Implementing AJAX functionality
10. www.ajaykhatri.in
What Can JavaScript Do?
Can handle events
Can read and write HTML elements and
modify the DOM tree
Can validate form data
Can access / modify browser cookies
Can detect the user’s browser and OS
Can be used as object-oriented language
Can handle exceptions
Can perform asynchronous server calls (AJAX)
13. www.ajaykhatri.in
Using JavaScript Code
The JavaScript code can be placed in:
<script> tag in the head
<script> tag in the body – not recommended
External files, linked via <script> tag the head
Files usually have .js extension
Highly recommended
The .js files get cached by the browser
<script src="scripts.js" type="text/javscript">
<!– code placed here will not be executed! -->
</script>
14. www.ajaykhatri.in
JavaScript – When is Executed?
JavaScript code is executed during the page
loading or when the browser fires an event
All statements are executed at page loading
Some statements just define functions that can
be called later
Function calls or code can be attached as
"event handlers" via tag attributes
Executed when the event is fired by the browser
<img src="logo.gif" onclick="alert('clicked!')" />
18. www.ajaykhatri.in
JavaScript Syntax
The JavaScript syntax is similar to C# and Java
Operators (+, *, =, !=, &&, ++, …)
Variables (typeless)
Conditional statements (if, else)
Loops (for, while)
Arrays (my_array[]) and associative arrays
(my_array['abc'])
Functions (can return value)
Function variables (like the C# delegates)
19. www.ajaykhatri.in
DataTypes
JavaScript data types:
Numbers (integer, floating-point)
Boolean (true / false)
String type – string of characters
var length = 60; // Number
var lastName = "Khatri"; // String
var b = 44.5; // floating-point number
var isReading = true; // yes, I'm reading
21. www.ajaykhatri.in
Everything is Object
Every variable can be considered as object
For example strings and arrays have member
functions:
var test = "some string";
alert(test[7]); // shows letter 'r'
alert(test.charAt(5)); // shows letter 's'
alert("test".charAt(1)); //shows letter 'e'
alert("test".substring(1,3)); //shows 'es'
var arr = [1,3,4];
alert (arr.length); // shows 3
arr.push(7); // appends 7 to end of array
alert (arr[3]); // shows 7
objects.html
23. www.ajaykhatri.in
Arrays Operations and Properties
Declaring new empty array:
Declaring an array holding few elements:
Appending an element / getting the last element:
Reading the number of elements (array length):
Finding element's index in the array:
var arr = new Array();
var arr = [1, 2, 3, 4, 5];
arr.push(3); //Add Elements
var element = arr.pop(); //Remove last Elements
arr.length;
arr.indexOf(1);
24. www.ajaykhatri.in
Standard Popup Boxes
Alert box with text and [OK] button
Just a message shown in a dialog box:
Confirmation box
Contains text, [OK] button and [Cancel] button:
Prompt box
Contains text, input field with default value:
alert("Some text here");
confirm("Are you sure?");
prompt ("enter amount", 10);
25. www.ajaykhatri.in
Sum of Numbers – Example
sum-of-numbers.html
<html>
<head>
<title>JavaScript Demo</title>
<script type="text/javascript">
function calcSum() {
value1 =
parseInt(document.mainForm.textBox1.value);
value2 =
parseInt(document.mainForm.textBox2.value);
sum = value1 + value2;
document.mainForm.textBoxSum.value = sum;
}
</script>
</head>
28. www.ajaykhatri.in
Greater than
<=
Symbol Meaning
>
< Less than
>= Greater than or equal to
Less than or equal to
== Equal
!= Not equal
Conditional Statement (if)
unitPrice = 1.30;
if (quantity > 100) {
unitPrice = 1.20;
}
29. www.ajaykhatri.in
Conditional Statement (if) (2)
The condition may be of Boolean or integer type:
var a = 0;
var b = true;
if (typeof(a)=="undefined" || typeof(b)=="undefined") {
document.write("Variable a or b is undefined.");
}
else if (!a && b) {
document.write("a==0; b==true;");
} else {
document.write("a==" + a + "; b==" + b + ";");
}
conditional-statements.html
30. www.ajaykhatri.in
Switch Statement
The switch statement works like in C#:
switch (variable) {
case 1:
// do something
break;
case 'a':
// do something else
break;
case 3.14:
// another code
break;
default:
// something completely different
}
switch-statements.html
31. www.ajaykhatri.in
Loops
Like in C#
for loop
while loop
do … while loop
var counter;
for (counter=0; counter<4; counter++) {
alert(counter);
}
while (counter < 5) {
alert(++counter);
} loops.html
32. www.ajaykhatri.in
Functions
Code structure – splitting code into parts
Data comes in, processed, result returned
function average(a, b, c)
{
var total;
total = a+b+c;
return total/3;
}
Parameters come
in here.
Declaring variables
is optional.Type is
never declared.
Value returned
here.
33. www.ajaykhatri.in
Function Arguments
and ReturnValue
Functions are not required to return a value
When calling function it is not obligatory to
specify all of its arguments
The function has access to all the arguments
passed via arguments array
function sum() {
var sum = 0;
for (var i = 0; i < arguments.length; i ++)
sum += parseInt(arguments[i]);
return sum;
}
alert(sum(1, 2, 4)); functions-demo.html
35. www.ajaykhatri.in
Document Object Model (DOM)
Every HTML element is accessible via the
JavaScript DOM API
Most DOM objects can be manipulated by the
programmer
The event model lets a document to react when
the user does something on the page
Advantages
Create interactive pages
Updates the objects of a page without reloading it
36. www.ajaykhatri.in
Accessing Elements
Access elements via their ID attribute
Via the name attribute
Via tag name
Returns array of descendant <img> elements of
the element "el"
var elem = document.getElementById("some_id")
var arr = document.getElementsByName("some_name")
var imgTags = el.getElementsByTagName("img")
37. www.ajaykhatri.in
DOM Manipulation
Once we access an element, we can read and
write its attributes
function change(state) {
var lampImg = document.getElementById("lamp");
lampImg.src = "lamp_" + state + ".png";
var statusDiv =
document.getElementById("statusDiv");
statusDiv.innerHTML = "The lamp is " + state";
}
…
<img src="test_on.gif" onmouseover="change('off')"
onmouseout="change('on')" />
DOM-manipulation.html
38. www.ajaykhatri.in
Common Element Properties
Most of the properties are derived from the
HTML attributes of the tag
E.g. id, name, href, alt, title, src, etc…
style property – allows modifying the CSS
styles of the element
Corresponds to the inline style of the element
Not the properties derived from embedded or
external CSS rules
Example: style.width, style.marginTop,
style.backgroundImage
39. www.ajaykhatri.in
Common Element Properties (2)
className – the class attribute of the tag
innerHTML – holds all the entire HTML code
inside the element
Read-only properties with information for the
current element and its state
tagName, offsetWidth, offsetHeight,
scrollHeight, scrollTop, nodeType, etc…
40. www.ajaykhatri.in
Accessing Elements through
the DOMTree Structure
We can access elements in the DOM through
some tree manipulation properties:
element.childNodes
element.parentNode
element.nextSibling
element.previousSibling
element.firstChild
element.lastChild
41. www.ajaykhatri.in
Accessing Elements through
the DOMTree – Example
Warning: may not return what you expected
due to Browser differences
var el = document.getElementById('div_tag');
alert (el.childNodes[0].value);
alert (el.childNodes[1].
getElementsByTagName('span').id);
…
<div id="div_tag">
<input type="text" value="test text" />
<div>
<span id="test">test span</span>
</div>
</div> accessing-elements-demo.html
43. www.ajaykhatri.in
The HTML DOM Event Model
JavaScript can register event handlers
Events are fired by the Browser and are sent to
the specified JavaScript event handler function
Can be set with HTML attributes:
Can be accessed through the DOM:
<img src="test.gif" onclick="imageClicked()" />
var img = document.getElementById("myImage");
img.onclick = imageClicked;
44. www.ajaykhatri.in
The HTML DOM Event Model (2)
All event handlers receive one parameter
It brings information about the event
Contains the type of the event (mouse click, key
press, etc.)
Data about the location where the event has
been fired (e.g. mouse coordinates)
Holds a reference to the event sender
E.g. the button that was clicked
45. www.ajaykhatri.in
The HTML DOM Event Model (3)
Holds information about the state of [Alt], [Ctrl]
and [Shift] keys
Some browsers do not send this object, but
place it in the document.event
Some of the names of the event’s object
properties are browser-specific
46. www.ajaykhatri.in
Common DOM Events
Mouse events:
onclick, onmousedown, onmouseup
onmouseover, onmouseout, onmousemove
Key events:
onkeypress, onkeydown, onkeyup
Only for input fields
Interface events:
onblur, onfocus
onscroll
47. www.ajaykhatri.in
Common DOM Events (2)
Form events
onchange – for input fields
onsubmit
Allows you to cancel a form submission
Useful for form validation
Miscellaneous events
onload, onunload
Allowed only for the <body> element
Fires when all content on the page was loaded /
unloaded
50. www.ajaykhatri.in
Built-in Browser Objects
The browser provides some read-only data via:
window
The top node of the DOM tree
Represents the browser's window
document
holds information the current loaded document
screen
Holds the user’s display properties
browser
Holds information about the browser
54. www.ajaykhatri.in
The Screen Object
The screen object contains information about
the display
window.moveTo(0, 0);
x = screen.availWidth;
y = screen.availHeight;
window.resizeTo(x, y);
55. www.ajaykhatri.in
Document and Location
document object
Provides some built-in arrays of specific objects
on the currently loaded Web page
document.location
Used to access the currently open URL or
redirect the browser
document.links[0].href = "yahoo.com";
document.write(
"This is some <b>bold text</b>");
document.location = "http://www.yahoo.com/";
56. www.ajaykhatri.in
FormValidation – Example
function checkForm()
{
var valid = true;
if (document.mainForm.firstName.value == "") {
alert("Please type in your first name!");
document.getElementById("firstNameError").
style.display = "inline";
valid = false;
}
return valid;
}
…
<form name="mainForm" onsubmit="return checkForm()">
<input type="text" name="firstName" />
…
</form>
form-validation.html
57. www.ajaykhatri.in
The Math Object
The Math object provides some mathematical
functions
for (i=1; i<=20; i++) {
var x = Math.random();
x = 10*x + 1;
x = Math.floor(x);
document.write(
"Random number (" +
i + ") in range " +
"1..10 --> " + x +
"<br/>");
}
math.html
58. www.ajaykhatri.in
The Date Object
The Date object provides date / calendar
functions
var now = new Date();
var result = "It is now " + now;
document.getElementById("timeField")
.innerText = result;
...
<p id="timeField"></p>
dates.html
59. www.ajaykhatri.in
Timers: setTimeout()
Make something happen (once) after a fixed
delay
var timer = setTimeout('bang()', 5000);
clearTimeout(timer);
5 seconds after this statement
executes, this function is called
Cancels the timer
60. www.ajaykhatri.in
Timers: setInterval()
Make something happen repeatedly at fixed
intervals
var timer = setInterval('clock()', 1000);
clearInterval(timer);
This function is called
continuously per 1 second.
Stop the timer.
61. www.ajaykhatri.in
Timer – Example
<script type="text/javascript">
function timerFunc() {
var now = new Date();
var hour = now.getHours();
var min = now.getMinutes();
var sec = now.getSeconds();
document.getElementById("clock").value =
"" + hour + ":" + min + ":" + sec;
}
setInterval('timerFunc()', 1000);
</script>
<input type="text" id="clock" />
timer-demo.html