Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created December 29, 2021 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/445b176975cbdd358b31eebe51ab31b0 to your computer and use it in GitHub Desktop.
Save codecademydev/445b176975cbdd358b31eebe51ab31b0 to your computer and use it in GitHub Desktop.
Codecademy export
<!DOCTYPE html>
<html>
<head>
<link href="styles.css" rel ="stylesheet" type ="text/css">
<script src="https://kit.fontawesome.com/131f18111d.js" crossorigin="anonymous"></script>
<title>Comments in HTML/CSS/JavaScript</title>
</head>
<body>
<table>
<thead>
<tr>
<th scope ="col" colspan ="3">Comparing Comments</th>
</tr>
</thead>
<tbody>
<tr class ="label">
<td>Language</td>
<td>How to Comment</td>
<td>Example</td>
</tr>
<tr>
<td>HTML <i id ="html" class="fab fa-html5"></i></td>
<td class ="code">&lt!-- --&gt</td>
<td>&lt!--HTML is the skeleton of the website -- &gt</td>
</tr>
<tr>
<td>CSS <i id ="css" class="fab fa-css3-alt"></i></td>
<td class ="code">/* */</td>
<td>/*CSS is the skin/hair/eye color of the website*/</td>
</tr>
<tr>
<td>JavaScript <i id ="js" class="fab fa-js-square"></i></td>
<td class ="code">// OR /* */</td>
<td>// for a single line comment <br>/*for a multi line comment*/</br></td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan ="3">*As noted in the examples, JavaScript has 2 ways to comment (depending on if the comment is a single line comment or multi-lined comment)</td>
</tr>
</tfoot>
</table>
</body>
</html>
body{
background-color: lightblue;
}
table {
background-color: blue;
border-style: double;
border-color: black;
}
th, td, tfoot {
background-color: white;
border-style: solid;
border-color: black;
font-family: Garamond, serif;
}
th {
font-size: 2em;
font-weight: bolder;
}
.label{
text-decoration: underline;
}
td {
font-weight: bold;
}
.code{
font-family: monospace, sans-serif;
background-color: lightgray;
}
tfoot{
font-size: .75em;
}
#html {
color: darkorange;
}
#css {
color: blue;
}
#js {
color: gold;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment