Separation of formatting and content also makes it feasible to present the same markup page in different styles for different rendering methods, such as on screen, in print, by voice (via speech based browser or screen reader), and on Braille based tactile devices. CSS also has rules for alternate formatting if the content is accessed on a mobile device.
Instead of building your own system for creating web pages, storing images, and other functions, the content management system handles all that basic infrastructure stuff for you so that you can focus on more forward facing parts of your website.
PHP code is usually processed on a web server by a PHP interpreter implemented as a module, a daemon or as a Common Gateway Interface (CGI) executable. On a web server, the result of the interpreted and executed PHP code – which may be any type of data, such as generated HTML or binary image data – would form the whole or part of an HTTP response.
JavaScript is a high level, often just in time compiled language that conforms to the ECMAScript standard. It has dynamic typing, prototype based object orientation, and first class functions. It is multi paradigm, supporting event driven, functional, and imperative programming styles. It has application programming interfaces (APIs) for working with text, dates, regular expressions, standard data structures, and the Document Object Model (DOM).