HTML Learning

 

The main keyword of the whole content of a webpage should be display by h1 heading tag.

  1. <h1>Heading no. 1</h1>  
  2. <h2>Heading no. 2</h2>  
  3. <h3>Heading no. 3</h3>  
  4. <h4>Heading no. 4</h4>  
  5. <h5>Heading no. 5</h5>  
  6. <h6>Heading no. 6</h6>  

HTML Paragraph

If we are using various <p> tags in one HTML file then browser automatically adds a single blank line between the two paragraphs.

  1. <p>This is first paragraph.</p>  
  2. <p>This is second paragraph.</p>  
  3. <p>This is third paragraph.</p>  

HTML Scroll Marquee

It is a by default property. It is used to scroll the text from right to left, and restarts at the right side of the marquee when it is reached to the end of left side. After the completion of loop text disappears.
  1. <marquee width="100%" behavior="scroll" bgcolor="pink">  
  2. This is an example of a scroll marquee...  
  3. </marquee>  

HTML Slide Marquee

In slide marquee, all the contents to be scrolled will slide the entire length of marquee but stops at the end to display the content permanently.


  1. <marquee width="100%" behavior="slide" bgcolor="pink">  
  2. This is an example of a slide marquee...  
  3. </marquee>  

HTML Alternate Marquee

It scrolls the text from right to left and goes back left to right.

  1. <marquee width="100%" behavior="alternate" bgcolor="pink">  
  2. This is an example of a alternate marquee...  
  3. </marquee>  

HTML Background Image

  1. <tag background="Path_of_an_image">