<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="https://peda.net/:static/539/atom.xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>29. lokakuuta 2025</title>
<id>https://peda.net/id/4e5986a2b40</id>
<updated>2025-10-28T15:23:35+02:00</updated>
<link href="https://peda.net/id/4e5986a2b40:atom" rel="self" />
<link href="https://peda.net/orivesi/perusopetus/yhteiskoulu/oppiaineet/tietoteknikka/tvt-ja-ohjelmointikurssi-25-26/29.-lokakuuta-2025#top" rel="alternate" />
<logo>https://peda.net/:static/539/peda.net.logo.bg.svg</logo>
<rights type="html">&lt;div class=&quot;license&quot;&gt;Tämän sivun lisenssi &lt;a rel=&quot;license&quot; href=&quot;https://peda.net/info&quot;&gt;Peda.net-yleislisenssi&lt;/a&gt;&lt;/div&gt;&#10;</rights>

<entry>
<title>Tyylittelyä</title>
<id>https://peda.net/id/88214b86b40</id>
<updated>2025-10-29T09:21:33+02:00</updated>
<link href="https://peda.net/orivesi/perusopetus/yhteiskoulu/oppiaineet/tietoteknikka/tvt-ja-ohjelmointikurssi-25-26/29.-lokakuuta-2025/tyylittelya#top" />
<content type="html">Keskitytään vaihtelun vuoksi hetkeksi nettisivuihin ja niiden tyyleihin:&lt;br/&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Oman peda.net -sivusi tyyliin&lt;/li&gt;&#10;&lt;li&gt;Oman pelisi tyyleihin&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;h3&gt;CSS-tyylit&lt;/h3&gt;&#10;&lt;br/&gt;&#10;&lt;h3&gt;&lt;!--filtered attribute: data-start=&quot;142&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;162&quot;--&gt;🖥️ Mikä on CSS?&lt;/h3&gt;&#10;&lt;p&gt;&lt;!--filtered attribute: data-start=&quot;164&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;293&quot;--&gt;&lt;strong&gt;&lt;!--filtered attribute: data-start=&quot;164&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;171&quot;--&gt;CSS&lt;/strong&gt; tulee sanoista &lt;em&gt;&lt;!--filtered attribute: data-start=&quot;187&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;211&quot;--&gt;Cascading Style Sheets&lt;/em&gt;.&lt;br/&gt;&#10;&lt;!--filtered attribute: data-start=&quot;212&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;215&quot;--&gt;Se tarkoittaa &lt;strong&gt;&lt;!--filtered attribute: data-start=&quot;229&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;244&quot;--&gt;tyylisivuja&lt;/strong&gt;, joilla kerrotaan, miltä verkkosivu &lt;strong&gt;&lt;!--filtered attribute: data-start=&quot;281&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;292&quot;--&gt;näyttää&lt;/strong&gt;.&lt;/p&gt;&#10;&lt;p&gt;&lt;!--filtered attribute: data-start=&quot;295&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;455&quot;--&gt;Jos &lt;strong&gt;&lt;!--filtered attribute: data-start=&quot;299&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;307&quot;--&gt;HTML&lt;/strong&gt; kertoo, mitä sivulla &lt;strong&gt;&lt;!--filtered attribute: data-start=&quot;329&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;335&quot;--&gt;on&lt;/strong&gt; (esim. tekstiä, kuvia, linkkejä),&lt;br/&gt;&#10;&lt;!--filtered attribute: data-start=&quot;369&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;372&quot;--&gt;niin &lt;strong&gt;&lt;!--filtered attribute: data-start=&quot;377&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;384&quot;--&gt;CSS&lt;/strong&gt; kertoo, miltä se &lt;strong&gt;&lt;!--filtered attribute: data-start=&quot;402&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;413&quot;--&gt;näyttää&lt;/strong&gt; (esim. värit, fontit, taustat, asettelu).&lt;br/&gt;&#10;(Lisäksi &lt;b&gt;JavaScript&lt;/b&gt; luo sivullesi toiminnallisuutta.)&lt;/p&gt;&#10;&lt;hr&gt;&lt;/hr&gt;&lt;!--filtered attribute: data-start=&quot;457&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;460&quot;--&gt;&#10;&lt;h3&gt;&lt;!--filtered attribute: data-start=&quot;462&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;491&quot;--&gt;🎨 Esimerkki ilman CSS:ää&lt;/h3&gt;&#10;&lt;p&gt;&lt;!--filtered attribute: data-start=&quot;493&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;538&quot;--&gt;HTML-sivu ilman CSS:ää näyttää aika tylsältä:&lt;/p&gt;&#10;&lt;div class=&quot;contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary&quot;&gt;&#10;&lt;div class=&quot;sticky top-9&quot;&gt;&#10;&lt;div class=&quot;absolute end-0 bottom-0 flex h-9 items-center pe-2&quot;&gt;&#10;&lt;div class=&quot;bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs&quot;&gt; &lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;div class=&quot;overflow-y-auto p-4&quot; dir=&quot;ltr&quot;&gt;&lt;code class=&quot;whitespace-pre! language-html&quot;&gt;&lt;span&gt;&lt;span class=&quot;hljs-tag&quot;&gt;&amp;lt;&lt;span class=&quot;hljs-name&quot;&gt;h1&lt;/span&gt;&lt;/span&gt;&amp;gt;Tervetuloa sivulleni&lt;span class=&quot;hljs-tag&quot;&gt;&amp;lt;/&lt;span class=&quot;hljs-name&quot;&gt;h1&lt;/span&gt;&lt;/span&gt;&amp;gt;&#10;&lt;span class=&quot;hljs-tag&quot;&gt;&amp;lt;&lt;span class=&quot;hljs-name&quot;&gt;p&lt;/span&gt;&lt;/span&gt;&amp;gt;Tämä on ensimmäinen kotisivuni.&lt;span class=&quot;hljs-tag&quot;&gt;&amp;lt;/&lt;span class=&quot;hljs-name&quot;&gt;p&lt;/span&gt;&lt;/span&gt;&amp;gt;&#10;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;&lt;!--filtered attribute: data-start=&quot;622&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;705&quot;--&gt;Selaimessa teksti näkyy mustana valkoisella taustalla, ilman värejä tai muotoiluja.&lt;/p&gt;&#10;&lt;hr&gt;&lt;/hr&gt;&lt;!--filtered attribute: data-start=&quot;707&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;710&quot;--&gt;&#10;&lt;h3&gt;&lt;!--filtered attribute: data-start=&quot;712&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;736&quot;--&gt;🌈 Sama sivu CSS:llä&lt;/h3&gt;&#10;&lt;p&gt;&lt;!--filtered attribute: data-start=&quot;738&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;796&quot;--&gt;Nyt lisätään CSS-tyyli, joka tekee sivusta vähän nätimmän:&lt;/p&gt;&#10;&lt;div class=&quot;contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary&quot;&gt;&#10;&lt;div class=&quot;sticky top-9&quot;&gt;&#10;&lt;div class=&quot;absolute end-0 bottom-0 flex h-9 items-center pe-2&quot;&gt;&#10;&lt;div class=&quot;bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs&quot;&gt; &lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;div class=&quot;overflow-y-auto p-4&quot; dir=&quot;ltr&quot;&gt;&lt;code class=&quot;whitespace-pre! language-html&quot;&gt;&lt;span&gt;&lt;span class=&quot;hljs-tag&quot;&gt;&amp;lt;&lt;span class=&quot;hljs-name&quot;&gt;h1&lt;/span&gt;&lt;/span&gt;&amp;gt;Tervetuloa sivulleni&lt;span class=&quot;hljs-tag&quot;&gt;&amp;lt;/&lt;span class=&quot;hljs-name&quot;&gt;h1&lt;/span&gt;&lt;/span&gt;&amp;gt;&#10;&lt;span class=&quot;hljs-tag&quot;&gt;&amp;lt;&lt;span class=&quot;hljs-name&quot;&gt;p&lt;/span&gt;&lt;/span&gt;&amp;gt;Tämä on ensimmäinen kotisivuni.&lt;span class=&quot;hljs-tag&quot;&gt;&amp;lt;/&lt;span class=&quot;hljs-name&quot;&gt;p&lt;/span&gt;&lt;/span&gt;&amp;gt;&#10;&#10;&lt;span class=&quot;hljs-tag&quot;&gt;&amp;lt;&lt;span class=&quot;hljs-name&quot;&gt;style&lt;/span&gt;&lt;/span&gt;&amp;gt;&#10;  &lt;span class=&quot;hljs-selector-tag&quot;&gt;body&lt;/span&gt; {&#10;    &lt;span class=&quot;hljs-attribute&quot;&gt;background-color&lt;/span&gt;: lightblue; &lt;span class=&quot;hljs-comment&quot;&gt;/* taustan väri */&lt;/span&gt;&#10;  }&#10;&#10;  &lt;span class=&quot;hljs-selector-tag&quot;&gt;h1&lt;/span&gt; {&#10;    &lt;span class=&quot;hljs-attribute&quot;&gt;color&lt;/span&gt;: darkblue; &lt;span class=&quot;hljs-comment&quot;&gt;/* otsikon väri */&lt;/span&gt;&#10;    &lt;span class=&quot;hljs-attribute&quot;&gt;text-align&lt;/span&gt;: center; &lt;span class=&quot;hljs-comment&quot;&gt;/* keskitys */&lt;/span&gt;&#10;  }&#10;&#10;  &lt;span class=&quot;hljs-selector-tag&quot;&gt;p&lt;/span&gt; {&#10;    &lt;span class=&quot;hljs-attribute&quot;&gt;font-size&lt;/span&gt;: &lt;span class=&quot;hljs-number&quot;&gt;18px&lt;/span&gt;; &lt;span class=&quot;hljs-comment&quot;&gt;/* tekstin koko */&lt;/span&gt;&#10;    &lt;span class=&quot;hljs-attribute&quot;&gt;color&lt;/span&gt;: black; &lt;span class=&quot;hljs-comment&quot;&gt;/* tekstin väri */&lt;/span&gt;&#10;  }&#10;&lt;span class=&quot;hljs-tag&quot;&gt;&amp;lt;/&lt;span class=&quot;hljs-name&quot;&gt;style&lt;/span&gt;&lt;/span&gt;&amp;gt;&#10;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;&lt;!--filtered attribute: data-start=&quot;1142&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1207&quot;--&gt;Nyt sivulla on sininen tausta, otsikko keskellä ja isompi teksti.&lt;/p&gt;&#10;&lt;hr&gt;&lt;/hr&gt;&lt;!--filtered attribute: data-start=&quot;1209&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1212&quot;--&gt;&#10;&lt;h3&gt;&lt;!--filtered attribute: data-start=&quot;1214&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1234&quot;--&gt;🔍 CSS:n rakenne&lt;/h3&gt;&#10;&lt;p&gt;&lt;!--filtered attribute: data-start=&quot;1236&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1285&quot;--&gt;CSS koostuu &lt;strong&gt;&lt;!--filtered attribute: data-start=&quot;1248&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1262&quot;--&gt;säännöistä&lt;/strong&gt;, joissa on kolme osaa:&lt;/p&gt;&#10;&lt;div class=&quot;contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary&quot;&gt;&#10;&lt;div class=&quot;sticky top-9&quot;&gt;&#10;&lt;div class=&quot;absolute end-0 bottom-0 flex h-9 items-center pe-2&quot;&gt;&#10;&lt;div class=&quot;bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs&quot;&gt; &lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;div class=&quot;overflow-y-auto p-4&quot; dir=&quot;ltr&quot;&gt;&lt;code class=&quot;whitespace-pre! language-css&quot;&gt;&lt;span&gt;&lt;span class=&quot;hljs-selector-tag&quot;&gt;p&lt;/span&gt; {&#10;  &lt;span class=&quot;hljs-attribute&quot;&gt;color&lt;/span&gt;: red;&#10;  &lt;span class=&quot;hljs-attribute&quot;&gt;font-size&lt;/span&gt;: &lt;span class=&quot;hljs-number&quot;&gt;20px&lt;/span&gt;;&#10;}&#10;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;ul&gt;&lt;!--filtered attribute: data-start=&quot;1338&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1575&quot;--&gt;&#10;&lt;li&gt;&lt;!--filtered attribute: data-start=&quot;1338&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1439&quot;--&gt;&#10;&lt;p&gt;&lt;!--filtered attribute: data-start=&quot;1340&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1439&quot;--&gt;&lt;code&gt;&lt;!--filtered attribute: data-start=&quot;1340&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1343&quot;--&gt;p&lt;/code&gt; = &lt;strong&gt;&lt;!--filtered attribute: data-start=&quot;1346&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1358&quot;--&gt;valitsin&lt;/strong&gt;, kertoo mihin HTML-elementtiin tyyli vaikuttaa (tässä kaikki kappaleet &lt;code&gt;&lt;!--filtered attribute: data-start=&quot;1430&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1435&quot;--&gt;&amp;lt;p&amp;gt;&lt;/code&gt;).&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&lt;!--filtered attribute: data-start=&quot;1440&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1524&quot;--&gt;&#10;&lt;p&gt;&lt;!--filtered attribute: data-start=&quot;1442&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1524&quot;--&gt;&lt;code&gt;&lt;!--filtered attribute: data-start=&quot;1442&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1455&quot;--&gt;color: red;&lt;/code&gt; = &lt;strong&gt;&lt;!--filtered attribute: data-start=&quot;1458&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1472&quot;--&gt;ominaisuus&lt;/strong&gt; ja sen &lt;strong&gt;&lt;!--filtered attribute: data-start=&quot;1480&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1488&quot;--&gt;arvo&lt;/strong&gt; (tässä tekstin väri on punainen).&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&lt;!--filtered attribute: data-start=&quot;1525&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1575&quot;--&gt;&#10;&lt;p&gt;&lt;!--filtered attribute: data-start=&quot;1527&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1575&quot;--&gt;Jokainen sääntö päättyy &lt;strong&gt;&lt;!--filtered attribute: data-start=&quot;1551&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1574&quot;--&gt;puolipisteeseen (;)&lt;/strong&gt;.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;hr&gt;&lt;/hr&gt;&lt;!--filtered attribute: data-start=&quot;1577&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1580&quot;--&gt;&#10;&lt;h3&gt;&lt;!--filtered attribute: data-start=&quot;1582&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1622&quot;--&gt;📚 Miten CSS voidaan lisätä sivulle?&lt;/h3&gt;&#10;&lt;p&gt;&lt;!--filtered attribute: data-start=&quot;1624&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1661&quot;--&gt;CSS voidaan laittaa kolmella tavalla:&lt;/p&gt;&#10;&lt;ol&gt;&lt;!--filtered attribute: data-start=&quot;1663&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;2013&quot;--&gt;&#10;&lt;li&gt;&lt;!--filtered attribute: data-start=&quot;1663&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1744&quot;--&gt;&#10;&lt;p&gt;&lt;!--filtered attribute: data-start=&quot;1666&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1744&quot;--&gt;&lt;strong&gt;&lt;!--filtered attribute: data-start=&quot;1666&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1701&quot;--&gt;Samaan tiedostoon HTML:n kanssa&lt;/strong&gt; (käyttämällä &lt;code&gt;&lt;!--filtered attribute: data-start=&quot;1715&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1724&quot;--&gt;&amp;lt;style&amp;gt;&lt;/code&gt;-osaa kuten yllä).&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&lt;!--filtered attribute: data-start=&quot;1745&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1876&quot;--&gt;&#10;&lt;p&gt;&lt;!--filtered attribute: data-start=&quot;1748&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1814&quot;--&gt;&lt;strong&gt;&lt;!--filtered attribute: data-start=&quot;1748&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1773&quot;--&gt;Erilliseen tiedostoon&lt;/strong&gt; (esim. &lt;code&gt;&lt;!--filtered attribute: data-start=&quot;1781&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1792&quot;--&gt;style.css&lt;/code&gt;) ja linkitetään näin:&lt;/p&gt;&#10;&lt;div class=&quot;contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary&quot;&gt;&#10;&lt;div class=&quot;sticky top-9&quot;&gt;&#10;&lt;div class=&quot;absolute end-0 bottom-0 flex h-9 items-center pe-2&quot;&gt;&#10;&lt;div class=&quot;bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs&quot;&gt; &lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;div class=&quot;overflow-y-auto p-4&quot; dir=&quot;ltr&quot;&gt;&lt;code class=&quot;whitespace-pre! language-html&quot;&gt;&lt;span&gt;&lt;span class=&quot;hljs-tag&quot;&gt;&amp;lt;&lt;span class=&quot;hljs-name&quot;&gt;link&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;hljs-attr&quot;&gt;rel&lt;/span&gt;=&lt;span class=&quot;hljs-string&quot;&gt;&amp;quot;stylesheet&amp;quot;&lt;/span&gt; &lt;span class=&quot;hljs-attr&quot;&gt;href&lt;/span&gt;=&lt;span class=&quot;hljs-string&quot;&gt;&amp;quot;style.css&amp;quot;&lt;/span&gt;&amp;gt;&#10;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&lt;!--filtered attribute: data-start=&quot;1877&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;2013&quot;--&gt;&#10;&lt;p&gt;&lt;!--filtered attribute: data-start=&quot;1880&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1949&quot;--&gt;&lt;strong&gt;&lt;!--filtered attribute: data-start=&quot;1880&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1910&quot;--&gt;Suoraan yhteen elementtiin&lt;/strong&gt; (ei suositeltavaa, mutta mahdollista):&lt;/p&gt;&#10;&lt;div class=&quot;contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary&quot;&gt;&#10;&lt;div class=&quot;sticky top-9&quot;&gt;&#10;&lt;div class=&quot;absolute end-0 bottom-0 flex h-9 items-center pe-2&quot;&gt;&#10;&lt;div class=&quot;bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs&quot;&gt; &lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;div class=&quot;overflow-y-auto p-4&quot; dir=&quot;ltr&quot;&gt;&lt;code class=&quot;whitespace-pre! language-html&quot;&gt;&lt;span&gt;&lt;span class=&quot;hljs-tag&quot;&gt;&amp;lt;&lt;span class=&quot;hljs-name&quot;&gt;p&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;hljs-attr&quot;&gt;style&lt;/span&gt;=&lt;span class=&quot;hljs-string&quot;&gt;&amp;quot;color: red;&amp;quot;&lt;/span&gt;&amp;gt;Punainen teksti&lt;span class=&quot;hljs-tag&quot;&gt;&amp;lt;/&lt;span class=&quot;hljs-name&quot;&gt;p&lt;/span&gt;&lt;/span&gt;&amp;gt;&#10;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;hr&gt;&lt;/hr&gt;&lt;!--filtered attribute: data-start=&quot;2015&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;2018&quot;--&gt;&#10;&lt;h3&gt;&lt;!--filtered attribute: data-start=&quot;2020&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;2047&quot;--&gt;💡 Miksi CSS on tärkeä?&lt;/h3&gt;&#10;&lt;ul&gt;&lt;!--filtered attribute: data-start=&quot;2049&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;2249&quot;--&gt;&#10;&lt;li&gt;&lt;!--filtered attribute: data-start=&quot;2049&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;2106&quot;--&gt;&#10;&lt;p&gt;&lt;!--filtered attribute: data-start=&quot;2051&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;2106&quot;--&gt;Se tekee verkkosivuista &lt;strong&gt;&lt;!--filtered attribute: data-start=&quot;2075&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;2103&quot;--&gt;kauniimpia ja selkeämpiä&lt;/strong&gt;.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&lt;!--filtered attribute: data-start=&quot;2107&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;2166&quot;--&gt;&#10;&lt;p&gt;&lt;!--filtered attribute: data-start=&quot;2109&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;2166&quot;--&gt;Se auttaa erottamaan sisällön (HTML) ja ulkoasun (CSS).&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&lt;!--filtered attribute: data-start=&quot;2167&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;2249&quot;--&gt;&#10;&lt;p&gt;&lt;!--filtered attribute: data-start=&quot;2169&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;2249&quot;--&gt;Samaa tyyliä voi käyttää &lt;strong&gt;&lt;!--filtered attribute: data-start=&quot;2194&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;2213&quot;--&gt;monella sivulla&lt;/strong&gt;, jolloin sivusto pysyy yhtenäisenä.&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;/p&gt;&#10;&lt;hr&gt;&lt;/hr&gt;&lt;!--filtered attribute: data-start=&quot;2015&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;2018&quot;--&gt;&#10;&lt;p&gt;&lt;!--filtered attribute: data-start=&quot;839&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;880&quot;--&gt;💡 &lt;strong&gt;&lt;!--filtered attribute: data-start=&quot;842&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;880&quot;--&gt;Kolme verkkosivun kieltä lyhyesti:&lt;/strong&gt;&lt;/p&gt;&#10;&lt;ul&gt;&lt;!--filtered attribute: data-start=&quot;883&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;1044&quot;--&gt;&#10;&lt;li&gt;&lt;!--filtered attribute: data-start=&quot;883&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;929&quot;--&gt;&#10;&lt;p&gt;&lt;!--filtered attribute: data-start=&quot;885&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;929&quot;--&gt;&lt;strong&gt;&lt;!--filtered attribute: data-start=&quot;885&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;893&quot;--&gt;HTML&lt;/strong&gt; = sisältö (teksti, kuvat, linkit)&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&lt;!--filtered attribute: data-start=&quot;932&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;979&quot;--&gt;&#10;&lt;p&gt;&lt;!--filtered attribute: data-start=&quot;934&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;979&quot;--&gt;&lt;strong&gt;&lt;!--filtered attribute: data-start=&quot;934&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;941&quot;--&gt;CSS&lt;/strong&gt; = ulkoasu (värit, fontit, asettelu)&lt;br/&gt;&#10;&lt;strong&gt;&lt;!--filtered attribute: data-start=&quot;984&quot;--&gt;&lt;!--filtered attribute: data-end=&quot;998&quot;--&gt;JavaScript&lt;/strong&gt; = toiminta (napit, animaatiot, vuorovaikutus)&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h3&gt;Ensimmäinen harjoituskokonaisuus&lt;/h3&gt;&#10;&lt;br/&gt;&#10;Tutustu CSS-tyyleihin omalla Peda.net-sivullasi:&lt;br/&gt;&#10;&lt;span class=&quot;small&quot;&gt;&lt;a href=&quot;https://peda.net/orivesi/perusopetus/yhteiskoulu/oppiaineet/tietoteknikka/tvt-ja-ohjelmointikurssi-25-26/29.-lokakuuta-2025/tyylittelya/muokkaatyylia.png#top&quot; title=&quot;MuokkaaTyylia.png&quot;&gt;&lt;img src=&quot;https://peda.net/orivesi/perusopetus/yhteiskoulu/oppiaineet/tietoteknikka/tvt-ja-ohjelmointikurssi-25-26/29.-lokakuuta-2025/tyylittelya/muokkaatyylia.png:file/photo/07924d9c0a6d9a7567809f05fb9d41bcf75fdb7c/MuokkaaTyylia.png&quot; alt=&quot;&quot; title=&quot;MuokkaaTyylia.png&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Kokeile valmiit toiminnot Muokkaa tyylistä&lt;/li&gt;&#10;&lt;li&gt;Kokeile sen jälkeen osaatko tehdä omia asetuksia Lisäasetukset-kohdassa:&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;br/&gt;&#10;&lt;span class=&quot;small&quot;&gt;&lt;a href=&quot;https://peda.net/orivesi/perusopetus/yhteiskoulu/oppiaineet/tietoteknikka/tvt-ja-ohjelmointikurssi-25-26/29.-lokakuuta-2025/tyylittelya/csstyylitpedanetissalisaasetukset.png#top&quot; title=&quot;CSStyylitPedaNetissaLisaAsetukset.png&quot;&gt;&lt;img src=&quot;https://peda.net/orivesi/perusopetus/yhteiskoulu/oppiaineet/tietoteknikka/tvt-ja-ohjelmointikurssi-25-26/29.-lokakuuta-2025/tyylittelya/csstyylitpedanetissalisaasetukset.png:file/photo/505bf9fcc5627be766d8451095f6036ff5df2a29/CSStyylitPedaNetissaLisaAsetukset.png&quot; alt=&quot;&quot; title=&quot;CSStyylitPedaNetissaLisaAsetukset.png&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Esittele muutokset opettajalle&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;h3&gt;Toinen harjoituskokonaisuus&lt;/h3&gt;&#10;Voit seuraavaksi tuunata peliäsi.&lt;br/&gt;&#10;Kiinnitä huomio pelisi ulkoasuun ja keskity erityisesti tekemään muutoksia CSS-tyyleihin. &lt;br/&gt;&#10;Olisi parempi, että tämä tyyliasetukset olisivat sinulla omassa tiedostossaan (esim. nimellä style.css). &lt;a href=&quot;https://peda.net/id/d126832a987&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Katso aiempaa oppituntia vibe-koodauksesta.&lt;/a&gt;&lt;br/&gt;&#10;&lt;br/&gt;&#10;Voit käyttää myös selaimesi kehittäjän työkaluja, jonka avulla pääset tutkimaan, miten mikäkin osa pelistäsi jäsentyy.&lt;br/&gt;&#10;&lt;span class=&quot;medium&quot;&gt;&lt;a href=&quot;https://peda.net/orivesi/perusopetus/yhteiskoulu/oppiaineet/tietoteknikka/tvt-ja-ohjelmointikurssi-25-26/29.-lokakuuta-2025/tyylittelya/kehittajan-tyokalut.png2#top&quot; title=&quot;kehittajan tyokalut.png&quot;&gt;&lt;img src=&quot;https://peda.net/orivesi/perusopetus/yhteiskoulu/oppiaineet/tietoteknikka/tvt-ja-ohjelmointikurssi-25-26/29.-lokakuuta-2025/tyylittelya/kehittajan-tyokalut.png2:file/photo/f200a2c3fb48303b5d5aa2661c171d31881a1335/kehittajan%20tyokalut.png&quot; alt=&quot;&quot; title=&quot;kehittajan tyokalut.png&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;</content>
<published>2025-10-28T15:25:11+02:00</published>
</entry>


</feed>