(What's a typical day like)
Turn the design into code
html (content)
css (styling, colors, font-size...)
javascript (interactivity)
<html>
<head>
<title>Cool Web Page</title>
</head>
<body>
<header>
<h1>Page Heading</h1>
</header>
<nav>
<ul>
<li><a href="/home">Home</a></li>
<li><a href="/page1">Page 1</a></li>
<li><a href="/page2">Page 2</a></li>
<li><a href="/page3">Page 3</a></li>
</ul>
</nav>
<section>
<p>Content and body of the page.</p>
<span class="click-element">Click Me!</span>
<img src="/path/to/image.jpg">
</section>
</body>
</html>
(hypertext markup language)
body {
color: #333;
background: white;
}
header {
background: #333;
}
h1 {
font-size: 32px;
margin: 0 10px;
color: white;
}
ul {
list-style: none;
padding-left: 20px;
}
p {
margin-bottom: 10px;
}
var element = document.querySelector('.click-element');
var img = document.querySelector('img');
hideImage();
element.addEventListener('click', function(evt){
evt.preventDefault();
showImage();
});
function showImage(){
img.style.display = 'block';
}
function hideImage(){
img.style.display = 'none';
}
(I don't recommend this)
Brother-in-law
Web Designer then Web Developer
Web Developer
Web Developer