• News
  • Gadgets
  • Reviews
  • Buy Guides
  • EV
  • Startups
  • Events
  • Tech Stories
  • Fintech
  • Opinion
  • Editor’s Pick
Facebook Twitter Instagram YouTube LinkedIn TikTok
Sunday, May 11
Facebook Twitter Instagram YouTube LinkedIn TikTok WhatsApp Discord Telegram
TechSathiTechSathi
  • News
  • Gadgets
    oppo-pad-4-pro-nepal

    Oppo Pad 4 pro price in nepal

    Samsung Galaxy S25 Ultra VS iPhone 16 Pro Max

    This is why you should buy the Oppo Reno 13 pro!

    huawei-smartwatch-price-in-nepal

    Huawei’s new smartwatches in Nepal !

    new-AirPods-max-price-in-nepal

    AirPods Max in Nepal : Pricing and availability!

  • Reviews
  • Buy Guides
  • EV
  • Startups
  • Events
  • Tech Stories
  • Fintech
  • Opinion
  • Editor’s Pick
TechSathiTechSathi
Home»Learn With TechSathi»7 HTML Elements That your Document Must Have!
Learn With TechSathi

7 HTML Elements That your Document Must Have!

3 Mins Read
Facebook Twitter LinkedIn Tumblr Pinterest WhatsApp VKontakte Email
html
Share
Facebook Twitter LinkedIn Pinterest Email Telegram WhatsApp

Every HTML document has a certain code structure. In programming, it is often referred to as boilerplate. The block of code shown below is what every HTML page contains or should contain.

<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>Skeleton</title>

<!--All the Elements in here are used by browsers and search engine web crawlers -->

</head>

<body>
<!-- All the elements in here markup the content users see in the screen -->
</body>

</html>

Let’s try to break it down!

DOCTYPE

It lets the browser know which version of HTML we are using. <!DOCTYPE html> means we are using the latest version of HTML i.e. HTML 5.

HTML 4 had something like

<!DOCTYPE HTML PUBLIC "
-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

HTML

It contains everything that should be in an HTML document apart from the DOCTYPE.

<html>
</html>

HEAD

The elements in the head aren’t displayed on the screen but are used to convey important information to browsers or search engine web crawlers. These include your meta tags, link to CSS file, etc.

<head>

<!--All the Elements in here are used by browsers and search engine web crawlers -->

</head>

Meta

Meta tag used for communicating meta-data to the browser and search engine robots. Meta-data is basically data that describes data. Meta data to describe who wrote the document for which audience can be laid out by using meta tags.

Meta Charset

It’s used to define the character encoding that the document is allowed to use. If you use <meta charset=”utf-8″> then it can handle any human language. But, character encoding such as ISO-8859-1 and ASCII wouldn’t be able to. UTF-8 is the only character set that should be used with HTML5.

<meta charset="utf-8">

Meta Viewport

A browser’s viewport is the space or the screen where the content can be seen. Mobile screen sort of use a virtual viewport and you need to zoom in mobile phones that render web pages made for desktop but that’s not good for webpages designed to be responsive.

<meta name="viewport" content="width=device-width, initial-scale=1">

The code is used as it is for mobile phone optimization. The code above would set the width of the content as much as that of device width and the initial scale would set an initial zoom level that’s fit for the specific device.

Title

It’s used to give the document an unique title that represents the purpose of the webpage. Title of an webpage is displayed in the browser tab.

<title> Title of the page </title>

Body

This element holds everything displayed on the screen. Anything a user is supposed to look at or play with is inside the body tag.

<body>
<!-- All the elements in here markup the content users see in the screen -->
</body>

And,

You can refer to MDN web docs if you want to go deeper and stay tuned to Techsathi for more content like this.

Share. Facebook Twitter Pinterest LinkedIn Tumblr WhatsApp Email
Previous Article#TootleAnthem Challenge: Make TikTok Videos and Win Prizes from Tootle
Next Article Redmi SonicBass Wireless Earphones Goes Official in Nepal for NPR. 2,099

Related Posts

Snapdragon 8 Elite: A Game-Changing Processor  

Do Not Disturb Mode on Android Devices

Android 15 features that you need to know!

 Comprehensive Guide to Buying a Tablet

Add A Comment

Leave A Reply Cancel Reply

Don't Miss
osmo-mobile-se-price-in-nepal

DJI OSMO Mobile SE Price in Nepal

Top Smartphones with Stylus Support in 2025

Nintendo Hints at a New 3D Super Mario Game

The smartphone camera closest to an actual camera – vivo X200 ULTRA .

  • Facebook 64K
  • Twitter 877
  • Instagram 5K
  • YouTube 11K
  • LinkedIn 1.6K
  • TikTok 3K
Our Picks
News

Stratos 2 plus; Zeblaze’s New Year’s launch!

3 Mins ReadBy Sujan Karna

Zeblaze is not an uncommon brand, in fact, it has been consistently launching newer products…

MacBook Pro M4 Pro ; Pricing and availability in Nepal!

MacBook Pro M4 Max in Nepal; pricing and availability

MacBook Pro M4 ; Coming soon in Nepal!

About Us
About Us

Nepal's go-to platform for tech news and updates. We want to be your Tech Sathi.

Contact

To contact us, you can email us at
“ [email protected] ”

Also, you can ring us at
“ +9779802040555 “

Pages
  • About Us
  • Advertise
  • Contact Us
  • Homepage
  • Privacy Policy
  • Submit Article
Facebook Twitter Instagram YouTube LinkedIn TikTok WhatsApp Discord Telegram
© 2025 Tech Sathi Pvt. Ltd.

Type above and press Enter to search. Press Esc to cancel.