Code Snippet

Code Snippet sample

HTML Language

<!DOCTYPE html>
<title>Page Title</title>

<h1>This is a Heading</h1>
<p>This is a paragraph.</p>


PHP Language

define("GREETING", "Welcome to!");

function myTest() {
    echo GREETING;
CSS Language
body {
    background-color: lightblue;

h1 {
    color: white;
    text-align: center;

p {
    font-family: verdana;
    font-size: 20px;

Jquery / JavaScript Language

function myFunction() {
    document.getElementById("demo").innerHTML = "Paragraph changed.";

Json Language

var myJSON = '{ "name":"John", "age":31, "city":"New York" }';
var myObj = JSON.parse(myJSON);
document.getElementById("demo").innerHTML =; 


Was this article helpful?

4 out of 6 found this helpful

Have more questions? Submit Request


Please Log In to leave a comment.