Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
dvprog_01_2 [2017-08-17 11:40]
Daniel Viström created
dvprog_01_2 [2018-08-24 12:36]
Daniel Viström
Line 6: Line 6:
 <html lang="sv"> <html lang="sv">
 <head> <head>
-  <meta charset="utf-8" /+  <meta charset="utf-8"> 
-  <link rel="stylesheet" href="style.css" />+  <link rel="stylesheet" href="style.css">
   <title>Intro</title>   <title>Intro</title>
 </head> </head>
Line 17: Line 17:
    
 echo 'Hello world!'; //Världens mest använda textrad för test av program! echo 'Hello world!'; //Världens mest använda textrad för test av program!
-echo '<br />'; //Skriver ut htmltaggen <br /+echo '<br>'; //Skriver ut htmltaggen <br> 
-$text='Detta är text i en variabel'; //En variabel defineras. En variabel börjar alltid med $.+$text = 'Detta är text i en variabel'; //En variabel defineras. En variabel börjar alltid med $.
 echo $text; echo $text;
 ?> ?>