DONATE  
MENU
JAVASCRIPT
AJAX
HTML
JSON

HTML Tutorials

INTRODUCTION

» Introduction to HTML

» PRACTICE IT Editor

» Getting Started

» HTML Example

» HTML Tags

» HTML Elements

» Nesting Tags

» Block & Inline Elements

» HTML Attributes

» HTML Comments

» File Paths

» HTML Entities & Symbols

TAGS/ELEMENTS

» Important Tags

» HTML Headings

» Text Formatting

» HTML Links

» HTML Lists

» HTML Tables

» HTML Images

» HTML Audios

» HTML Videos

» HTML Iframes

» HTML Styles

» HTML Scripts

» Semantic Elements

» HTML Metadata

ATTRIBUTES

» Elements' ID

» Elements' Class

» Elements' Style

» Element's Align

» Element's Height & Width

HTML FORMS

» HTML Forms

» Input Elements

» HTML Textarea

» HTML Select

HTML EXAMPLE

» Login Page

.. » HTML » Tags/elements » Important Tags
Share Tweet WhatsApp

Important Tags

Some very important tags that are often use in HTML markups are the division, paragraph and center tags. <div> - Division Tag The HTML <div> tag enables you to divide your webpage into various parts.
<div id='header'>
<h1>myBlog</h1>
</div>
<div id='menus'>
<ul>
<li>Travel</li>
<li>Diary</li>
<li>Sports</li>
</ul>
</div>
<div id='post_title'>
<h3>Why I Started Learning HTML</h3>
</div>
<div id='post_info'>
<div>Posted by: <b>StackBeginner</b> &raquo; 14hrs ago</div>
</div>
<div id='content'>
<p>From what I have learnt so far, HTML stands for Hypertext Markup Language. It is a markup language that enables you to define the structure or content of a webpage. It is even said that no website exists without HTML and I think this matches with reasons why i am learning the language.</p>
<p>I have always wanted to be a web developer and for sometime now, I have been confused as regard how to go about this aspiration of mine.</p>
</div>
<div id='comment'>
<p><input placeholder='Type name' type='text' name='author'/></p>
<div><textarea name='comment'></textarea></div>
<p><input type='submit' value="SUBMIT" name='sbtn'/></p>
</div>
<div id='footer'>
<p>myBlog &copy; 2021</p>
</div>

Copy PRACTICE IT

Above, notice how the <div> tag was used in dividing the webpage into various parts. Therefore, you use the <div> tag anywhere in a webpage you feel should be on its own. It is a block element. <p> - Paragraph Tag The <p> tag is used in defining paragraphs just any where in the body of a web document.
<div>
<p>Join our over 2,100,000 subscribers today!!!</p>
<p><input type='text' placeholder='E - mail'/></p>
<p><button>SUBSCRIBE</button></p>
<p><small>We won't spam your mail box. We hate such behaviors.</small></p>
</div>

Copy PRACTICE IT

It is a block element. <center> - Center Tag The HTML <center> tag is the easiest way to centralize elements without the necessary use of attributes or CSS. It is a block element that moves all elements or contents inside of it to the center of the page or whatever parent element.
<center>
<p>Join our over 2,100,000 subscribers today!!!</p>
<p><input type='text' placeholder='E - mail'/></p>
<p><button>SUBSCRIBE</button></p>
<p><small>We won't spam your mail box. We hate such behaviors.</small></p>
</center>

Copy PRACTICE IT

Notice how all the elements or contents of the center tag were moved to the center of the webpage. <blockquote> tag - block quote Texts Use the <blockquote> tag to display a block quoted text.
According to Stackbeginner.com, <blockquote>JavaScript is a client - side web programming language that is used in instructing a website on how it should behave with its users.</blockquote>

Copy PRACTICE IT

SUMMARY
  1. The HTML <div> tag is an important tag that enables you to divide your webpage into various parts.
  2. The <p> tag is used in defining paragraphs just any where in the body of a web document.
  3. The HTML <center> tag is the easiest way to centralize elements without the necessary use of attributes or CSS.
  4. Use the <blockquote> tag to display a block quoted text.
Take a short quiz on Important Tags.
Ask a question or tell us if Important Tags is easy or not.
cent?

Join our 1,090 subscribers to receive tutorials' updates!

  We won't spam your mail box. We hate it.





StackBeginner 2021 © Joseph Omamode