html >> html and body tag

by anthony_f_justin » Sat, 14 Jan 2006 21:12:04 GMT

Hi there,

Could someone explain what the difference between the html tag and body tag
is.

What exactly is the purpose of the html tag

Isn't all the content contained within the body tag

Thanks



html >> html and body tag

by comprug » Sat, 14 Jan 2006 21:28:28 GMT


The HTML tag is the tag that tells your browser that the page is an HTML based
page. The body tag only contains the images and text and all that, but there
are also tags such as <script> for JavaScript and <head> for the title and
meta tags.




html >> html and body tag

by Murray *TMM* » Sat, 14 Jan 2006 21:31:38 GMT

http://www.w3.org is a good place to go with questions like this.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs , Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================








html and body tag

by anthony_f_justin » Sat, 14 Jan 2006 22:35:58 GMT

Thanks for the response - will go the recommended site.




html and body tag

by mzanime.com » Wed, 18 Jan 2006 03:01:37 GMT

Sheesh, the W3C pages aren't exactly "light reading" for a beginner like him... this URL may work our better: http://www.w3schools.com/html/




html and body tag

by anthony_f_justin » Thu, 19 Jan 2006 01:41:19 GMT

Thanks for the link mzanime.com - very useful.

Cheers



Similar Threads

1. html ad body tags

Does dreamweaver require the html and body tags to be present when you edit
an html file?

I'm trying to get Dreamweaver to edit a file that has no opening or closing
html or body tags but it doesn't show the first few lines of the page in
the editor window.

Thanks,
Phil




2. html/head/body tag indentation - Adobe Dreamweaver

3. creating HTML fragments (no html head or body tags)

Can Dreamweaver be setup configured or in any used so it creates
HTML fragments.....html code with no enclosing html head or body
tags?  Can it download existing fragments, from underneath the
DOCUMENT_ROOT of an apache web server, edit them, and then
upload the fragment back to the same location on the server file
system?

I don't own a copy of Dreamweaver....not yet anyway....but I need
to know if this is possible before I spend the money.

4. question about the BODY tag in the HTML DTD

5. DW MX 2004 - Mac OSX Repeating code after closing Body, HTML tags

Macintosh
OSX 10.3 Panther
DWMX 2004

When a page is saved, and previewed in a browser, it displays incorrectly. A
bunch of the text from the last third of the page seems to be repeated. It
displays as overlaid over the top of the webpage.

Looking at the web page within DW MX 2004, in both design and code view, it
looks fine.

Looking at the web page "view source" in IE Mac, IE PC, Firefox PC, Firefox
Mac and Safari Mac all show the same problem: After the closing body and
html tags, a bunch of text from the last third of the web page is repeated.

Re-opening the page in DW MX 2004, making sure the offending stuff is gone
in code view, and re-saving does not work.

I fixed the problem by going into a text editor, deleting the offending
code, and re-saving. In DW MX 2004 I used the "put" arrow to FTP up to the
website, and everything is fixed.

Question: is this a known problem? What can I do to fix DW to make sure this
does not happen again?

- Dan Ashley


6. Turn-off CSS, HTML, Head and Body Tags? - Adobe Dreamweaver

7. css body backgrounds + body tag backgrounds

I have encountered a strange problem while using DW MX '04, on mac. 
The background picture I use displays well in DW and on any browser viewed locally. But from the remote site, there is nothing, just a white bgcolor (doesn't matter what color's in the file).
I use the DW css editor wich gives me a white, remote site.
I use the trusty ol' Body background tag = nice background
I use the css (with no bg image at all) + Body tag = white space again

css code generated by DW:
body {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-attachment: fixed;
	background-image:  url("../bilder/BG_MAINCOLDIVIDER.GIF");
	background-repeat: repeat-y;
	background-position: left top;
	background-color: #FFFFFF;
}

BUT what I discovered was that the css body had to be seperated from the main css (it is pretty big) and attached as an separate file. This is not all, the script also had to be separated.

body {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #000000;
}
body {
	background-color: #FFFFFF;
	background-image: url(../bilder/BG_MAINCOLDIVIDER.GIF);
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}

Now this works well. I don't know id the ol' Body tag is the one I see, or if it still works side-by-side with the 2 css's.

Hope it will help someone.
/R



8. Simple css question: body or body, html? - Adobe Dreamweaver