Introduction to HTML | Build Your Own Static Website | Cheat Sheet

 


1. Basic Structure

The basic structure of any HTML document is as follows:

<!DOCTYPE html>
<html>
  <head></head>
  <body>
    Your code goes here
  </body>
</html>

2. Heading Element

The HTML  h1 element defines a main heading.

<h1>Tourism</h1>

3. Paragraph Element

The HTML p element defines a paragraph.

<p>Plan your trip wherever you want to go</p>

4. Button Element

The HTML button element defines a button.

<button>Get Started</button>

example:-

HTML Code:-

<!DOCTYPE html>
<html>
  <head></head>
  <body>
    <h1>Tourism</h1>
    <p>Plan your trip wherever you want to go</p>
    <button>Get Started</button>
  </body>
</html>

Output:- 

Comments

Popular posts from this blog

Introduction to CSS Box Model | Part 1 | Build Your Own Static Website | Cheat Sheet