The <div> tag is used for defining a section or a division in an HTML page. You can use it to group large sections as a block and can be formatted (Presentation of block) using Style Sheet (CSS) in your document. For example, you can wrap a header block in one div and content block in another div. See the following code, in which I used a different div for each block. In simple terms, it is a container in which you create a division of your documents and you can manipulate your document layout using class and id names in the div tag. HTML5 has introduced a number of new tags that you will use in place of div tag such as article, aside, footer, header, section and nav. Syntax<div
align=" Specifies the alignment of the content inside a div element. Possible values are : center | justify | left | right"class="Specifies class names"dir=" rtl (Right to Left | ltr (Left to Right)"id=" specifies unique id identifier"lang=" Specifies a language code for the content in an element. "style="style information"title="advisory text">
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: