HTML BASCIS
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.
As this html code contains :
- <!DOCTYPE HTML> — — — → it is written on top which tells the machine that its a document type of html code.
- <HTML> — -> Starting tag .
- <head> — → It is the heading tag that appears at top of the Webpage.
- <title> — → This tag is for title of the webpage and it appears at browser tab.
- <body> — → Most important tag as you have to write all the things here which is going to me appear on webpage of your webhsite.
- </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 :
- 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>
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.
— 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 .
— unorder list → these lists are without any order.
— 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




