The Class Selectors can be defined style rules based on the class attribute of the elements。 All the elements having that class will be formatted according to the defined rule。

Here is an example: 

。black { color: #000000; }

The ‘。’ to represent Class selectors。 ‘black’ is the name of the Class。

The ID Selectors can be defined style rules based on the id attribute of the elements。 All the elements having that id will be formatted according to the defined rule。

Here is an example: 

#background { color: #000000; }

The ‘#’ to represent ID selectors。 ‘background’ is id name。

1。3JavaScript

1。3JavaScript Overview

JavaScript is a dynamic computer programming language。 It is lightweight and most commonly used as a part of web pages, whose implementations allow a client-side script to interact with the user and make dynamic pages。 It is an interpreted programming language with object-oriented capabilities。

JavaScript was first known as LiveScript, but Netscape changed its name to JavaScript, possibly because of the excitement being generated by Java。 JavaScript made its first appearance in Netscape 2。0 in 1995 with the name LiveScript。 The general-purpose core of the language has been embedded in Netscape, Internet Explorer, and other web browsers。[4]

The ECMA-262 Specification defined a standard version of the core JavaScript language。

JavaScript is a lightweight, interpreted programming language。

Designed for creating network-centric applications。

Complementary to and integrated with Java。

Complementary to and integrated with HTML。

Open and cross-platform。

JavaScript Syntax

JavaScript can be implemented using JavaScript statements that are placed within the <script>。。。 </script> HTML tags in a web page。

The <script> tags, containing the JavaScript, can be placed anywhere within the web page, but it is normally recommended that it should be kept it within the <head> tags。

The <script> tag alerts the browser program to start interpreting all the text between these tags as a script。 A simple syntax of the JavaScript will appear as follows。

< script language="javascript" type="text/javascript" JavaScript code </script>

The script tag takes two important attributes:

Language: This attribute specifies what scripting language you are using。Typically, its value will be javascript。 Although recent versions of HTML(and XHTML, its successor) have phased out the use of this attribute。

Type: This attribute is what is now recommended to indicate the scripting language in use and its value should be set to "text/javascript"。

上一篇:HEVC高效视频编码中的编码单元快速划分算法研究
下一篇:Asp.Net网站信息智能抓取与分析

MAG3110无线智能停车平台中...

IEEE802.15.4网络自适应策略研究

MATLAB基于流形学习与神经网络的预测建模

社交网络个性化推荐方法对比研究

jsp+mysql网络招标评审系统设计+源代码

基于安卓的真实无线立体声TWS实现

基于生物启发神经网络的AUV三维路径规划

大淘宝网的虚假交易研究

浅谈农村大气环境保护的制度构建【1868字】

淮安市高校足球运动损伤问卷调查表

激光模拟训练器材国内外研究现状

发酵米粉优势菌株的发酵特性研究

个案管理茬老年糖尿病患...

2021年什么行业赚钱,适合...

日语论文中日酒文化对比研究

肢体语言在小学英语教学中的应用浅谈

新疆农林高校學生昆虫生...