# Programming Language ## Definition(s) ### Context: [[Nexus - Google Analytics Certificate Course#7.1 Google Analytics - 7 Data Analysis with R Programming - Module 1 - Programming and data analytics Programming and data analytics|Google Analytics Certificate]] #### Sub-context: [[Coding]] >[! Definition] >A system of words and symbols used to write instructions that computers follow ## Examples Below are examples of "Hello World" programs written in their respective programming language #### CSS ```css <!DOCTYPE html> <html> <head> <style> body { margin-left: 200px; background: #5d9ab2 url("img_tree.png") no-repeat top left; } .center_div { border: 1px solid gray; margin-left: auto; margin-right: auto; width: 90%; background-color: #d0f0f6; text-align: left; padding: 8px; } </style> </head> <body> <div class="center_div"> <h1>Hello World!</h1> <p>This example contains some advanced CSS methods you may not have learned yet. But, we will explain these methods in a later chapter in the tutorial.</p> </div> </body> </html> ``` #### HTML5 ```htML <!DOCTYPE html> <html> <head> <title>First Web Page</title> </head> <body> Hello World! </body> </html> ``` #### Java ```java // This is a simple Java program. // FileName : "HelloWorld.java". class HelloWorld { // Your program begins with a call to main(). // Prints "Hello, World" to the terminal window. public static void main(String[] args) { System.out.println("Hello, World"); } } ``` #### PHP ```php <!DOCTYPE html> <html> <body> <h1>My first PHP page</h1> <?php echo "Hello World!"; ?> </body> </html> ``` #### Python ```python print("Hello World!") ``` #### R ```r print("Hello World!") # returns: "Hello World!" print("Hello World", quote=FALSE) # returns Hellow World ``` #### Ruby ```ruby puts "Hello World" ``` #### Swift ```swift import Foundation print("Hello World!") ``` ## Related [[Cascading Style Sheets|CSS]] [[HTML5]] [[Java]] [[php]] [[Python]] [[Ruby]] [[Swift]] ## Resources ## Flashcards The below code are generated for use with [Spaced Repetition plugin](https://github.com/st3v3nmw/obsidian-spaced-repetition/) [docs](https://www.stephenmwangi.com/obsidian-spaced-repetition/)