What is HTML?

HTML means the body of a document...

* To understand better here's a simple html code:



When Run:

Image Not Working Try Reloading :D
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>

<h1>This is a Heading</h1>
<p>This is a paragraph.</p>

</body>
</html>


* Using The class Attribute



The HTML <class> attribute is used to specify a class for an HTML element.
Multiple HTML elements can share the same class.

In the following example we have three <div> elements with a class attribute with the value of "city". All of the three <div> elements will be styled
equally according to the .city style definition in the head section:

When Run:

Not working? try reloading the page :D
<!DOCTYPE html>
<html>
<head>
<style>
.city {
  background-color: tomato;
  color: white;
  border: 2px solid black;
  margin: 20px;
  padding: 20px;
}
</style>
</head>
<body>

<div class="city">
  <h2>London</h2>
  <p>London is the capital of England.</p>
</div>

<div class="city">
  <h2>Paris</h2>
  <p>Paris is the capital of France.</p>
</div>

<div class="city">
  <h2>Tokyo</h2>
  <p>Tokyo is the capital of Japan.</p>
</div>

</body>
</html>

When Run:

Not working? try reloading the page :D
<!DOCTYPE html>
<html>
<head>
<style>
#myHeader {
  background-color: lightblue;
  color: black;
  padding: 40px;
  text-align: center;
}
</style>
</head>
<body>

<h1 id="myHeader">My Header</h1>

</body>
</html>

Well... for now this html page is sadly ended cause im making the whole webpage alone :( and im tired Date: 03/10/2022