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.
Last active
October 3, 2019 15:22
-
-
Save SLeitgeb/6615b1c13daf86362476b7440c08405e to your computer and use it in GitHub Desktop.
Web cartography lesson 1, example 2
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> | |
<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