How to give your web page some structure

Description
  • Remember, you can’t put text directly into body- only tags.
  • (X)HTML has several structural tags that are specifically designed to contain text and to divide up the page into logical parts.
  • First one is <div> tag. It contains text and inline elements as well as other divs.
  • (X)HTML has 2 main types of content elements-inline and block elements.
  • Inline elements: text formatting tags, img tags, form input tags etc. These are the ones that either apply to text or should be treated as text, flowing about the document’s structure in the way they can be. Inline elements are not contained directly by body. They need to be inside block element.
  • Block elements contain inline elements. <div> is a block tag having purpose to group together areas of content.
  • Paragraph tag <p>, is also a block element.
  • Span tag <span>, is used to define a span of text or other inline elements. Span itself is an inline element.
  • It is recommendable to constantly save the file and look in the browser for its appearance to avoid any problems later on.

> PREVIOUS TUTORIAL NEXT TUTORIAL

BACK TO HOSTING TUTORIALS

.......................................................

  I almost never use the word "Perfect", but here I want to say KVCHosting service is PERFECT! Even though it has been only one year I have been a customer of theirs, I can still say KVCHosting is the best and Perfect, without any doubts. Thanks for your service and fast responds. If you care about Customer Service and Stability, KVCHosting is the ideal place for you 

.......................................................

Charles Griffith
Senior Marketing Manager