Basic example

In this example below you will see how to do a Basic example with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by kevin0531, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright kevin0531 ©
  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>Basic example</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <!-- Learn about this code on MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-of-type -->

<div>
  <div>This element isn't counted.</div>
  <p>1st paragraph.</p>
  <p>2nd paragraph.</p>
  <div>This element isn't counted.</div>
  <p>3rd paragraph.</p>
  <p>4th paragraph.</p>
</div>
  
  

</body>

</html>

/*Downloaded from https://www.codeseek.co/kevin0531/basic-example-ZvMvLa */
/* Odd paragraphs */


/* First paragraph */
p:nth-of-type(1) {
  font-weight: bold;
}

Comments