Web Design Road (10)

Source: Internet
Author: User
Tags comment tag

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "><!--<! The doctype> declaration must be the first line in the HTML document, before the <meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>
<meta name= "keywords" content= "3WC"/>
<meta http-equiv= "Refresh" content= "5;url=http://www.w3school.com.cn"/><!--note the redirection feature, which is commonly used for page forwarding problems--
<title></title><!--<title> Title define the title of the document--

<body>
<p>
<a href= "http://www.w3school.com.cn" target= "_parent" > This connection </a> will be loaded in a new window because the target property is set to "_blank".
</p><!--Target can control how pop-up windows are displayed. -
<script type= "Text/javascript" >
document.write ("Hi Girl")
</script>
<script type= "Text/javascript" >
document.write ("Hello world!")
</script><!--This is a simple scripting language, which you will learn later, where NoScript defines alternatives for browsers that do not support client-side scripting, and the script outputs "Hello world!" to the browser -

<noscript>your Browser does not support javascript!</noscript>

<script type= "Text/javascript";
<!--
document.write ("Hello world!")
//-->
</script><!--If the browser does not recognize the <script> tag at all, the contents of the <script> tag are displayed on the page in text form. To prevent this from happening, you should hide the script in the Comment tab. Those old browsers (browsers that do not recognize <script> tag) ignore these comments, so the contents of the labels are not displayed on the page. And those new browsers will read these scripts and execute them, even if the code is nested inside the comment tag. -->
<p>&lt;&gt;&iuml;&lt;&gt;
</p>
<!--in HTML, some characters are reserved. The
cannot use less than (<) and greater than sign (>) in HTML because the browser mistakenly considers them to be labels.
If you want to display reserved characters correctly, we must use the character entity (character entities) in the HTML source code. The browser will always truncate the space in the HTML page. If you write 10 spaces in the text, the browser removes 9 of them before the page is displayed. To increase the number of spaces in the page, you need to use &nbsp; The character entity. -->
<p>
Uniform Resource Locator Uniform Resource locator= URL, format: scheme://host.domain:port/path/filename
<BR/
Scheme-Defines the type of Internet service. The most common type is http<br/>
Host-Defines the domain host (the default host for HTTP is www) <br/>

Domain-defines the Internet domain name, such as W3school.com.cn<br/>
:p ORT-Defines the port number on the host (the default port number for HTTP is <br)/>
Path-Defines the path on the server (if omitted, the document must be in the root directory of the Web site). <br/>

FileName-Defines the name of the document/resource <br/>

</p>
<b>
URL encoding converts characters into a format that can be transmitted over the Internet, and URLs can only be sent over the Internet using the ASCII character set.
Because URLs often contain characters outside of the ASCII collection, URLs must be converted to valid ASCII formats.
URL encoding uses a "%" followed by a two-bit hexadecimal number to replace non-ASCII characters.
The URL cannot contain spaces. URL encoding typically uses + to replace spaces.
</b>
</body>

Web Design Road (10)

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.