</> Code Corner

HTML · HTML Tutorial · Lesson 38

HTML URL Encode

How URLs are structured and encoded.

A URL (Uniform Resource Locator) is a web address: scheme://prefix.domain:port/path/filename.

Part Example
scheme https
prefix www
domain example.com
port 443 (default for https)
path /docs/
filename index.html

URL Encoding

URLs can only be sent over the Internet using the ASCII character set. Unsafe characters are replaced with a % followed by two hexadecimal digits. Spaces become %20 (or + in form data).

Keep reading “HTML URL Encode”

Sign up to read the full lesson (1 more parts), try every example in the live editor, and take the 5-question quiz.

Chat with us 👋