MyBlogHelp– A Blog for Digital Marketing, Affiliate Marketing, Organic Lead Generation.
  • Home
  • About
  • Contact
  • Privacy
  • Sitemap
  • BLOG
  • AFFILIATE MARKETING
    • LeadsArk
  • MORE
    • MAKE MONEY
      • ONLINE BUSINESS
      • ADSENSE
      • AFFILIATE MARKETING
    • BLOGGING
      • SEO
      • BlogSpot
      • WORPRESS
      • GOOGLE
      • COMPUTER TIPS
    • WEB DESIGN
      • HTML
      • CSS
      • BOOTSTRAP
      • JAVASCRIPT
      • JQUERY
    • WEB DESIGN
      • HTML
      • CSS
      • BOOTSTRAP
      • JAVASCRIPT
      • JQUERY
    • WEB DEVELOPMENT
      • PHP
      • WORDPRESS
  • DOWNLOADS
    • Blogger Template
    • Wordpress Theme
    • PDF

Wednesday, December 5, 2018

How to use Block and Inline Tags in HTML?

 MyBlogHelp     December 05, 2018     html     1 comment   

HTML Block and Inline Tags

          Block Tags

HTML has two types of block level and inline tags. Whenever block level tags are shown on the webpage, a line of space is created before and after that automatically. Some common block level tags are div, p and h1 etc.

          Inline Tags


The second types of tags are inline tags. When these tags are used, on the webpage these show up in the line of their previously used tags. If you do not use the <br/> tag then there is no space before and after it. Some inline tags are a span, anchor and img etc.

HTML <Div> Tag

The <div> tag is used to divide the page. This is also called a division tag. You can use other HTML tags in this tag. <div> is a block level tag. You can design your web page using this tag with CSS. This page divides the entire page into the section.

These sections can hide and show when you need it. By doing this, the information will be shown to the visitor, when he wants to see it. The CSS applies to all the tags inside of <div>.

The <div> tag can be used to separate different types of information from a webpage. An example of this is being given below.


The above script generates the given web page.

html-div-tag

Some other block-level tags

          <form>

<form> tag is a block level tag. With this tag, you can define the beginning and end of the form on a webpage. Other related tags from other HTML forms come within this tag.

        <h1> ..... </ h6>

All heading tags are block level tags. Every heading defines a block of itself where it has an automatic line break before and after.

         <p>

As you know paragraph is defined by <p> tag. This tag creates a break line before and after every paragraph. Therefore <p> tag is also known as block level tag.

         <ol>, <ul>

Both list tags <ol> and <ul> are block- level tags because every list defines a section for itself.

         <table>

The <table> tag is also considered a block level tag because it creates a separate section which is separate from the entire content of the page and includes line breaks before and after it.

         <pre>

This is a block level tag. All other tags can be used in this tag and by using it, as you configure tags in the text editor, it will show up the same on the webpage.

HTML <span> Tag

<span> is an inline tag. It is used to format the text. Whenever you use this tag, your text remains in the same line instead of going to the second line.
Formatting applies only to the text that is between this tag. <span> tag does not have any attributes of itself, but you can use style and class attributes with this tag. You can also use this tag in the headings.




An example of this is being given below.



     The above script generates the given web page.


html-span-tag

Some Other Inline Tags

<a>


<a> tag is considered inline tag. You can link any text while using it. Doing so, it shows on that webpage in the same line.

          <b>

<b> tag bold the text without any line break. So this is also an inline tag.

          <i>

<i> tag makes text italic and this is also an inline tag.

          <u>

From the <u> tag,  you underline the text. It is also considered inline tag.

         <img>

From the <img> tag, you can insert the image between the texts. Doing so, it does not break any line in the text. Therefore <img> tag also has an inline tag.

         <input>

With the <input> tag you can create other elements inside the form such as textbox and button etc. But if you do not use <br/> tag then there is no line break between these elements.


         Hopefully, this "How to use Block and Inline Tags in HTML?” would be helpful for you. If it's so please help your friends and other bloggers to share this post on social media. If you have any question related to the post, please comment on the comment box and also follow this website for more information about the blogging and SEO tips. 



Previous:- How to use List in HTML?               Next:- How to use Form Tag in HTML?









  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

1 comment:

  1. AnonymousDecember 5, 2018 at 6:07 PM

    You made some decent points there. I looked on the internet for more info about the issue and found most individuals
    will go along with your views on this web site.

    By the way, I heard about this awsome affiliate program for Instagram influencers.
    Better apply soon before all the spots are filled up.
    Here is the link: http://gul.ly/vhv8c

    ReplyDelete
    Replies
      Reply
Add comment
Load more...

Thank you for reading this post. Please do not enter any spam link in the comment box.

Followers

Blog Archive

  • ►  2020 (4)
    • ►  October (1)
    • ►  September (1)
    • ►  August (2)
  • ►  2019 (52)
    • ►  December (1)
    • ►  November (2)
    • ►  October (1)
    • ►  August (1)
    • ►  July (1)
    • ►  May (11)
    • ►  April (10)
    • ►  March (6)
    • ►  February (3)
    • ►  January (16)
  • ▼  2018 (54)
    • ▼  December (27)
      • How to use html5 nav tag?
      • How to install Google Fonts on your Blogger Blog?
      • How to use section tag in html5?
      • How to use meter tag in html5?
      • How to use time tag in html5?
      • How to use header tag in HTML5?
      • How to use figure tag in html5?
      • How to use aside tag in html5?
      • How to use details Tag in HTML5?
      • How to use wbr tag in html5?
      • How to use article tag in HTML 5 ?
      • How to use menu tag in html?
      • How to use base tag in HTML?
      • How to use HTML hr and br Tag?
      • How to use HTML address tag?
      • How to use HTML Meta Tags?
      • How to use HTML script & noscript Tag?
      • How to use DOCTYPE declaration in HTML?
      • How to use Form Tag in HTML?
      • How to use Block and Inline Tags in HTML?
      • How to use Lists in HTML?
      • How to use Image Tag in HTML?
      • How to use Table Tag in HTML?
      • How to use anchor Tag in HTML?
      • How to Format & Style in HTML?
      • How to use Heading in HTML?
      • What is Attribute in HTML?
    • ►  November (5)
    • ►  May (5)
    • ►  April (4)
    • ►  February (3)
    • ►  January (10)
  • ►  2017 (17)
    • ►  December (9)
    • ►  November (8)

Popular Posts

  • How to use the main tag in html5?
  • How to use keygen tag in html5?
  • How to use html5 mark tag to highlight text?
  • How to start Online Business without money from home?
  • What is a search engine?

Contact Us

Name

Email *

Message *

About MyBlogHelp

Most of the posts, we share on this blog related to Affiliate Marketing, Organic Lead Generation, Digital Marketing, Social Media Marketing, Make Money Online, SEO, and web design.

Featured Post

LeadArk - Affiliate Marketing | Qualified Organic Lead Generation | LeadsArk Review

Copyright © MyBlogHelp– A Blog for Digital Marketing, Affiliate Marketing, Organic Lead Generation.
Design by Md. Abdussamad | MyBlogHelp.com