What is the URL in HTML? structure like?


URL, also known as web address, a URL including words (such as Taimienphi.vn) or IP address (such as 192.68.20.50, refer to the article below of Taimienphi.vn to learn about the URL in HTML.


In the following article, Taimienphi.vn will introduce you to the URL in HTML. In addition, readers can refer to some other articles on Taimienphi.vn to learn about character encoding (HTML).

Learn about URLs in HTML

Table of Contents:
1. URL (Uniform Resource Locator) in HTML
2. URL Schemes in HTML
3. URL Encoding
4. Example of ASCII Encoding

first. URL (Uniform Resource Locator) in HTML

– Web browser requests pages from the web server using the URL.

– The URL (or Uniform Resource Locator) is used to address the document (or other data) on the web.

A web address, such as Taimienphi.vn, follows the syntax rules below:

scheme: //prefix.domain: port / path / filename

Inside:

– scheme: specify the type of Internet service (most commonly http or https).

– prefix: Define the domain prefix (the default for http is www).

– domain: Identify Internet domain names (such as Taimienphi.vn).

– port: Specify the port number at the server (the default for http is 80).

– path: specify the path at the server (if omitted, the default is the root directory of the site).

– filename: Specify the name of the document or resource.

2. URL Schemes in HTML

Below is a list of some common URL schemes:

url in html

3. URL Encoding

– URLs can be sent over the Internet using the ASCII character code set. If a URL contains characters other than ASCII characters, the URL must be converted.

– URL encoding converts non-ASCII characters into a format that can be transmitted over the Internet.

– URL encoding replaces non-ASCII characters with “%” followed by hexadecimal digits.

– The URL cannot contain spaces. URL encoding usually replaces spaces with a plus sign (+) or% 20.

4. Example of ASCII Encoding

The browser encodes the input, according to the character set used on your page.

The default character set in HTML5 is UTF-8.

url in html 2

https://thuthuat.taimienphi.vn/url-in-html-50808n.aspx
The above article Taimienphi.vn has just introduced you to the URL in HTML. Also readers can refer to some other articles already on Taimienphi.vn to learn more about Layout in HTML. In the next article, Taimienphi.vn will introduce you further XHTML.

.

Add a Comment

Your email address will not be published. Required fields are marked *