HTML TutorialLesson 39Free preview
HTML URL Encode
This lesson is part of HTML · All levels
Summary
URL encoding converts specific characters in a web address into a secure format based on percentage (%) and hexadecimal code. For example, the space is 20% so the URL remains valid when sent to the server. This technique is important when building a link or query string that contains punctuations like & and?.
Key points
- URL encoding converts a special character to the %XX format
- Spaces are written as %20 or plus sign
- Useful for query strings containing parameters and values
- Each character has a unique hexadecimal code in ASCII/UTF-8.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.