473,799 Members | 2,903 Online
Bytes | Software Development & Data Engineering Community
+ 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 1474
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
3180
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 objects. The UserControl client creates and passes these sponsor objects to the remote objects. I am able to launch .Net UserControls and their dependent .Net components in HTML pages using the Object tag. I had to do the following to get it to...
1
1619
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 html page is running a timer using javascript and periodically refreshes the screen. Since the javascript has to get the response from all the devices and updates the images ie., changing the color for eg., show red if the device is faulty,...
8
2766
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 this is happening. there are no transfers or redirects that are occurring in the pages. the page runs thru all of its events then starts all over again. Trying to inspect the stack track doesn't help because when i get to the init the 2nd time,...
1
1919
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
2547
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 website. When I click in Google on one of these pages (not index.html or home.html), I am only linked to that one html-page and not to the website itself. Does anyone know how to fix this. Is there for example a metatag? Thanks
22
6047
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 automatically. I learned enough Perl (read: just enough) to code a script that does what I want it to do. Now the question is: how to get it to run automatically. I would like the program to be invoked when someone, anyone, hits my homepage. I...
3
1602
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 from my gps provider to my server and then read it wit a frame to extract the lat lon to use it in my map to locate vehicles is there a way to save the web page thanks in advance r.soler
1
8199
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();"> <did = 'hi'>
27
8743
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 class are set to 100%. I want the DIV to cover the whole HTML page, but it only covers the browser screen. How can I make it cover the whole HTML page?
0
9686
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9540
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10475
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10222
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9068
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7564
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6805
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4139
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 we have to send another system

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.