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
var paragraphElement = window.document.createElement("p"); | |
var paragraphText = window.document.createTextNode("This paragraph was created by JavaScript"); | |
paragraphElement.appendChild(paragraphText); | |
window.document.addEventListener('DOMContentLoaded', function() { | |
window.document.querySelector('body').appendChild(paragraphElement); | |
}); |
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> | |
<title>My first website</title> | |
</head> | |
<body> | |
<h1>Hello World</h1> | |
<p>This is my first website</p> | |
</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
<head> | |
<title>My first website</title> | |
<link href="style.css" rel="stylesheet"> | |
</head> |
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
@import url(http://fonts.googleapis.com/css?family=Lobster); | |
body { | |
font-family: 'Lobster', cursive; | |
background:#444; | |
text-align: center; | |
} |
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
<head> | |
<title>My first website</title> | |
<link href="style.css" rel="stylesheet"> | |
<script src="script.js"></script> | |
</head> |
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
var paragraphElement = window.document.createElement("p"); | |
var paragraphText = window.document.createTextNode("This paragraph was created by JavaScript"); | |
paragraphElement.appendChild(paragraphText); | |
window.document.addEventListener('DOMContentLoaded', function() { | |
window.document.querySelector('body').appendChild(paragraphElement); | |
}); |
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> | |
<title>Beginner page</title> | |
<link rel="stylesheet" href="styles/reset.css"> | |
<link rel="stylesheet" href="styles/base.css"> | |
<link rel="stylesheet" href="styles/grid.css"> | |
<link rel="stylesheet" href="styles/helper-classes.css"> | |
<link rel="stylesheet" href="styles/header.css"> |
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
/** | |
* Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/) | |
* http://cssreset.com | |
*/ | |
html, body, div, span, | |
h1, h2, h3, h4, h5, h6, p, | |
a, strong, ul, li, article, | |
footer, header, nav, section { | |
margin: 0; | |
padding: 0; |
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
* { | |
box-sizing: border-box; | |
} |
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
<header class="header"> | |
<nav class="content-wrapper"> | |
<a class="nav-item active" href="index.html">Beginner</a> | |
<a class="nav-item" href="expert.html">Expert</a> | |
<a class="nav-twitter fa fa-twitter fa-2x" href=""></a> | |
</nav> | |
</header> |
OlderNewer