Curriculum
Course: HTML Basic
Login

Curriculum

HTML Basic

HTML Introduction

0/1

HTML Editors

0/1

HTML Elements

0/1

HTML Attributes

0/1

HTML Headings

0/1

HTML Paragraphs

0/1

HTML Styles

0/1

HTML Formatting

0/1

HTML Quotation

0/1

HTML Comments

0/1

HTML Colors

0/1

HTML Favicon

0/1

HTML Page Title

0/1

HTML Block and Inline

0/1

HTML Iframes

0/1

HTML Java Script

0/1

HTML File Paths

0/1

HTML - The Head Element

0/1

HTML Style Guide

0/1

HTML Entities

0/1

HTML Symbols

0/1
Text lesson

HTML Uniform Resource Locators

A URL may consist of either words (such as w3schools.com) or an Internet Protocol (IP) address (for example, 192.68.20.50).

When browsing the web, individuals typically input the name since names are simpler to recall than numbers.

URL – Uniform Resource Locator

Web browsers request pages from web servers by employing a URL.

A Uniform Resource Locator (URL) serves as the means to locate a document or other data on the web.

A web address, such as https://www.code7school.com/html/default.asp, adheres to these syntax guidelines:

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

Description:

  • Scheme: Specifies the type of Internet service (commonly http or https).
  • Prefix: Determines the domain prefix (with www being the default for http).
  • Domain: Specifies the Internet domain name (e.g., w3schools.com).
  • Port: Indicates the port number at the host (with 80 being the default for http).
  • Path: Specifies a path at the server (If not specified: defaults to the root directory of the site).
  • Filename: Determines the name of a document or resource.

Common URL Schemes

Below is a table enumerating some frequently used schemes:

Scheme

Short for

Used for

http

HyperText Transfer Protocol

Common web pages. Not encrypted

https

Secure HyperText Transfer Protocol

Secure web pages. Encrypted

ftp

File Transfer Protocol

Downloading or uploading files

file

 

A file on your computer

URL Encoding

URLs can solely traverse the Internet utilizing the ASCII character-set. When a URL incorporates characters beyond the ASCII set, conversion becomes necessary.

URL encoding transforms non-ASCII characters into a format compatible with Internet transmission.

In URL encoding, non-ASCII characters are substituted with a “%” followed by hexadecimal digits.

Spaces are not permissible within URLs. Typically, URL encoding replaces a space with a plus (+) sign or %20.

Try It Yourself

When you click “Submit,” the browser will encode the input into a URL format before sending it to the server.

A page on the server will then exhibit the received input.

Feel free to experiment with different input and click Submit again.

ASCII Encoding Examples

Your browser will encode input based on the character-set employed in your page.

The default character set in HTML5 is UTF-8.

character

From Windows-1252

From UTF-8

%80

%E2%82%AC

£

%A3

%C2%A3

©

%A9

%C2%A9

®

%AE

%C2%AE

À

%C0

%C3%80

Á

%C1

%C3%81

Â

%C2

%C3%82

Ã

%C3

%C3%83

Ä

%C4

%C3%84

Å

%C5

%C3%85