HTML is one of the most important coding languages in existence. It’s what enables you to create websites and webpages. But what does that mean for you as a user? When you visit a website, you send the HTML code in your browser and interprets by the website’s own code. This means that you can use any of the HTML tags without worrying about their respective codes. This is particularly helpful when you want to embed multimedia content like videos or images. Simply paste the URL into the appropriate tag and you’re good to go! But what about those pesky non-alphanumeric characters? Don’t worry; all of these characters are automatically encoded so that they are displayed correctly in your browser. So next time you see an oddball character in a webpage, don’t panic—you can just encode it and be on your way!
What is HTML?
HTML is a markup language that you can use it for creating websites. It standardizes and uses tags to structure the document. You can read HTML documents by web browsers, which displays the content as it writes. HTML also allows for custom menus, fonts, and graphics to be embedded within the document.
How to encode a URL?
When you want to enter a URL into a web browser, you need to encode it so that the browser can understand it. The three most common encoding schemes are Base64, URL-encoded and UTF-8.
Base64 encoding: To encode a URL using base64, simply replace the letters of the URL with their corresponding base64 code values. For example, the URL http://www.google.com would be encoded as qPjY2xubTI6c3RyZWFtZSBvbGljeSBvd25lcmF0aW9u would become eAgEAAhEDAwGCAQAGggFBgXHUwNDI4MHB4IDAQAB.
URL-encoded encoding: To encode a URL using url-encoded, simply replace each letter of the URL with a %XX format where XX is the corresponding base64 code value. For example, the URL http://www.google.com%22 would become %eAgEAAhEDAwGCAQAGggFBgXHUwNDI4MHB4IDAQAB2.
UTF-8 encoding: To encode a URL using UTF-8, simply replace each letter of the URL with two hexadecimal digits (00-EF). For example, the URL http://www.google.com%EF%BC%B4 would become 0x042f.
HTML URL and encode: Learn HTML Encodes the value of the given HTML tag as a base64 string, which inserts into the destination document as an anchor link.