Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created September 25, 2016 06:12
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/c48854ae3dae07c03efb6f950ab43545 to your computer and use it in GitHub Desktop.
Save codecademydev/c48854ae3dae07c03efb6f950ab43545 to your computer and use it in GitHub Desktop.
Codecademy export
<html>
<head>
<link rel="stylesheet" href="stylesheet.css" />
<title>Codecademy Languages</title>
</head>
<body>
<h1>Languages you can learn on Codecademy:</h1>
<div class="wrapper">
<ul>
<?php
$langs = array("JavaScript",
"HTML/CSS", "PHP",
"Python", "Ruby");
foreach ($langs as $lang) {
echo "<li>$lang</li>";
}
unset($lang);
?>
</ul>
</div>
</body>
</html>
h1 {
font-family: Verdana, sans-serif;
font-size: 18px;
}
ul {
list-style-type: decimal-leading-zero;
font-family: Tahoma, sans-serif;
}
.wrapper {
height: 100px;
border-radius: 5px;
background-color: #C3E9FA;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment