DIV in HTML

Ads

 
 

Share on Google+Share on Google+

samar
DIV in HTML
1 Answer(s)      6 years and 7 months ago
Posted in : HTML

What is DIV in HTML?

Ads
View Answers

November 2, 2010 at 12:16 PM


Hi,

Here is the answer,

The HTML div tag is used for defining a section of your document. With the div tag, you can group large sections of HTML elements together and format them with CSS.

Use only the following attributes with your div element, anything else should be reserved for CSS.

  1. id

  2. width

  3. height

  4. title

  5. style

For the purpose of this example, we have included the style attribute in order to color our div tag in order to bring a stronger visualization for our viewers.

HTML Code:

<body>
<div style="background: green">
<h5 >SEARCH LINKS</h5>
<a target="_blank" href="http://www.google.com">Google</a>
</div>
</body>

Thanks.


Ads









Related Tutorials/Questions & Answers:
DIV in HTML
DIV in HTML  What is DIV in HTML
div background color in html
div background color in html   How to change the background color of DIV in HTML
Advertisements
working of a div tag in html
working of a div tag in html   !DOCTYPE html PUBLIC "-//W3C//DTD....dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
HTML div tag
HTML div tag  I have created a webpage using the div tag. The webpage has the header and the footer. the middle area is divided into left and right parts. The left side has a list of link. The right side part basically shows
HTML div tag
HTML div tag  I have created a webpage using the div tag. The webpage has the header and the footer. the middle area is divided into left and right parts. The left side has a list of link. The right side part basically shows
HTML div tag
HTML div tag  I have created a webpage using the div tag. The webpage has the header and the footer. the middle area is divided into left and right parts. The left side has a list of link. The right side part basically shows
HTML div tag
HTML div tag  I have created a webpage using the div tag. The webpage has the header and the footer. the middle area is divided into left and right parts. The left side has a list of link. The right side part basically shows
changing an image based on checking checkbox using HTML & JavaScript, Please put div blocks
changing an image based on checking checkbox using HTML & JavaScript, Please put div blocks   Hello, PLease check the below code, and let me know...'; } } </script> <div align="left" class
How to align div side by side?
Example of aligning DIV side by side in HTML page In this tutorial I will explain you how you can align the div side by side using CSS. The CSS... div side by side?. If you are looking for the tutorial for aligning the DIV
Tomahawk div tag
;    This tag is used to places an html div around its children. So instead of using html div tag we can use JSF tomahawk's own div...="text/html; charset=iso-8859-1"> <title>t:div example<
div align left css
div align left css  Hi, How to align the div to left using the css in HTML page. Thanks
How to add background image to div using CSS?
How to add background image to div using CSS
Showing div at the center of the webpage
Showing div at the center of the webpage  Showing div at the center of the webpage
JavaScript Hide Div
JavaScript Hide Div...; In this section, we are going to hide div element on clicking the button using the JavaScript. In the given example, we have created a div element using <div>
class of div tag
class of div tag  How can i recognize the selected DIV class
scrolling div ipad
scrolling div ipad   Please suggest me how to scroll the div in iPad UIWebView? Thanks
div overflow hidden
div overflow hidden  How to make div overflow hidden? Thanks   Hi, Here is the code: <div style="widht:200px; height:600px; overflow:hidden;"> </div> Thanks
indent div css
indent div css  How can i indent with outer and inner margin?  .../answers/viewqa/HTML/17553-indent-div-css.html :Indent DIV in CSS
div style background
div style background  How to add background color to a div? What is the code of div style background?   Hi, You can use the following code: <div style="background-color: #ccffcc;"> <p>Content</p> <
JavaScript move div
JavaScript move div...; This section illustrates you how to move a div element on the window using JavaScript. In the following code, we have defined a div element consisting of text
indent div css
Div file in css  How can i indent div with outer and inner margin... it in another div. For example, make the outer div margin: 0 auto; and the inner div.... Indent div in css <html> <head> <title>Indent div
div style float right
div style float right  How to align div to right? Share me the code for div style float right. Thanks   Hi, You can use following code: <div style="float: right; widht:300px; height:600px;"> <p>Content<
div to scrollbar - Java Beginners
who replied my answer.  hi, div and scrollbar html...div to scrollbar  hi, thanks a lot for replying but my question is some what different let me make it more clear i have div which increases in size
remove and add div jquery
remove and add div jquery  I want to enable my users to remove or add DIV using JQuery.   $('.add_more').click(function(){ var description = $('#description').val(); $newEl = $('<div class="description_text
image on div or cell of table
image on div or cell of table  I am using ms access database and I... but it display on browser but I want to display on inside the div tag or table tag pls... is to display on div or table... thnx in advance
image on div or cell of table
image on div or cell of table  I am using ms access database and I... but it display on browser but I want to display on inside the div tag or table tag pls... is to display on div or table... thnx in advance
image on div or cell of table
image on div or cell of table  I am using ms access database and I... but it display on browser but I want to display on inside the div tag or table tag pls... is to display on div or table... thnx in advance
image on div or cell of table
image on div or cell of table  I am using ms access database and I... but it display on browser but I want to display on inside the div tag or table tag pls... is to display on div or table... thnx in advance
image on div or cell of table
image on div or cell of table  I am using ms access database and I... but it display on browser but I want to display on inside the div tag or table tag pls... is to display on div or table... thnx in advance
image on div or cell of table
image on div or cell of table  I am using ms access database and I... but it display on browser but I want to display on inside the div tag or table tag pls... is to display on div or table... thnx in advance
jQuery To Hide the Div
="text/html; charset=UTF-8" /> <title>Div Disappear</title>... jQuery To Hide the Div       In this JQuery tutorial we will develop a program that Hide of a Div Steps
Tutorials   
Java Spring Hibernate Struts Training How to Word-wrap in an HTML table? I'm trying to pass counter data to another HTML page. How to display button as a link in vaadin? hi change navbar dropdown color in bootstrap How to remove the background color of bootstrap menu bar? How to change color of opened Bootstrap drop down toggle? Setting bootstrap container background color Help school all activities and admision process.. add one row after another date make a webpage HTMl HTMl Source code how to apply globalisation to a world wide asp.net application how to print HTML using javascript or Jquery How to recover from google panda update? How to survive google panda 4.0 update How to find if you have been hit by Panda 4.0 Design a web page using XHTML and JavaScript that does the followings: ffmpeg converting file mp4 to mov JavaScript How to Disable Catch-all Emails on CPanel z-index always on top What is Web hosting Database and HTML web development trainee Uploading files Image Gallery Image Gallery dropdown How to redirect from a HTML page? Easiest method for expiring the css and js headers HTML WITH AJAX VB 6 Read Web Page Header string palindrom using vbscript? html button How to add mod_deflate to apache without recompiling How to use place hoder in IE(version : 8) Html Software Question div align left css Fetching data from excel file on other website and display in interactive graph form where do I find the fix for tree view catalog not expanding and collapsing correctly for roseindia shopping cart 1.1 pass to next page to enter into a particular page only if the username,password and listbox value mtches hi Cricket stadium ticket booking design Need some help creating an order form.

Ads

 
Advertisement null

Ads