i

Learn HTML and CSS in 10 Days

Text Properties All Together

Below is the code that contains all the text properties that you have learned so far. Go through it properly.

HTML

CSS

h2,

p {

  color: #555;

  font: 13px/20px "Times New Roman", Helvetica, Arial, sans-serif;

}

a {

  color: #0087cc;

}

a:hover {

  color: #ff7b29;

}

h2 {

  font-size: 22px;

  font-weight: bold;

  letter-spacing: -.02em;

  margin-bottom: 6px;

}

h2 a {

  text-decoration: none;

  text-shadow: 3px 3px 2px rgba(0, 0, 0, .2);

}

.byline {

  color: #9799a7;

  font-family: Georgia, Times, "Times New Roman", serif;

  font-style: italic;

  margin-bottom: 18px;

}

.intro {

  text-indent: 15px;

}

.intro a {

  font-size: 11px;

  font-weight: bold;

  text-decoration: underline;

  text-transform: uppercase;

}