HTML vs CSS vs JS - hqzhang/cloudtestbed GitHub Wiki

<html>
<head>
   <title>C/C++ | Lingfa Yang
   </title>
</head>

<body bgcolor="#D2E4FC">

<center><table style="width: 768px;" border="3" cellpadding="30"><tr><td background="bg_line.GIF">

<center><h1>C/C++: Basic to Advanced</h1>
<a href="../index.html">Lingfa Yang</a>
</center>
</html>

#HTML , CSS and JavaScript:

HTML define content, CSS define format(style) and JavaScript define action:
create following 3 files and open test.html using chrome brawser, you will see whole web page.

#myScript.js file

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

#myStyle.css file

body {
    background-color: powderblue;
}
h1 { color: blue;}
h2 { color: green; }
p {  color: red;}

#test.html file

<!DOCTYPE html>
<html>
  <head>
    <link rel="stylesheet" href="myStyles.css">
  </head>
  <body>
    <h1>This is a heading</h1>
    <p>This is a paragraph.</p>
    <h2>My First JavaScript</h2>
    <script src="myScript.js"></script>
    <button type="button"
      onclick="myFunction()">
       Click me to display Date and Time.</button>
    <p id="demo"></p>
  </body>
</html>
⚠️ **GitHub.com Fallback** ⚠️