-
-
Save codecademydev/445b176975cbdd358b31eebe51ab31b0 to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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"><!-- --></td> | |
<td><!--HTML is the skeleton of the website -- ></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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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