Sitemap

HTML BASCIS

3 min readDec 6, 2025

--

HTML — — — -> HYPERTEXT MARKUP LANGUAGE is a language that consists on these two things:

HYPERTEXT — — — → A text behind which a link is hidden whenever we click on it , it send us to that linked page on websites.

MARKUP — — — — -> Way of arranged things on the on the webpage.

Basic structure for writing html.

HTML STRUCTURE

As this html code contains :

  1. <!DOCTYPE HTML> — — — → it is written on top which tells the machine that its a document type of html code.
  2. <HTML> — -> Starting tag .
  3. <head> — → It is the heading tag that appears at top of the Webpage.
  4. <title> — → This tag is for title of the webpage and it appears at browser tab.
  5. <body> — → Most important tag as you have to write all the things here which is going to me appear on webpage of your webhsite.
  6. </title> ,</head>,</body></html> — → these are used to close the tag.

Tag — → we can say that it is a special keyword using which we create all elements of the html document.

Tag are of two types :

  1. Container tag :: Tag that contains both opening tag and closing tag also.

ex — <html> </html> , <h1> </h1>

2. Empty tag :: Tag which contains only opening tag.

ex — <br> ,<hr>

tags

Most used tag of HTML are:

— Heading tag :: This tag is used for giving headings , it is of 6 types ( h1 — h6).

syntax → <h1> hey </h1>

— paragraph tag :: Most used for writing paragraph in html document.

syantx → <p> </p>

Get Ashutosh Pandey’s stories in your inbox

Join Medium for free to get updates from this writer.

— br tag :: also kown as break tag use for breaking the line in html.

— hr tag :: this tag is used for giving horizontal line .

— bold tag :: used to bold the text.

syntax →<b>ashu</b>

— italic tag :: used to make text in italic.

synatx → <i> ashu </i>

— underline tag :: used to make test uderline.

synatx → <u> ashu </u>

— table tag :: used to create table in html.

supportive tag of tables are :

— table row (<tr></tr>) :: used to create row in table.

— table heading (<th></th>) :: use to write heading of the table.

— table data (<td></td>) :: used to write data in table.

Table

— List tag :: used to create list in HTML document .

list is of two types order list and unorder list.

— order list (<ol></ol>) → used to create list in a arranged order .

order list

— unorder list → these lists are without any order.

unorder list

— list item tag :: used for listing the number of items into the list tag.

— form tag :: most imortant and wide used tag as using this tag we create forms in HTML document .

synatx → <form> </form>

supporting tags of form are :

— label , input

--

--