<h1>Titolo</h1>
<h2>Sottotitolo</h2>
<div id="container">
<p>Testo di riempimento per illustrare alcune caratteristiche del <span><u>CSS</u></span>.</p>
<p style="background-color:#00FFFF;">Interessanti sono anche le liste:</p>
<ul>
<li>Primo elemento</li>
<li>Secondo elemento</li>
<li>Terzo elemento</li>
</ul>
<div>E la differenza tra elementi di blocco quali appunto i div, le liste, i paragrafi, i tag h1, h2, ...</div>
<div>...ed elementi in linea come gli <span class="custom">span, <u>i tag per <i style="background-color:#FFFF00;">italico</i> e <b>grassetto</b></u></span>, come anche i <a href="javascript:void(0);">link</a>, gli input, ecc...</div>
</div>
CSS
h1,h2 {font-family:Arial;}
#container {border:solid 1px #888;padding:10px;}
span {color:#AA0000;font-weight:bold;}
span.custom {color:#000;font-weight:normal;}
span > u {text-decoration:none;}
span > u > i {text-decoration:underline;}
@media screen and (max-width:319px) {
span {color:#00AA00;}
}
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Fiddle Pages
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Get Fiddle Pages with PRO
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.