TIME NOW
World current time now,
CALENDAR
Calendar monthly, yearly
login GOLD PRICE, RATE
login HOROSCOPE
login DICTIONARIES, LISTS
login SCIENCE EDUCATION RELIGION
login FINANCE, BUSINESS
login WORLD COUNTRIES, WIKI

HTML code examples, samples, tutorial

Previous articlePage bottomNext article  ALL TOPICS

HTML. CSS lessons, examples - basics

 
CSS

Css is for Cascading Style Sheets.
http://www.creativebloq.com/web-design/examples-css-912710


1 example. CSS for elements
<html>
<head>

  <style type="text/css">

  body {
    color: purple;
    background-color: #d8da3d ;
    text-size: 14px;
    }

  </style>
 
</head>
<body>

    My text

</body>
</html>

2 example. CSS for BODY and DIV elements
<html>
<head>

  <style type="text/css">

  body {
    color: purple;
    background-color: #d8da3d ;
    font-size: 56px;
    }
 
  div {
      font-size: 40px;
      color: black;
  }
 
  </style>
 
</head>

<body>

    My text
    <div>Another text</div>
</body>
</html>

3 example. CSS for few elements
<html>
<head>

  <style type="text/css">

  body {
    color: purple;
    background-color: #d8da3d ;
    font-size: 56px;
    }
 
  div {
      font-size: 40px;
      color: black;
  }
 
  b, i, u {
      font-size: 14px;
      color: red;
  }
 
  </style>
 
</head>

<body>

    My text
    <div>Another text</div>
    <b>My B</b><br />
    <i>My I</i><br />
    <u>My U</u><br />
</body>
</html>
 
Previous articlePage topNext article  ALL TOPICS



 Use username: Guest, Anonymous, Programmer






QUOTES:
The worst solitude is to be destitute of sincere friendship.
Francis Bacon
Cheerfulness is the best promoter of health and is as friendly to the mind as to the body.
Joseph Addison
The only place where success comes before work is a dictionary.
Vidal Sassoon