Website Programming - JavaScript & Web Analytics Flashcards
Content Management Systems (CMS)
CMS stands for Content Management System, is software that helps you to build a website without programming skills
eg: Wix, Weebly, Squarespace
Benefits of a CMS
Website management
Time to market
Customization
Multi-user support
Previews & Testing
Javascript (JS)
A programming language invented by Netscape that is used to control the objects on an HTML page and handle interactions with the browser. Most popular programming langauge
Variables (JS)
Name on a unit of data. In JS, variable are generated with “var”
eg:
var x = 4
var color = blue
3 layers of building on HTML
- HTML to define the content of web page
- CSS to specify the layout of web pages
- JavaScript to program the behaviour of web pages
Properties & Methods (JS)
Property - Value that you can get or set (like changing the content of an HTML element)
Methods - An action you can do (like add or deleting an HTML element) (on HTML elements or other objects)
eg:
document.getElementById ("demo") .innerhtml = "Hello"
Method = getElementById
Property = innerhtml
Functions (JS)
Series of JS statements that achieve a specific task. The function is defined with a function keyword, followed by a name, followed by parentheses
eg:
function sum (a, b) {
return a + b;
}
Tracking
Adding a measurement code to a page to measure them with tracking abilities, allowing for third parties to track user behaviour such as the next page they visit, etc