473,472 Members | 2,257 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

html page is running without starting it with <html>

98 New Member
My html code is running without any error by starting without html tag but html tag is closed at end body tag is not closed still output for <ol> tag is given
content is written outside any of body, form head still output is shown
Please Give the reason behind it if anybody knows
Oct 6 '10 #1
8 1452
Dormilich
8,658 Recognized Expert Moderator Expert
My html code is running without any error
HTML code always runs without error. have you tried validating your code?

besides, in HTML 4 some tags are optional (including <html> and <body>)

Please Give the reason behind it if anybody knows
browser developers give their best to display even the crappiest code (somehow).
Oct 6 '10 #2
jagdeep gupta
98 New Member
Yes sir i know if they dont give any error but output is also not displayed
But the code is displaying without closing these
Oct 6 '10 #3
Thew
69 New Member
Show us some code.
Oct 6 '10 #4
Death Slaught
1,137 Top Contributor
@jagdeep gupta
The HTML tag is not needed for the browser to display your code. The purpose of the HTML element is simply to tell the browser that the file is an HTML document. The same applies for the other elements. The browser knows that there is a form, table, div, ol, etc and how to display them. However, you should not omit start and end tags.

Thanks, Death
Oct 6 '10 #5
jagdeep gupta
98 New Member
Expand|Select|Wrap|Line Numbers
  1. <ht <h1>Purpose,h1>ml>
  2. <head>
  3. <title>
  4. Expt.com
  5. </title>
  6. </head>
  7. <body>
  8. </body>
  9. <font size="40" face="arial"
  10. Love This place
  11. </html>
  12.  
Oct 6 '10 #6
jagdeep gupta
98 New Member
The above code is working in IE6
Oct 6 '10 #7
JKing
1,206 Recognized Expert Top Contributor
FireFox, Chrome, IE8 all display "Purpose,h1>ml>" and that is it.

As stated previously all browsers will make an attempt to somehow render even the worst malformed code.
Oct 6 '10 #8
Death Slaught
1,137 Top Contributor
@JKing
Yes, but the h1 element is still being used on "Purpose,h1>ml>".

Regards, Death
Oct 6 '10 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Dave McCracken | last post by:
I am hosting .Net UserControls in HTML pages with Object Tags. These UserControls are clients of remotable objects that run on the same machine. The remote objects execute callbacks via sponsor...
1
by: vanisathish | last post by:
Hi, What would be the best way to update the images(ie.containing the block diagram of the various devices in the network) in a HTML page ? Actually the webserver is running on a Win PC, and the...
8
by: TS | last post by:
Hi, i have inherited a page from another user. The page is the target frame in a frameset. for some reason the whole page runs twice (page_load, init, etc. all run twice) I can't figure out how...
1
by: avkdsiva | last post by:
I want to write a query on emp database, where the First character of empname should not be a letter. i.e., it can either be a number or special character.
17
by: =?Utf-8?B?Y2F0aGFyaW51cyB2YW4gZGVyIHdlcmY=?= | last post by:
Hello, I have build a website with approximately 30 html-pages. When I search this website in Google, I see the index.html or home.html on this website, but also other html-pages on this...
22
by: owlice | last post by:
Greetings! I thought I'd add a little something to a web site, a "tip of the week," and wanted it automated so that if I get hit by a truck (or, more likely, am forgetful), the tip is updated...
3
by: rsoler | last post by:
I use php proxy to get xml data and it works when i use it to read another web page it works but does not save it displays the web page in the borwser what i want to do is to save the table obtained...
1
by: Duke | last post by:
<html> <head> <script type="text/javascript"> function init(){ var html = document.open('Hello.html'); document.getElementById('hi").innerHTML = html; } </script> <body onload ="init();">...
27
by: Steve | last post by:
My apologies if this is a duplicate post, I can't find the earlier version of my question. I have a DIV that uses a CSS class defined at the thtop of an HTML page. The height and width of the...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.