Saturday, 22.10.2016, 04:41
Welcome Guest
All Html Tags

Articles for Webmaster
:: Proffesional Website Builders
:: Div Tag in Html Examples
:: Notepad As a Free Html Editor

div Tag In Html

Division. Defines a block of HTML. Commonly used to apply CSS to a chunk of a page.

div Tag Attributes

The <div> tag supports the following standard attributes:

align - Specifies the alignment of the content inside a div element
class - Specifies a classname for an element
dir - Specifies the text direction for the content in an element
id - Specifies a unique id for an element
lang - Specifies a language code for the content in an element
style - Specifies an inline style for an element
title - Specifies extra information about an element
xml:lang - Specifies a language code for the content in an element, in XHTML documents

Browser Support


Example with Div Tag


<div id="navigation">
[Main menu]

<div id="content">
  <p>Some paragraph.</p>


HtmlCodeExamples.Com © 2016