See w3school/html1. HTML element syntax
The HTML element usesStart tagStart
The HTML element usesEnd tagTermination
Element ContentIs the content between the start tag and the end tag.
Some HTML elements haveEmpty content)
Empty ElementClose
XHTML rulesXHTML is an application of XML that adheres to the specifications and requirements of XML. Technically speaking. These syntax rules are defined by the XML specification.The rules that XML documents must follow make it easier to build
HTML character entity, html character entity
Reserved characters in HTML must be replaced with character entities.
HTML Entity
Some characters are reserved in HTML.
You cannot use signs () in HTML. This is because the browser mistakenly believes
C # Remove the Code of all HTML tags | remove the HTML Tag Code
Public String nohtml (string htmlstring) // remove the HTML tag { // Delete the script htmlstring = RegEx. replace (htmlstring, @ " "," ", regexoptions. ignorecase); // delete
Some characters, such as less than signs, have special meanings in HTML, so they cannot be used directly in the text.In order to display the less than sign in the HTML document, we need to use escape characters.The actual escape character means that
This article introduces various methods and implementation programs for removing unnecessary HTML, Javascrit, and Css labels from PHP.
1. Do not retain any HTML tags. The Code will be like this: echo strip_tags ($ str );
2. if you keep only one tag,
Mouse over the object when hovering the prompt content (Title property content) Wrapping method, the HTML title wrapping method summary. The title property of HTML is displayed by default. How do I change the line? Here DIVCSS5 summarizes two kinds
Small functions that remove HTML tags and javascript code
Function trip_html ($ html, $ len ){
// $ Html should contain an HTML document.
// In this example, the HTML tag and javascript code are removed.
Php clears HTML code. When intercepting characters, it is often caused by exceptions in the HTML format. ASP is, php (as the mainstream development language) is also, if it is a foreseeable simple HTML format, use replace, for articles that often
HTML Special character encoding Daquan: to enter special characters into the Web page, you need to include the & in the HTML code to start with a combination of letters or & #开头的数字. Here is a letter or a number of special symbols in the encyclopedia.
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.