Creating a Tuts+ Town Site with Joni (Bologna)
tutsplustown.com
Note: CodePen does this for us.
Elements
headings
<h1>I am the most important heading of all!</h1>
<h2>I'm less important.</h2>
<h3>I'm even less important.</h3>
<h4>I'm even less important.</h4>
<h5>I'm even less important.</h5>
<h6>I'm the least important.</h6>
images & attributes
<h1>Welcome To Tuts+ Town</h1>
<img src="http://tutsplustown.com/images/townheader.svg" alt="An illustration of Tuts Town tower." />
lists & links
lists & links
<ul>
<li>
<a href="#">The Snooze Inn</a>
</li>
</ul>
list with items and links
<h2>Sleep</h2>
<ul>
<li>
<a href="#">The Snooze Inn</a>
</li>
<li>
<a href="#">Zzz Hotel</a>
</li>
</ul>
<h1>Welcome To Tuts+ Town</h1>
<img src="images/townheader.svg" alt="An illustration of Tuts Town tower." />
<h2>Sleep</h2>
<ul>
<li>
<a href="#">The Snooze Inn</a>
</li>
<li>
<a href="#">Zzz Hotel</a>
</li>
</ul>
browser preview
body {
background-color: green;
}
body {
background-color: #FAF8DA;
}
header
<h1 class="main-heading">Welcome To Tuts+ Town</h1>
<img class="town-preview" src="http://tutsplustown.com/images/townheader.svg" alt="..." />
.main-heading {
font-size: 70px;
color: #205D76;
}
.town-preview {
width: 650px;
}
.main-heading {
font-size: 70px;
color: #205D76;
}
.town-preview {
width: 650px;
}
CSS Hint:
<h1 class="main-heading"></h1>
<img class="town-preview" />
HTML Hint: