HTML Dom tutorial 6-html Dom node Information
1: node Information
Each node has attributes related to certain node information. These attributes are:
Nodename (node name)
Nodevalue)
Nodetype (node type)
2: nodename
The nodename attribute contains the name of a node.
The nodename of the element node is the label name.
The no
HTML Dom tutorial 19-html Dom Button Object
1: Button Object
The button object represents a button.
Each time a
2: properties of the Button Object
attribute
description
ie
F
O
W3C
accesskey
set or return the shortcut key for accessing a button.
6
1
9
Yes
HTML, html tutorial
Mark
Character Control Mark
Format
Reference text
Attribute name attribute value descriptionBorder pixel sets the edge of the tableCellspacing pixel/percentage storage grid box widthCellpadding pixel/percentage data and frame line distanceWidth pixel/percentage table widthHeight pixel/percentage table ThicknessAlign left table (default)Cente
This section describes how to use the INPUT tag on a webpage and how to use the attributes of the INPUT tag. the input tag lt; input gt; is one of the most commonly used tags in a form. Common text fields and buttons all use this tag. Basic syntax 01 lt; Form gt; 02 lt; inputname quot; field_name quot; type amp; q HTML Form tag tutorial, this section describes how to use the INPUT tag on a webpage a
HTML Dom tutorial 5-html Dom node access
1: common methods for finding and accessing nodes
Use the getelementbyid () and getelementsbytagname () methods;
Use the parentnode, firstchild, and lastchild attributes of an element node;
Access the document root node.
2: getelementbyid () and getelementsbytagname ()
Getelementbyid () and getel
NONET-Prevent any network connections during parsing. Recommended for parsing untrusted documents.
Usage:1 doc = Nokogiri::xml (File.Open ("blossom.xml")) do |config| 2 config.strict.nonet3 EndOr1 doc = Nokogiri::xml (File.Open ("blossom.xml")) do |config| 2 Config.options = nokogiri::xml::P arseoptions::strict | nokogiri::xml::P arseoptions::nonet 3 EndCodingInside the program, strings are stored normally in UTF-8 encoding. A method that returns a text value returns a UTF-8 string
Convert some of the predefined characters to HTML entities and precede predefined characters with backslashes, including single quotes, double quotes, backslashes, and NULL to secure the database
Convert some of the predefined characters to HTML entities and precede predefined characters with backslashes, including single quotes, double quotes, backslashes, and NULL to secure the database
ArticleDirectory
2: syntax for using style object attributes:
Csstext attributes
HTML Dom tutorial 41-html Dom style object
1: style object
The style object represents a separate style declaration. You can access the style object from the document or element of the application style. 2: syntax for using style object attributes:
Document. g
Html dom tutorial 17-HTML DOM Base Object
1: Base Object
The Base object represents the base element of HTML.
Each time 2: attributes of the Base Object
Attribute
Description
IE
F
O
W3C
Href
Sets or returns the Reference URL for all links on the page.
5
1
9
Yes
HTML, html tutorial
Meta> Tags provide metadata. The metadata is not displayed on the page, but will be parsed by the browser.
META elements are usually used to specify the web page description, keywords, the last modification time of the file, author, and other metadata.
Metadata can be used in browsers (how to display content or reload pages), search engines (k
entire table (that is, the table label), while the cell (that is, the td label) adopts the in style. Save the disk and check the effect. Is it the same as the following?After learning how to create a table with a 3D border of 1x1, it is not difficult to make the results of this example. You may wish to explore it yourself.# P #The previous examples show how to beautify the border of a table with css. You can try different combinations to make a more beautiful table! To facilitate your learning,
HTML, html tutorial
Generally, the browser extracts the corresponding elements from the URL of the current document to fill in the blank space in the relative URL. You can use the
Sample Code:
Here, the src attribute of the element is relative path. By default, you should use the path of the current document to expand this relative path. However, since the
HTML, html tutorial
The postion method is used to keep the upper, lower, and lower sides of the DIV in the middle, and the size of the DIV remains unchanged.
The above is the method of using margin. The DIV is centered, and its shape depends on what it is. I hope you can take a closer look at it.
HTML, html tutorial
Refer: this is the effect seen in Firefox. Resolution: 279*340. scroll down to the bottom of the scroll bar.
The resolution is 285*528.
This is the effect of JS changes. You can see that the size of the browser is actually the size of the scroll bar. If you get the document. body. clientHeight, when the resolution is too low, it will get 0,
HTML Dom tutorial 9-html Dom window object
1: Window object
Window objects are top-level objects in the Javascript level.
A window object represents a browser window or framework.
The window object is automatically created every time
2:
Set of window objects
Collection
Description
IE
F
O
Frames
HTML Dom tutorial 38-html DOM object
1: link object
An object represents the
2: link object properties
Attribute
Description
IE
F
O
W3C
Align
Sets or returns the alignment of the object according to the surrounding text
5
1
9
Yes
Archive
Sets or returns a string that can be u
HTML Dom tutorial 16-html Dom area object
1: Area object
An area object represents an area mapped to an image (image ing refers to an image with a clickable area)
Each time a
2: attributes of the Area object
Attribute
Description
IE
F
O
W3C
Accesskey
Set or return the shortcut key for accessing a region
input selected when submitting the form is uploaded, interacting with the database, but this is something.
3. Submission of the form,
The type attribute's submit is the most commonly used method of submitting a form, giving the type a value value that can be displayed directly on the Submit button. In addition, the submit submission of the form needs to be opened to the form
Label actin property to specify the action of the form when it is uploaded, and if omitting the action attribute does no
HTML Basics | Basics Tutorial
The color is mixed with red, green and blue.
Color values
The color is defined by a hexadecimal symbol, which consists of red, green, and blue values (RGB). The minimum value for each color is 0 (16: #00). The maximum value is 255 (16: #FF).
Turn off the red
If red is completely turned off, the combination of green and blue has 65536 species (256 x 256).
Click here to view the
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.