George Mastro
Full Stack Web Developer @netstudio
HyperText Markup Language
Cascading Style Sheets
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>I am a heading!</h1>
<p>I am a paragraph!</p>
</body>
</html>
<tagname>Some Content</tagname>
<selfclosing /> ή <selfclosing>
area, base, br, col, embed, hr, img, input,
keygen, link, meta, param, source, track, wbr
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<meta name="description" content="This is my webstie about website things.">
<meta name="keywords" content="various, keywors, here">
<meta name="author" content="George Mastro">
</head>
<body>
<h1>I am a heading!</h1>
<p>I am a paragraph!</p>
</body>
</html>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
...
<h6>Heading 6</h6>
<p>I am a paragraph!</p>
<em>I am emphasis & italic</em>
<strong>I am important and bold</strong>
<blockquote>I am a block quote</blockquote>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
...
<h6>Heading 6</h6>
<div>
<p>I am a paragraph!</p>
</div>
<div>Some text here <span>I am a special text!</span></div>
<strong>I am important and bold</strong>
<blockquote>I am a block quote</blockquote>
<h3>I am an unordered list</h3>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
<h3>I am an ordered list</h3>
<ol>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>
<h3>I am a description list</h3>
<dl>
<dt>Coffee</dt>
<dd>- black hot drink</dd>
<dt>Milk</dt>
<dd>- white cold drink</dd>
</dl>
.
.
.
</head>
<body>
<header>
<nav>
I am navigation!
</nav>
</header>
<section>
<h1>I am a section</h1>
<article>
<h2>I am an article</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit,
et dolore magna aliqua. Ut enim ad minim veniam, quis no
aliquip ex ea commodo consequat. Duis aute irure dolor in
dolore eu fugiat nulla pariatur. Excepteur sint occaecat
officia deserunt mollit anim id est laborum.</p>
</article>
</section>
<aside>
<h2>I am an aside</h2>
</aside>
<footer>
<p>I am the footer.</p>
</footer>
</body>
body {
background: pink;
}
h1 {
color: red;
}
div {
background-color: blue;
color: white;
font-family: Helvetica;
width: 500px;
}
selector {
property: value;
}
p {
color: red;
}
header {
background-color: red;
}
.alert {
color: red;
}
<p class="alert">Alert! Alert!</p>
#navigation {
background-color: black;
}
<nav id="navigation">I'm here to navigate you.</nav>
<head>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<head>
<style>
header {
background-color: blue;
}
p {
color: red;
}
</style>
</head>
<header>
<nav>
I am navigation!
</nav>
</header>
<section>
<h1>I am a section</h1>
<article>
<h2>I am an article</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit,
et dolore magna aliqua. Ut enim ad minim veniam, quis no
aliquip ex ea commodo consequat. Duis aute irure dolor in
dolore eu fugiat nulla pariatur. Excepteur sint occaecat
officia deserunt mollit anim id est laborum.</p>
</article>
</section>
<footer>
<p>I am the footer.</p>
</footer>
<p style="color: red;">I am a red paragraph!</p>
selector {
display: inline;
}
selector-two {
display: inline-block;
}
selector-three {
display: block;
}
play here: https://flexbox.help/
and here: flexboxfroggy.com
http://htmldog.com/guides/css/advanced/
g.mastro@netstudio.gr
n.charalampidis@netstudio.gr
Turn PSD to HTML
By George Mastro
Code Arena | Day 1 | Part 1