0% found this document useful (0 votes)
6 views9 pages

HTML Basics: Structure and Tags Guide

The document provides an overview of HTML, including its basic structure and key elements such as <html>, <head>, <title>, and <body>. It explains the difference between container tags and empty tags, and gives examples of how to write HTML tags correctly. Additionally, it includes sample HTML code for creating a simple webpage.

Uploaded by

jecid34
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views9 pages

HTML Basics: Structure and Tags Guide

The document provides an overview of HTML, including its basic structure and key elements such as <html>, <head>, <title>, and <body>. It explains the difference between container tags and empty tags, and gives examples of how to write HTML tags correctly. Additionally, it includes sample HTML code for creating a simple webpage.

Uploaded by

jecid34
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

HTML

Hyper text markup language


HTML
 HTML vd;gJ tiyg;gf;fq;fis
cUthf;fg; gad;gLk; xU khu;f;fg;
nkhop MFk;.
 <html> The root element of the Html
 <head>Contains metadata about the document.
 <title>The title pf the webpage (displayed in the
browser's title bar)
 <body>The content of the webpage

 <h1>A level 1 heading


 <p>A paragraph
 <br>Break
 <html> xU gf;fj;jpd; njhlf;fk; MFk;.
 <head> tiyg;gf;fj;jpd; jiyg;G kw;Wk;
nkl;lh juTfs;MFk;.
 <title> tiyg;gf;fj;jpd; jiyg;G MFk;.
(cyhtpapd; tiyg;gf;fj;jpy;
Njhd;Wk; jiyg;G)
 <body> tiyg;gf;fj;jpd; cs;slf;fk; MFk;.
 <h1> Kjy;epiyj; jiyg;G MFk;.

 <p> ge;jp
 <br> tup ,ilntsp
Type of tags / tiffs;

Container Tags: Have opening and closing tags,


like <p> </p> , <h1> </h1>

Empty Tags: Self closing, like <img>, <br>


How to write a tag

Basic Structure mbg;gil mikg;G

<tagname> content
</tagname>
<tagname> cs;slf;fk; </tagname>

Example:
<h1> Hello World! </h2>
<html> </html>
<head>
</head>
<title>
</title>
<body>
</body>
<h1> </h1>
<p> </p>
<br> </br>
<html>
<head>
<tilte> My first webpage </title>
</head>
<body>
<h1>Hellow!</h1>
<p>This is my first webpage</p>
</body>
</html>
<html>
<head>
<tilte> Education</title>
</head>
<body>
<h1>East west city campus<h1>
<h2>East west city campus<h2>
<h3>East west city campus<h3>
<h4>East west city campus<h4>
</body>
</html>

You might also like