Tag:Writing method
-
Introduction to XHTML common tags
For some time, I found that many people can’t use XHTML, not only ordinary beginners, but also some programmers don’t know how to write XHTML. Here, I can summarize some common application problems, which can also enable us to form a tacit understanding in communication and cooperation.There are many tags in XHTML, but there are […]
-
Xmlhttp multi browser compatibility writing method
Copy codeThe code is as follows: var xmlhttp=null; if (window.XMLHttpRequest) { xmlhttp = new XMLHttpRequest(); } if (!xmlhttp&&window.ActiveXObject) { try { xmlhttp = new ActiveXObject(“Msxml2.XMLHTTP.5.0”) } catch(e) { try { xmlhttp = new ActiveXObject(“Msxml2.XMLHTTP.4.0”) } catch(e) { try { new ActiveXObject(“Msxml2.XMLHTTP”) } catch(e) { try{new ActiveXObject(“Microsoft.XMLHTTP”)}catch(e){} } } } } If (! Xmlhttp) {alert (“xmlhttp is not available. About to jump to a non ajax page.”); location=”nonAjax.htm”}
-
Concise examples of function writing in Lua
Function definition: use the keyword function to define functions, ending with the keyword end Local variable: defined with the keyword local If it is not defined with local, even the variables defined inside the function are global variables! A function can have multiple return values: return a, B, C Parallel assignment: A, B = C, […]
-
Problems that should be paid attention to in the self closing writing of XHTML Tags
The IMG tag in XHTML is also called self closing, which is completely legal in XML.XHTMLThe IMG tag inside should be written like this: < img ALT = “” SRC = “” / >. This writing method is called self closing, which is completely legal in XML. If you are not used to writing XML […]
-
Introduction to the use skills of commonly used XHTML Tags
There are many tags in XHTML, but there are only a few that are often used. Just master these. Let’s list them one by one: div, P, span, UL, Li, DL, DT, DD, a, IMG, h, strong, emThere are many tags in XHTML, but there are only a few that are often used. Just master […]
-
Semantics, writing and best practices of link a
The semantics, writing and best practices of link aSeeing this topic in JavaEye, the discussion is very interesting. I can’t help but get involved.First of all, link a and button are semantic and cannot be replaced for convenience. A is the abbreviation of anchor. It is an anchor point used for navigation or positioning. Typical […]