Recent development page encountered some problems, here to record.Usually, our HTML page or JSP page will inevitably need to introduce some pictures, JS, CSS and other files, so you need to fill in the corresponding file path, there are relative
The Prettify () method of the BS4 library:
To print a label:
For Chinese HTML code, you can also print directly:
Method of HTML content lookup based on BS4 library
<>.find_all (Name,attrs,recursive,string,*
When we write PHP, we sometimes run into code that wants to annotate part of it, and it's made up of HTML and PHP, and it's a bit of a hassle to separate the comments in one line. But dare not delete, at this time we can take full advantage of the
Recent exposure to XML is relatively frequent, but for the theoretical knowledge is indeed very poor, so, there is time to organize, hope for future work can be helpful.XML is designed to transfer data and store data.HTML is designed to display data.
JavaScript gets the IE version code:
var GIE = Getie ();
Alert (gie.version)
function Getie () {
var Rmsie =/(MSIE) ([\w.] +)/;
var ua = Navigator.userAgent.toLowerCase ();
var match = rmsie.exec (UA)
var
In project development often see the value of different pages in the Web work, this article gives you a list of three common ways.
have been in touch with PHP for several months, this article summarizes this period of time, in the programming
xml| statement
A Super cow PHP class that was discovered today from Phpclasses.org, the most special of which is that you can use SELECT statements to read specific data from XML and HTML documents. For example, here is an example:
/** *
I. PowerDesigner generating SQL problemThe method for generating SQL is database-->generate database (Ctrl + G) but hintsCould not load VBScript engine.Check VBScript installation.Generation aborted due to errors detected during the verification of
Label Category:块级标签:block ` div p How CSS and HTML are combined:A:在标签中的style属性里书写css代码 例:大家好B:把css代码写到head中的style标签里,可提高css代码的重用性. 例: C:导入外部css,在ie中这种方式导入外部css文件,最多导入33个.这种导入方式是输入css代码的范畴. 例: D:导入外部css,输入HTML代码的导入方式.导入数量没有上限.
1. The rules apply to XHTML, but do not apply to HTML
, , are required labels
The xmlns attribute of the tag must be set, and its value is "http://www.w3org/1999/xhtml"
All elements must end
All labels must be lowercase
Any
Details about HTML-embed labels and html-embed labels
Details about HTML-embed labels(1) Basic Syntax:Embed src = urlNote: embed can be used to insert various multimedia files in the format of Midi, Wav, AIFF, AU, MP3, etc,Netscape and the new
HTML automatic line feed and HTML automatic line feed
Sometimes the text area is exceeded, but the text is not automatically wrapped
You can use force line breaks.
Force do not wrap div {white-space: nowrap;} auto wrap div {word-wrap: break-word;
Use CSS and HTML to write a basic Web Framework$. Metadata. setType ("attr", "vld"); $. validator. addMethod ("username", function (value) {var p =/^ [0-9a-zA-Z \ u4e00-\ u9fa5 \. \-@ _] + $/; return p.exe c (value )? True: false;}, "Please enter
Compressing html and html code
With the optimization of recent research programs, compressing html can reduce the size of html and improve the page speed. Add the following code to the basepage of webform:
1 /// 2 // rewrite the Render method, to
First, HTML entities1. What is an HTML entity?In HTMl, some characters are reserved. Less than (), the browser is mistaken for a labelIf you want to display reserved characters correctly, you must use the character entity (HTML entities) in the HTML
Common html tags and html tags
List common html tags and their usage!
Tag Name
Definition and usage
Introduction
Tag type
Html/html5
Declaration must be the first line of the HTML document, located before the tag.
HTML condition comments and html comments
The common HTML comment format is
IE5 ~ IE9 also supports a specialIf condition comment(It seems a bit similar to the syntax structure during template rendering)
html statement
In this way, the hack code
HTML review and html Review tag: defines HTML documents.
label: defines the document subject.
- label: defines the HTML title
label: Create a horizontal line
comment
label: line feedHTML link
tag: Link
By default, links appear in the browser
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.