rspec/rules/S1829/html/rule.adoc

17 lines
485 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
It is considered best-practice to use relative URLs in web pages to prevent having to update the addresses if the web address in use changes. Moreover, if some absolute URLs are missed in such a process, it will obviously impact the user experience.
2021-04-28 16:49:39 +02:00
== Noncompliant Code Example
----
<img src="http://www.myserver.com/smiley.gif" alt="Smiley face" height="42" width="42" />
----
2021-04-28 16:49:39 +02:00
== Compliant Solution
----
<img src="smiley.gif" alt="Smiley face" height="42" width="42" />
----