Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
 <head>
  <meta charset="utf-8">
  <title>Пример 4</title>
  <link rel="stylesheet" href="css/lesson4.css">
  <body>
    <p>Текст, в котором некоторые слова выделены <span class='red'>красным</span>, 
        <span class='yellow'>желтым</span> и <span class='green'>зеленым</span> цветом.
    </p>
  </body>
</html>
 
p{
    font-family: sans-serif;
    font-size: 24px;
    line-height: 1.5;
}
span{
    padding: 3px;
}
.red{
    color: #a91b0c;
    background: #f7b3ac;
}
.yellow{
    color: #7e7406;
    background: #fcf38d;
}
.green{
    color: #237f0a;
    background: #cdffc1;
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers