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网站信息智能抓取与分析

基于PageRank算法的网络数据分析

基于神经网络的验证码识别算法

基于网络的通用试题库系...

网络常见故障的分类诊斷【2055字】

网络安全的研究【1797字】

无线接入技术及其发展特点【1364字】

网络信息安全技术管理的...

老年2型糖尿病患者运动疗...

LiMn1-xFexPO4正极材料合成及充放电性能研究

互联网教育”变革路径研究进展【7972字】

网络语言“XX体”研究

ASP.net+sqlserver企业设备管理系统设计与开发

张洁小说《无字》中的女性意识

麦秸秆还田和沼液灌溉对...

安康汉江网讯

新課改下小學语文洧效阅...

我国风险投资的发展现状问题及对策分析