HTML - Introduction , syntax , comments , html-tags

INTRODUCTION TO HTML :


  • HTML stands for Hypertext Markup Language.
  • In 1991 html was found by scientist 'Tim Berners Lee'.
  • It is used to create web pages .
  • It is a standard  markup language.
  • The term Hypertext was coined by Ted Nelson which means it contains links to the other pages.
  • Markup means the specific type of text i.e. html uses html tags that shows the specific feature of that text.
  • html shows the structure of an web page.
       There are many versions of html :-

HTML 1.0-1191
HTML 2-1995
HTML 3.2-1997
HTML 4.01-1999
HTML5-2014

  • html5 is the latest version of html.
     

EASILY AVAILABLE HTML EDITORS : 
  • notepad
  • sublime text 3

BASIC SYNTAX OR STRUCTURE OF HTML :

   <html>

   <head>

       <title>____</title>  

   </head>

   <body>

        <tag1>

        <tag2>

   </body>

   </html>

    

EXAMPLE :

  <html>

  <head>  

       <title> Tprograming </title>       

  </head>

  <body>

       <p>Learn programming with us!</p>

  </body>


        


HTML COMMENTS :


  • By using html comment tag , you can add  error text or any other message .
  • The browser dosent't shows your comments in html document 
  • You can add message in comment section for remembering purpose.
  • This is an opening tag , no need to close.


SYNTAX : 


<!...........add comment here......>


EXAMPLE : 


<!program about p tag>














HTML TAGS :

  • HTML tags are like keywords that helps the browser or user to differentiate between normal data and html tags.
  •  They the browser , how to format the document according used tags in formatting.
  • Tags defined in < > this symbols .
  • < > called as an opening tag.
  • < / > called as an closing tag.





                       
The tag having its closing tag or companion tag is called as an paired tags . first tag is called as an opening tag and second is called as an closing tag or companion tag .The pair of opening tag and closing tag is called as paired tag.
for example : <p> tag has its closing tag </p> .



EXAMPLE : 




                       Tag that having no closing tag or companion tag is called as an singular tag . Singular tags are also called as opening tags .These tags dosen't have the compulsion of closing tags . They are unpaired and single .


Example : <br>,<hr> etc.

DOCTYPEto show the browser that which html version we are using
titlegive title in html document
metagives information about html document
stylegives styling and css information about document
linkshows linking between current document and other linked document




TagUse of tag
pused for writing paragraph
h1heading tag (largest size to heading )
h2heading tag
h3heading tag
h4heading tag
h5heading tag
h6heading tag(smallest size to heading)
brbreak line tag
prepreformatted text
emshows text that has stress emphasis
qmarks short quotation
abbrabbreviation tag shows the short form of element
delshows the range of text deleted from the document
addressshows the contact information of person or organization in the document
citeshows the reference to cited work of title of the document
strongshows the important text in bold
varused to define the variable for mathematical equation
codeused to define the piece of computer code
bdostands for bi-directional override which is used to change current direction
acronymused to spell out the another word
dfnused to specify the defining instance of term in an document
blockquoteshows the section of text quoted from another source
insused to mark text in document
sampused to represent output from computer program i.e. shows the output in browsers default font



brused to break line
hrhorizontal rule which used create sections in document



lishows list of elements
uldefines unordered list
oldefines ordered list
dtshows description list
ddshows definition of elements in list




tableused to create table in document
thused to define table heading
trused to define table raw
tdused to define table data
tbodydefines body content in html table
captiondefines html table caption
colused to give column properties to each column in table
theadused to give header to body content
tfootused to give footer in body content
colgroupshows groups of columns in html table



formused to create form in document
inputused to define input data
textareaused to insert multiple lines in form
buttonused to define the type of button used in form like submit or reset
selectused to create the drop-down list
optionused to choose option from created list
fieldsetused to group related elements in html form
labelshows label for element
legendused to give caption for parent element
optgroupcreates grouping of options in drop-down list



aused to give linking of another page in document
baseused to specify the base url



imgused to insert image in an html document
areaused to map area on image and make clickable for the user
mapused to define image map in document
paramcan pass parameters to object embedded in object element
objectused to show


OTHER TAG :

scriptdefines client-side script
noscriptused when we want to access the page when script is disabled