Skip to content

Instantly share code, notes, and snippets.

@SLeitgeb
Last active October 3, 2019 15:22
Show Gist options
  • Save SLeitgeb/6615b1c13daf86362476b7440c08405e to your computer and use it in GitHub Desktop.
Save SLeitgeb/6615b1c13daf86362476b7440c08405e to your computer and use it in GitHub Desktop.
Web cartography lesson 1, example 2

Pokud připojíte CSS stylování ke stránce tímto způsobem (přímo do tagu style), stačí vám jediný soubor - index.html. Dokument je pořád v jazyce HTML, CSS stylování je připojené ale přímo v dokumentu.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Page title</title>
<style>
body {
background: #333;
}
h1 {
color: blue;
}
h2 {
display: none;
}
p {
border-top: 1px solid rgb(121, 66, 107);
color: red;
}
</style>
</head>
<body>
<h1>I’m a heading.</h1>
<p>I'm a paragraph.</p>
<ul>
<li>I’m unordered list item</li>
<li>I’m <em>another</em> <strong>unordered</strong> list item</li>
<li>I’m <strong><i>the last one</i></strong></li>
</ul>
<h2>I’m a heading, a smaller one, though.</h2>
<p>Geez, that is <a href="https://fortawesome.github.io/Font-Awesome/">awesome!</a></p>
<img src="http://bit.ly/1KkQDSj">
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment