Lost Password?

Go Back   CodeCall Programming Forum > Web Development Forum > HTML Programming

HTML Programming Forum discussion covering HTML, XHTML, DHTML and all flavors of HTML. Hypertext Markup Language is used to create websites.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old 03-22-2008, 10:44 AM
TcM's Avatar   
TcM TcM is offline
Terminator - I'll be back
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 6,076
Rep Power: 50
TcM is a jewel in the roughTcM is a jewel in the roughTcM is a jewel in the roughTcM is a jewel in the rough
Default Re: Optional Closing Tags in HTML

It Is required, if you really want a 100% valid page you should close each and every opened tag
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall


Business Directory | Technology Blog | Windows Help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 05-05-2008, 07:46 PM
Kaabi's Avatar   
Kaabi Kaabi is offline
Programming God
 
Join Date: Jul 2006
Posts: 884
Rep Power: 13
Kaabi is on a distinguished road
Default Re: Optional Closing Tags in HTML

I'm pretty sure the <head> tag definitely needs closing. I'm pretty certain that the initial <html> isn't needed either, or if it is, </html> definitely isn't.
__________________
Cheap Airsoft Guns

If you are looking for high-quality, yet cheap, airsoft guns, then check out MrAirsoft.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 05-07-2008, 03:18 PM
Xav's Avatar   
Xav Xav is offline
Guru
 
Join Date: Mar 2008
Location: London, England
Posts: 3,190
Last Blog:
The Windows Registry
Rep Power: 28
Xav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to all
Send a message via MSN to Xav
Default Re: Optional Closing Tags in HTML

It's always best to write clean code, though. Just run it through the W3C validator, and if any errors show up, then don't worry. Instead, load it up in Browsershots, to check if all browsers can render it correctly.
__________________
Xav, the power of youth
Worship the Creator... not his creations
Web Site | Beta Site
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 05-17-2008, 12:32 PM
Kaabi's Avatar   
Kaabi Kaabi is offline
Programming God
 
Join Date: Jul 2006
Posts: 884
Rep Power: 13
Kaabi is on a distinguished road
Default Re: Optional Closing Tags in HTML

I've actually been viewing source code lately and I've seen a lot of people without closing <head> tags. I guess they aren't needed.
__________________
Cheap Airsoft Guns

If you are looking for high-quality, yet cheap, airsoft guns, then check out MrAirsoft.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 05-17-2008, 12:57 PM
Xav's Avatar   
Xav Xav is offline
Guru
 
Join Date: Mar 2008
Location: London, England
Posts: 3,190
Last Blog:
The Windows Registry
Rep Power: 28
Xav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to all
Send a message via MSN to Xav
Default Re: Optional Closing Tags in HTML

They aren't completely required - but you should always use them. Otherwise, more stricter browsers might render it improperly, or worse...
__________________
Xav, the power of youth
Worship the Creator... not his creations
Web Site | Beta Site
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #16 (permalink)  
Old 05-17-2008, 01:22 PM
chili5's Avatar   
chili5 chili5 is offline
Guru
 
Join Date: Mar 2008
Location: Canada
Age: 15
Posts: 1,551
Rep Power: 14
chili5 has a spectacular aura aboutchili5 has a spectacular aura aboutchili5 has a spectacular aura about
Send a message via ICQ to chili5 Send a message via AIM to chili5 Send a message via MSN to chili5 Send a message via Yahoo to chili5
Default Re: Optional Closing Tags in HTML

They actually are required according to the XHTML declaration.

People that don't use them are taking a chance that their page won't render properly in newer browsers. Firefox follows the standards more than Internet Explorer so firefox is more likely not to read it properly.
__________________
Success is the ability to go from failure to failure without losing your enthusiasm. ~ Winston Churchill
Pictures of England
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 05-17-2008, 01:25 PM
Xav's Avatar   
Xav Xav is offline
Guru
 
Join Date: Mar 2008
Location: London, England
Posts: 3,190
Last Blog:
The Windows Registry
Rep Power: 28
Xav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to all
Send a message via MSN to Xav
Default Re: Optional Closing Tags in HTML

Although:

a) Firefox renders pages better than IE.
b) The beta of IE8 passed the Acid test, so it's getting better at rendering pages.
__________________
Xav, the power of youth
Worship the Creator... not his creations
Web Site | Beta Site
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18 (permalink)  
Old 05-17-2008, 01:46 PM
chili5's Avatar   
chili5 chili5 is offline
Guru
 
Join Date: Mar 2008
Location: Canada
Age: 15
Posts: 1,551
Rep Power: 14
chili5 has a spectacular aura aboutchili5 has a spectacular aura aboutchili5 has a spectacular aura about
Send a message via ICQ to chili5 Send a message via AIM to chili5 Send a message via MSN to chili5 Send a message via Yahoo to chili5
Default Re: Optional Closing Tags in HTML

As of now, Firefox renders pages better if they follow the XHTML specification correctly.

IE is getting better at rendering pages better though.

What's the acid test?
__________________
Success is the ability to go from failure to failure without losing your enthusiasm. ~ Winston Churchill
Pictures of England
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19 (permalink)  
Old 05-18-2008, 09:34 AM
Xav's Avatar   
Xav Xav is offline
Guru
 
Join Date: Mar 2008
Location: London, England
Posts: 3,190
Last Blog:
The Windows Registry
Rep Power: 28
Xav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to all
Send a message via MSN to Xav
Default Re: Optional Closing Tags in HTML

It's called Acid2. Take a look at Acid2 Browser Test - The Web Standards Project.

Here's what it says:
Quote:
Acid2: The Guided Tour
Hello World!
Acidman smiley face

Acid2 is a test page for web browsers published by The Web Standards Project (WaSP). It has been written to help browser vendors make sure their products correctly support features that web designers would like to use. These features are part of existing standards but haven’t been interoperably supported by major browsers. Acid2 tries to change this by challenging browsers to render Acid2 correctly before shipping.

Acid2 is a complex web page. It uses features that are not in common use yet, because of lack of support, and it crams many tests into one page. The aim has been to make it simple for developers and users to check if a browser passes the test. If it does, the smiley face on the left will appear. If something is wrong, the face will be distorted and/or shown partly in red.

The purpose of this document is to explain how Acid2 works. The markup behind Acid2 is peculiar in that it attempts, on one single page, to test many different features. We do not envision or recommend that normal Web pages should be written this way, but it is appropriate for a test page. At first sight, the source code is hard to understand, but the guided tour offered in this document will explain it in some detail. The guide assumes a technical understanding of HTML, CSS and PNG.

Note: Acid2 uses data URLs extensively. To allow vendors that not yet support data URLs to test with Acid2, a version without data URLs has been published.

Note: When taking the test, you should use the default settings of the browser you are testing. Changing the zoom level, minimum font size, applying a fit-to-width algorithm, or making other changes may alter the rendition of the Acid2 page without this constituting a failure in compliance. (Added 21 July 2006)
What are we testing?

Acid2 tests features that web designers have been requesting. Everything that Acid2 tests is specified in a Web standard, but not all Web standards are tested. Acid2 does not guarantee conformance with any specification. After careful consideration, we have selected and are testing the features we consider most important for the future of the web. Although Acid2 was inspired by Microsoft’s announcement of IE7, it is not targeted at a specific browser. We believe Acid2 will highlight problems in all current browsers.

Acid2 assumes basic support for HTML4, CSS1, PNG, and Data URLs. The first three items on the list are included for obvious reasons: they form the backbone of web content standards. Data URLs are described in HTML4 but is less used due to lack of support. We believe data URLs are convenient and useful for web designers, and easy to add in browsers. Further, Acid2 assumes that the browser uses a default style sheet with common values. For example, it is assumed that all ‘div’ elements have ‘display: block’. Finally, the test assumes a pixel density of 96 ppi, as per the CSS 2.1 Last Call Working Draft. For user agents that support font zooming, it also assumes a zoom factor of 100%. The list below gives an overview of the most important additional features that are tested:

* Transparent PNGs — The eyes are encoded as transparent PNGs.
* The object element — The eyes of the face are attached to an object element. Being able to use object (which can have alternative content) is one of the oldest requests from web designers.
* Absolute, relative and fixed positioning — Being able to position elements accurately is important for advanced page layouts.
* Box model — The original Acid test focused on the CSS box model. Acid2 continues in this fine tradition by testing ‘height’, ‘width’, ‘max-width’, ‘min-width’, ‘max-height’ and ‘min-height‘.
* CSS tables — There is nothing wrong with table layouts. It is a powerful layout model which makes sense on bigger screens. However, the table markup is troublesome as it ties the content to these screens. Therefore, being able to specify table layouts in CSS is important.
* Margins — CSS defines accurate algorithms for how margins around elements should be calculated.
* Generated content — The ability to add decorations and annotations to Web pages without modifying the markup has long been requested by authors.
* CSS parsing — Acid2 includes a number of illegal CSS statements that should be ignored by a compliant browser.
* Paint order — We test that overlapping content is painted in the right order. This is not a feature in itself, but a requirement for other features to work correctly.
* Line heights — The Acid2 test checks a few key parts of the CSS inline box model, upon which any standards-compliant Web page depends.
* Hovering effects — One of the elements in the face changes color when you hover over it. Which one?

It should be noted that Acid2 is rendered in standards mode. That is, the test page includes a DOCTYPE which signals that the browser should treat the page according to standards. Vendors that are reluctant to make changes in how they render legacy documents can continue their current behavior in what is known as quirks mode.
What should appear

Acid2, when rendered correctly, consists of one line of text (Hello World) and a 14×14 grid of squares inside a containing block where a smiley face can be seen. Each square is 12px high and 12px wide. The face has a yellow background with a black facial outline around it. In this section, we will explain how all of this is created.
__________________
Xav, the power of youth
Worship the Creator... not his creations
Web Site | Beta Site
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
About HTML Onur Tutorials, Classes and Code 0 08-28-2007 06:13 PM
Special tags to display html code on the page Bodyag HTML Programming 4 04-10-2007 09:38 AM
Optional Closing Tags in HTML Bodyag HTML Programming 2 03-11-2007 01:20 PM
HTML Introduction clookid Tutorials, Classes and Code 5 01-08-2007 09:43 PM
What is HTML, DHTML and XHTML? Lop HTML Programming 5 08-09-2006 11:00 AM


All times are GMT -5. The time now is 02:15 AM.

Contest Stats

dargueta ........ 128.00000
John ........ 127.00000
Xav ........ 107.00000
gaylo565 ........ 18.00000
Johnnyboy ........ 3.00000
navghost ........ 1.00000

Contest Rules

Ads