text-transform



значения свойства:


  • none
  • capitalize
  • uppercase
  • lowercase
  • inherit



css/style.css
  • .a {
  •  text-transform: none;
  • }
  •  
  • .c {
  •  text-transform: lowercase;
  • }
.a {
 text-transform: none;
}

.c {
 text-transform: lowercase;
}


index.html
  • <!DOCTYPE html>
  • <html>
  • <head>
  •  <meta charset="utf-8" />
  •  <title>New Page</title>
  •  <link href="css/style.css" rel="stylesheet" />
  •  <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
  • </head>
  • <body>
  •  <p class="a">to be or not to be?</p>
  •  <br />
  •  <p id="p1">to be or not to be?</p>
  •  <br />
  •  <p class="b">to be or not to be?</p>
  •  <br />
  •  <p class="c">TO BE OR NOT TO BE?</p>
  • <script>
  •  /*JavaScript*/
  •  document.getElementById("p1").style.textTransform = "capitalize";
  •  /*jQuery*/
  •  $(document).ready(function () {
  •   $(".b").css({ "text-transform": "uppercase" });
  •  });
  • </script>
  • </body>
  • </html>
  • <!DOCTYPE html>
  • <html>
  • <head>
  •  <meta charset="utf-8" />
  •  <title>New Page</title>
  •  <link href="css/style.css" rel="stylesheet" />
  •  <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
  • </head>
  • <body>
  •  <p class="a">to be or not to be?</p>
  •  <br />
  •  <p id="p1">to be or not to be?</p>
  •  <br />
  •  <p class="b">to be or not to be?</p>
  •  <br />
  •  <p class="c">TO BE OR NOT TO BE?</p>
  • <script>
  •  /*JavaScript*/
  •  document.getElementById("p1").style.textTransform = "capitalize";
  •  /*jQuery*/
  •  $(document).ready(function () {
  •   $(".b").css({ "text-transform": "uppercase" });
  •  });
  • </script>
  • </body>
  • </html>