- Building Web and Mobile ArcGIS Server Applications with JavaScript(Second Edition)
- Eric Pimpler Mark Lewin
- 250字
- 2021-07-02 15:48:53
Basic HTML page concepts
Before we dive into the details of creating a map and adding layers of information you need to understand the context of where the code will be placed when you're developing applications with the ArcGIS API for JavaScript. The code you write will be placed inside an HTML page or JavaScript file. HTML files typically have a file extension of .html or .htm and JavaScript files have an extension of .js. Once you have created a basic HTML page you can then go through the necessary steps to create a basic map with the ArcGIS API for JavaScript.
The core of a web page is an HTML file. Coding this basic file is quite important as it forms the basis for the rest of your application. Mistakes that you make in the basic HTML coding can result in problems further down the line when your JavaScript code attempts to access these tags.
The following is a code example for a very simple HTML page. This example is about as simple as an HTML page can get. It contains only the primary HTML tags <DOCTYPE>,<html>, <head>, <title>, and <body>:
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Topographic Map</title> </head> <body> Hello World </body> </html>
There are a number of flavors of HTML currently in use. Most new HTML pages developed today use HTML5, so we'll focus on HTML5 throughout the book, but without delving into many of its advanced features. Other versions of HTML you are likely to encounter in the wild include HTML 4.0.1 and XHTML 1.0.
- 零基礎(chǔ)學(xué)Visual C++第3版
- 零基礎(chǔ)PHP學(xué)習(xí)筆記
- 算法零基礎(chǔ)一本通(Python版)
- Arduino by Example
- Learning Bayesian Models with R
- Web全棧工程師的自我修養(yǎng)
- Troubleshooting PostgreSQL
- Magento 1.8 Development Cookbook
- ASP.NET 3.5程序設(shè)計與項目實踐
- ADI DSP應(yīng)用技術(shù)集錦
- PhoneGap Mobile Application Development Cookbook
- 軟件工程
- PLC應(yīng)用技術(shù)(三菱FX2N系列)
- Linux Shell核心編程指南
- 從Power BI到Analysis Services:企業(yè)級數(shù)據(jù)分析實戰(zhàn)