Jump into concepts and practice - no test required
or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Recall & Review
beginner
What is a URL slug?
A URL slug is the part of a web address that comes after the domain name. It usually describes the page content in simple words, making the URL easy to read and remember.
Click to reveal answer
beginner
Why is URL structure important for SEO?
A clear URL structure helps search engines understand the content and hierarchy of a website. It also improves user experience by making links easy to read and share.
Click to reveal answer
intermediate
What are some best practices for creating SEO-friendly slugs?
Use short, descriptive words; separate words with hyphens; avoid special characters and stop words; and keep slugs lowercase for consistency.
Click to reveal answer
intermediate
How does a hierarchical URL structure benefit a website?
It organizes content logically, showing relationships between pages. This helps search engines and users navigate the site easily and understand the importance of each page.
Click to reveal answer
beginner
What should you avoid when optimizing URL slugs?
Avoid using long strings of numbers, unnecessary words, uppercase letters, spaces, and special characters that can confuse users and search engines.
Click to reveal answer
Which character is best to separate words in a URL slug?
AHyphen (-)
BUnderscore (_)
CSpace
DPeriod (.)
✗ Incorrect
Hyphens are preferred because search engines treat them as word separators, improving readability and SEO.
What is the main purpose of a URL slug?
ATo increase URL length
BTo add random characters for security
CTo describe the page content clearly
DTo confuse search engines
✗ Incorrect
A URL slug helps users and search engines understand what the page is about.
Which of these is NOT recommended for SEO-friendly URLs?
AIncluding stop words like 'and' or 'the'
BUsing hyphens to separate words
CKeeping URLs short and descriptive
DUsing lowercase letters
✗ Incorrect
Stop words add unnecessary length and do not help SEO, so they are best avoided.
Why should URLs be easy to read for users?
ATo make URLs longer
BTo confuse visitors
CTo hide the page content
DSo users can remember and share them easily
✗ Incorrect
Readable URLs improve user experience and make sharing simpler.
What does a hierarchical URL structure show?
AOnly the homepage
BThe relationship between pages
CRandom page order
DUnrelated content
✗ Incorrect
It shows how pages are organized and related, helping navigation and SEO.
Explain why using hyphens in URL slugs is better than underscores or spaces.
Think about how search engines read URLs and how users see them.
You got /4 concepts.
Describe how a well-structured URL benefits both users and search engines.
Consider both human and technical perspectives.
You got /5 concepts.
Practice
(1/5)
1. What is the main purpose of using a slug in a URL?
easy
A. To hide the website's domain name
B. To describe the page content clearly and improve SEO
C. To make URLs longer and complex
D. To add random characters for security
Solution
Step 1: Understand what a slug is
A slug is the part of a URL that identifies a specific page in a readable way.
Step 2: Identify the purpose of a slug
Slugs help describe the page content clearly, making it easier for users and search engines to understand.
Final Answer:
To describe the page content clearly and improve SEO -> Option B
Quick Check:
Slug = clear description + SEO benefit [OK]
Hint: Slugs explain page content simply for SEO [OK]
Common Mistakes:
Thinking slugs are for security
Believing slugs make URLs complex
Confusing slugs with domain names
2. Which of the following is the correct way to write a URL slug?
easy
A. my-new-article
B. My New Article
C. my_new_article!
D. my new article
Solution
Step 1: Identify valid slug characters
Slugs should use lowercase letters and hyphens to separate words for readability and SEO.
Step 2: Check each option
my-new-article uses lowercase letters and hyphens correctly; others have spaces, uppercase letters, or special characters.
Final Answer:
my-new-article -> Option A
Quick Check:
Slug format = lowercase + hyphens [OK]
Hint: Use lowercase and hyphens for slugs [OK]
Common Mistakes:
Using spaces instead of hyphens
Including uppercase letters
Adding special characters
3. Given the URL https://example.com/blog/how-to-cook-pasta, what does the slug how-to-cook-pasta indicate?
medium
A. A blog post about cooking pasta
B. The website's homepage
C. A product page for pasta
D. An error page
Solution
Step 1: Analyze the URL structure
The URL contains /blog/ indicating a blog section, followed by the slug how-to-cook-pasta.
Step 2: Interpret the slug meaning
The slug clearly describes a topic about cooking pasta, so it likely points to a blog post on that subject.
Final Answer:
A blog post about cooking pasta -> Option A
Quick Check:
Slug meaning = blog post topic [OK]
Hint: Slug describes page content clearly [OK]
Common Mistakes:
Confusing slug with homepage
Assuming it's a product page
Thinking it's an error page
4. Identify the error in this URL slug: https://example.com/products/Best!Shoes2024
medium
A. Slug uses only lowercase letters
B. Slug is too short
C. Slug uses uppercase letters and special characters
D. Slug contains spaces
Solution
Step 1: Examine the slug characters
The slug Best!Shoes2024 contains uppercase letters and an exclamation mark, which are not recommended.
Step 2: Understand slug best practices
Slugs should be lowercase and avoid special characters for better SEO and readability.
Final Answer:
Slug uses uppercase letters and special characters -> Option C
Quick Check:
Slug must be lowercase and clean [OK]
Hint: Avoid uppercase and special characters in slugs [OK]
Common Mistakes:
Ignoring uppercase letters
Allowing special characters
Thinking slug length is the issue
5. You want to optimize URLs for an e-commerce site selling shoes. Which URL structure is best for SEO and user clarity?
hard
A. https://shop.com/shoes?category=mens&style=running
B. https://shop.com/item?id=12345
C. https://shop.com/products/12345
D. https://shop.com/shoes/mens-running-shoes
Solution
Step 1: Evaluate URL clarity and descriptiveness
https://shop.com/shoes/mens-running-shoes uses clear, descriptive slugs that tell users and search engines exactly what the page is about.
Step 2: Compare with other options
The other options use IDs or query parameters which are less readable and less SEO-friendly.
Final Answer:
https://shop.com/shoes/mens-running-shoes -> Option D
Quick Check:
Descriptive slugs improve SEO and user experience [OK]
Hint: Use descriptive, readable slugs for SEO-friendly URLs [OK]