Explain about divions (
tag) Or Formatting blocks in html.


Explain about divisions (
tag) Or Formatting blocks in html.
 
The HTML
tag is used for defining a section of your document. With the div tag, you can group large sections of HTML elements together and format them with CSS.
Using
tag changing the appearance of block elements, any formatting that need adding inside the
 tag as follows.

Syntax: < div class = “ any element”>
             < P > - - -
             < h1 > - - -
             

Division is a logical part of the document and we cant treat divisions as individual items. 
The difference between the div tag and the span tag is that the div tag is used with blocklevel elements whilst the span tag is used with inline elements.
Example
  
      HTML div Tag
     
  
  
     
 
padding-bottom: 20px;text-align: justify; width: 140px; color: red; ">
         Welcome to our website. We provide tutorials on various subjects.
     
  

Related

Web Technology 3785128259174755193

Post a Comment

emo-but-icon

Follow Us

item