36 lines
793 B
Plaintext
36 lines
793 B
Plaintext
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.
|
|
|
|
|
|
== Noncompliant Code Example
|
|
|
|
[source,html]
|
|
----
|
|
<img src="http://www.myserver.com/smiley.gif" alt="Smiley face" height="42" width="42" />
|
|
----
|
|
|
|
|
|
== Compliant Solution
|
|
|
|
[source,html]
|
|
----
|
|
<img src="smiley.gif" alt="Smiley face" height="42" width="42" />
|
|
----
|
|
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
include::message.adoc[]
|
|
|
|
include::parameters.adoc[]
|
|
|
|
'''
|
|
== Comments And Links
|
|
(visible only on this page)
|
|
|
|
include::comments-and-links.adoc[]
|
|
endif::env-github,rspecator-view[]
|