working of a div tag in html

Ads
 

working of a div tag in html

!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>

    <body>
    <div style="width:100%; height:650px; background-color:#FF0000;">

    <div style="background-color:#990066; width:100%; height:20%;">menu</div>

    <div style="width:15%; height:80%; background-color:#333399;">mghu</div>

    <div>Content for New Div Tag Goes Here</div>

    </div>
    </body>
    </html>

This is a simple code. but after executing it i am not getting the sentence "content for new Div Tag goes here" in red block. why it is happening like this. it suppose to be print in red block. I have tried most of the browsers(mozilla,internet EXP, opera). all are printing the same output. cany anyone tell me the solution for this.

 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<div style="width:100%; height:650px; background-color:#FF0000;">

<div style="background-color:#990066; width:100%; height:20%;">menu</div>

<div style="width:15%; height:80%; background-color:#333399;">mghu</div>

<div>Content for New Div Tag Goes Here</div>

</div>
</body>
</html>
View Answers

Ads









Related Tutorials/Questions & Answers:
working of a div tag in html
working of a div tag in html   !DOCTYPE html PUBLIC "-//W3C//DTD...-color:#333399;">mghu</div> <div>Content for New Div Tag Goes... "content for new Div Tag goes here" in red block. why it is happening like
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
Advertisements
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
div background color in html
div background color in html   How to change the background color of DIV in HTML
class of div tag
class of div tag  How can i recognize the selected DIV class
html dropdown not working firefox
html dropdown not working firefox  I am writing a Dropdown code in HTML which is not working in firefox. What could be the reason as it's perfectly working in IE and Crome. Thanks
php <? ?> tag not working
php tag not working  why PHP tags not working in my application... will have to turn it on by changing the status of this PHP tag in php.ini file. Here...("shortopen_tag", 1); in your code; add the following line to your .htaccess file
HTML text tag
HTML text tag   How to wrap text in HTML code without changing the text format
HTML marquee tag
HTML marquee tag  What is Marquee Tag in HTML?  Marquee Tag in html rolls the text horizontally or vertically based on the parameters. A simple syntax to use marquee is as follows: <marquee>Hello World<
HTML - base tag example.
HTML - base tag example. Description : The base tag is a HTML tag...;title>HTML is a markup language</title> </head> <body> <h1>HTML -- base tag. </h1> &nbsp;<a href="
Struts2.2.1 Ajax div tag example.
Struts2.2.1 Ajax div tag example. In this section, we will introduce you to about the Ajax div tag. The div tag when used with Ajax refreshes the content... <html> <head><title>Ajax_Div_Tag_Example</title><
HTML - Image tag.
HTML - Image tag. Description : HTML supports two type tags. 1-Singular tag... and end tag. The img tags is used for embedding image in HTML page...;h1>Example of HTML image tag.</h1> <img src="RI
HTML - textarea tag example.
HTML - textarea tag example. Description : It is a input tag. You can enter...; <head> <title>HTML is a markup language</title> </head> <body> <h1>HTML -- textarea tag Example. </h1>
HTML -- form tag.
HTML -- form tag. Description : HTML provides a form tag. It takes user... within form tag. Code : <!DOCTYPE html PUBLIC "-//W3C//DTD... language</title> </head> <body> <h1>HTML form tag
HTML - Q (quotation) tag.
HTML - Q (quotation) tag. Description : It generates a quotation over the text. Code : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...;/head> <body> <h1>HTML -- q&nbsp; tag.</h1> <
HTML - menu tag example
HTML - menu tag example Description : The <menu> is a tag of HTML...>HTML -- menu tag.</h1> <p>Creates a menu list... html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "
HTML - I tag example.
HTML - I tag example. Description : It is a text formatting tag. It display...>HTML -- I tag Example. </h1> <p> Roseindia Technology Pvt...;head> <base href="http://roseindia.net"> <title>HTML
HTML - bold tag.
HTML - bold tag. Description : The bold tag is also a font tag. Which... within bold tag will be display as bold. Code : <!DOCTYPE html...; <h1>Example of HTML image tag.</h1> <span style="font
HTML audio tag
HTML audio tag  Hi, I have written a simple html page to play audio file, I m using audio tag as shown below: Your browser does not support the audio tag. when I open the page using Chrome, it works fine(plays audio
HTML font tag.
HTML font tag. Description : It is a HTML tag, which is used for changing... : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...;html xmlns="http://www.w3.org/1999/xhtml"> <head> <
how to divide 1 web page into some parts using div tag...
how to divide 1 web page into some parts using div tag...  how to divide 1 web page into some parts. i know it using frames in html,bt how can we do it in jsp. my friend told it can b done using div tag. i ve tried bt couldnt do
img tag of HTML
img tag of HTML  How to pass a variable as a source(src) in img tag? I'm using <% %> to call variables of servlet on a JSP page. And want to pass one of the variables called as a src for img tag. How can This be done
Applet Tag Parameters,Applet Tag in HTML
to applets are: First, add the PARAM tag (with values) to the HTML source file... <APPLET> Tag Parameters: The <PARAM> Tag... the applet's operation. APPLET parameters stored in the PARAM tag actually have little
HTML5 div tag, Definition of &lt;div&gt; tag in html5
HTML5 div tag, Definition of <div> tag in html5 In this illustration we will introduce you about the <div> tag in html5. The <div> tag...;div> tag and must use oppening and closing tag. Example:Div_tag.html.
HTML line break tag
HTML line break tag. The HTML Line break tag <br> is used to add a line... web page. Its very easy you just have to write <br> tag in your html page... <br> tag. This tag is used to add a line break in HTML page
Tag Inside Table in HTML
Tag Inside Table in HTML     ... in HTML.In this code we define a HTML page and show you to create a tag inside a Table in HTML. The following tags used in code to create tag inside table in HTML
passing values between jsp file through hyperlink in div tag
passing values between jsp file through hyperlink in div tag  <...='Content-Type' content='text/html; charset=utf-8' /&gt; &lt;link...; &lt;/tr&gt; &lt;/table&gt; &lt;br&gt; &lt;div
how to call servlet from html page at anchor tag ?
how to call servlet from html page at anchor tag ?  I have a very... it is not working properly. I split and merge template. In the header part of my page i use buttons image and for referrence i use anchor tag {for ex: ()} to go
Store image from html img tag into mysql db using java
Store image from html img tag into mysql db using java  Hi. How to get the image displayed in the < img > tag of HTML and store it in the mysql database using java? Thanks in advance

Ads