You can't do it with HTML code.
You can use the Javascript method window.close() but for security reasons, you can only close a window if you opened it with Javascript. For instance
var popUp = window.open('popup.html');
(.......)
popUp.close();
This code isn't worth much, because it's not connected to any event (so it opens a window that it immediately closes) but that's the basic idea.
This would be done using javascript: <a href="javascript:window.close();">Close This Window</a>
As subtle distinction between HTML and browser is that HTML code does not produce the form; the browser produces the form. The browser interprets HTML code to determine how to display page content.
HTML is a code language for markup. "Executing" would mean interpreting in this context, i.e. opening the file in a browser (displaying the page) rather than a text editor (displaying the code itself).
It depends on what browser you're using. If you're using IE, then you have to go to View->Source to open a new window with the source code. If you're using another major browser, Ctrl+U will show the source code.
PHP is server-side, the browser itself does not interpret it. Rather, the browser sends a query to the server, and the PHP scripting generates custom HTML document. It is this HTML that you are seeing the source code of.
The browser is used to parse an HTML file and return a visual representation of the code as a webpage.
As subtle distinction between HTML and browser is that HTML code does not produce the form; the browser produces the form. The browser interprets HTML code to determine how to display page content.
Comments are not displayed by the browser, but they can help document your HTML source code.
HTML code does not need to be installed. It needs to be written and run in a browser.
HTML is the code that tells a web browser how to display a web page on your computer screen.
HTML or Hypertext Markup Language is code that can be used to create a website (among other things). HTML code is nothing but text, but, when viewed in a browser, can display images referred to in the code. If the HTML code is the ingredients of a cake, the browser shows the finished and fully decorated cake.
If you want to close the current window, use window.close() or simply close() If you want to close a window that is stored in a JavaScript variable, apply the method close() to it. For example: var myWindow=window.open("http:\/\/www.example.com/"); myWindow.close();
web browser
HTML code has special meanings for special tags. The <form> tag tells the browser that a form is being created.
You browser interprets HTML code to determine how to format content. The web server presents the page to the browser for consumption.
A HTML Reader is kinda like a Web Browser. It shows you what the code will look like in the eyes of the Web Browser.
HTML is a code language for markup. "Executing" would mean interpreting in this context, i.e. opening the file in a browser (displaying the page) rather than a text editor (displaying the code itself).
A browser is an application that is used to view web pages. Opera is the name of one browser. There are lots of other ones. HTML is the language that is used to create web pages. People write HTML code to create web pages. Browsers read the HTML code and then display the page in the browser.