Stylové soubory jazyka CSS mají příponu .css
.
Můžete je připojit k webu buďto způsobem ukázaným v tomto příkladu (pomocí tagu link
a atributu href
) nebo tak jak je ukázané v dalším příkladu.
Last active
September 24, 2019 06:44
-
-
Save SLeitgeb/4d91cc215efba2645790432115b74273 to your computer and use it in GitHub Desktop.
Web cartography lesson 1, example 1
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> | |
<link rel="stylesheet" type="text/css" href="./style.css" /> | |
</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> |
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
body { | |
background: #333; | |
} | |
h1 { | |
color: blue; | |
} | |
h2 { | |
display: none; | |
} | |
p { | |
border-top: 1px solid rgb(121, 66, 107); | |
color: red; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment