Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

html classes

<html>
  <style>
    .MyClass {
      background: black;
      text-align: center;
      color: white;
    }
  </style>
  <div class="MyClass">
    This text is styled by a css class
  </div>
  <!-- Fun Fact: If you are on vscode you can do .MyClass and press tab or enter -->
</html>
 
PREVIOUS NEXT
Tagged: #html #classes
ADD COMMENT
Topic
Name
4+7 =