Check out example codes for "HTML & CSS: Design and Build Web Sites". It will help you in understanding the concepts better.

Code Example 1

<!-- Answer to: "HTML & CSS: Design and Build Web Sites" -->

<!--
  A full-color introduction to the basics of HTML and CSS from the
  publishers of Wrox!

  Hold up! What are you doing? You don't need to pay anything to learn how to
  make a website... Use W3Schools! Or ask me for help on Discord: TigerYT#0001
-->

Learn ReactJs, React Native from akashmittal.com