Practical Web page design method

Source: Internet
Author: User
Tags html comment

HTML, CSS, and JavaScript are the foundation of web. The first step is HTML. The first week is the HTML that is explained in detail. Although I have worked as an intern and used HTML before, I have never really touched on HTML. Therefore, this is the first time that we have made slight access to HTML. All people say that HTML is simple, tags are fixed, and attributes are similar. However, there are a large number of tags, which are hard to remember for the first time. They are also not proficient in using HTML. It is difficult to get started with simple things. Therefore, do not learn simple things that everyone else says with a simple mind.
Overall HTML structure: Dreamwaver, an HTML design auxiliary tool, is also the first attempt. In fact, you can also set up a course for familiar use of these tools, while the HTML language itself is a course. Therefore, it takes time to use Dreamwaver to draw webpages for the first time. We can only accumulate experience and skills when using the software.
HTML comment: <! -- ...... -->
13:24:36
The variables in Javascript do not need to declare the data type and can be directly used. Even the var keyword can be omitted, but the var keyword cannot be omitted to define (declare) variables.
Var represents any type. It is only the first time that the variable is declared. JavaScript variables are weakly type. They can be used without being declared. It is best to use var declaration without type conversion.
In JS, a common variable can be used as an object, and a method can be called in the "object. Method" format. // Var x = 123.456; var str = x. toString ();
Built-in object: Array. The sort method is sorted in ascending order by default. Length is an attribute of the array, indicating the length of the array.
Window is an object on the outermost layer. "window." can be omitted when all properties in the window are used .". Document itself is also an attribute of window. The document.writeworkflow is named Doc ument. write at the bottom layer.
In the Date object, the getMonth method is from 0 to 11. In actual use, 1 is added and converted to 1 to December.
In JS, strings are essentially string-type arrays at the underlying layer, so strings also have the length attribute. Spaces and tabulation in quotation marks are included in the length. "12 AB", with a length of 5. // Here, the string uses the length attribute instead of the length () method to evaluate the length.
In addition to the Math object, Math. abs () can be used directly without a new instance. Other built-in objects must be used by a new instance. The methods in the Math object are somewhat similar to the class methods in Java.
JS events, capture interception, process events, and return results.
All retrieved content on the page (default) is generally a String ).
Event = "event Method Code". Generally, the method code is encapsulated into a function, and the function name is passed to the event to call the function. // Onload = "load ()"
<Input type = "text" name id value>, name and id are both identification labels. id indicates the text tag at the front end, and name indicates the front end and back end, when a text tag needs to be submitted to the background, it must be identified by the name attribute. The value Attribute assigns content to the text box. The default value = "" indicates that the content is empty. The value is submitted in the form text box.
If an event function has a returned value, return, "return noNumber (event)", and return true are required when the event is used. Otherwise, no execution is performed.
18:01 1/08/10 Neusoft classroom F2-309
---------------------------------------------------------------------------
Document. getElementById () to obtain a tag on the page. Form1.username can also get a tag on the page. // Object call
BOM: browser object model. Window contains all other objects. (Screen, location, navigator, history, document, frames [] array)
Set the focus ". focus ()". Format validation, regular expression (Rule expression), matching based on rules to determine whether or not to meet. "/^... $ /"
Define a variable to store rules, rules. test (), and events. search (regular expression ).
Bytes ---------------------------------------------------------------------------------------------------------------
Selector, class (.): class selector, id (#): id selector, Association selector (separated by commas (,). spaces are used to form the inclusion relationship ).
F2-309
 
This article is from the "ImagineX" blog

Related Article

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.