Writing an application in HTML

Source: Internet
Author: User
Tags format html page version window
Program

HTML is the abbreviation for Hypertext Markup Language (Hypertext Markup Language), which is the primary tool for composing Web pages (page) and is the symbolic markup language used to represent online information.


Online, if information is to be published and published worldwide, there needs to be a language that can be widely understood, a "native language" that all computers can understand. The publishing language used by WWW (World Wide Web) is the HTML language. Through HTML, the information that needs to be expressed is written as an HTML file, identified by a dedicated browser, and translated into identifiable information, which is the page we are seeing.
The functionality of HTML:


Publish online documents that contain titles, text, tables, lists, photos, and more.
Retrieves the information online via hyperlinks.
Design a form for obtaining a remote service that can be used to retrieve information, order products, and so on.
Include spreadsheets, video clips, sound clips, and other applications directly in your document.

Today we'll talk about how to use HTML to write programs.

Read the headline. One might think, how can html write an application? In fact, you simply use the. HTA to save the HTML page for the extension, which is an HTML application (HTML application) that you can run if you double-click it. However, the HTA is more than that, see one of the following standard HTML applications:
<HTML>
<HEAD>
<title>hta demo</title>
Applicationname=〃myapp〃
Border=〃thin〃
Borderstyle=〃normal〃
Caption=〃yes〃
Icon=〃filename.ico〃
Maximizebutton=〃yes〃
Minimizebutton=〃yes〃
Showintaskbar=〃no〃
Ingleinstance=〃no〃
Sysmenu=〃yes〃
Version=〃1.0〃
Windowstate=〃normal〃>
</HEAD>
<body scroll=〃no〃>
</BODY>
</HTML>
If you look at the HTML above, someone will find that unlike the HTML we normally see, it has a hta:application tag. This is actually the tag that provides us with a series of application-oriented features. Below I will give you a detailed description of its various properties.
ApplicationName Property (ApplicationName)
This property sets the name of the HTA.
Border Property (border)
This property is the window border type set to an HTA, and the default value is thick.
It can be set to thick the specified window as a thick border
dialog window specifies a dialog box
None specifies a window without Borders
thin specifies that the window is a narrow border
BorderStyle Property (BorderStyle)
This property sets the border format for the HTA window, and the default value is normal.
It can be set to
Normal normal border format
Complex bump Format Combo border
Raised protruding 3D border
Static 3D Border format
Sunken recessed 3D border
Caption property (caption)
This property sets whether the HTA window displays a title bar or caption, and the default value is yes.
Icon Property (icon)
This property sets the icon for the application.
Maximizebutton Property (Maximizebutton)
This property shows whether the Maximize button is displayed in the HTA window, and the default value is yes.
Minimizebutton Property (Minimizebutton)
This property sets whether the Minimize button is displayed in the HTA window, and the default is yes.
ShowInTaskbar Property (ShowInTaskbar)
This property sets whether the application is displayed in the taskbar, and the default is yes.
SingleInstance Property (singleinstance)
This property is set whether this application can run only once. The secondary property is identified with the ApplicationName property, and the default value is No.
Sysmenu Property (Sysmenu)
This property sets whether the System menu is displayed in the HTA window, and the default value is yes.
Version Property (version)
This property sets the version of the application and the default value is null.
WindowState Property (WindowState)
This property sets the initial size of the HTA window, and the default value is normal.
It can be set to the normal default size
Minmize minimization of
Maximize maximization


The above brackets are the properties referenced in the script. The above properties are read-only in the script. In addition, you can use the CommandLine property in the script to retrieve the parameters of the application when it starts.
You can also use most of the tags, scripts, and so on in your HTA.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.