{"id":8098,"date":"2022-09-27T04:29:00","date_gmt":"2022-09-27T04:29:00","guid":{"rendered":"https:\/\/mdr.foobrdigital.com\/?p=8098"},"modified":"2022-09-27T04:29:00","modified_gmt":"2022-09-27T04:29:00","slug":"html-file-paths","status":"publish","type":"post","link":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/2022\/09\/27\/html-file-paths\/","title":{"rendered":"HTML File Paths"},"content":{"rendered":"\n<p>A file path defines the location of a file in a web site&#8217;s folder structure.<\/p>\n\n\n\n<p>A file path is used when we link to such external files like:<\/p>\n\n\n\n<ul><li>web pages<\/li><li>images<\/li><li>JavaScripts<\/li><li>style sheets<\/li><\/ul>\n\n\n\n<p>There exist absolute and relative file paths.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"absolute-file-paths-2\">Absolute File Paths<\/h2>\n\n\n\n<p>An absolute file path is the\u00a0URL\u00a0to access an internet file.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"example-of-an-absolute-file-path-4\">Example of an absolute file path:<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n  &lt;head&gt;\n    &lt;title&gt;Title of the document&lt;\/title&gt;\n  &lt;\/head&gt;\n  &lt;body&gt;\n    &lt;h2&gt;Absolute File Path Example&lt;\/h2&gt;\n    &lt;img src=\"https:\/\/www.slrlounge.com\/wp-content\/uploads\/2019\/11\/Sea-Thru-Underwater-Photography-Algorithm-SLR-Lounge_0001-1000x675.jpg\" alt=\"Sea\" style=\"width:300px\"&gt;\n  &lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"relative-file-paths-6\">Relative File Paths<\/h2>\n\n\n\n<p>A relative file path mentions a file that is relative to the current page. In the example below, the file path points out a file in the images folder that is located at the root of the current web:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"example-of-a-relative-file-path-8\">Example of a relative file path:<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n  &lt;head&gt;\n    &lt;title&gt;Title of the document&lt;\/title&gt;\n  &lt;\/head&gt;\n  &lt;body&gt;\n    &lt;h2&gt;Relative File Path Example&lt;\/h2&gt;\n    &lt;img src=\"\/build\/images\/smile-small.jpg\" alt=\"Smile\" width=\"290\" height=\"260\"&gt;\n  &lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>A file path defines the location of a file in a web site&#8217;s folder structure. A file path is used when we link to such external files like: web pages images JavaScripts style sheets There exist absolute and relative file paths. Absolute File Paths An absolute file path is the\u00a0URL\u00a0to access an internet file. Example [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[285],"tags":[],"_links":{"self":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/8098"}],"collection":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/comments?post=8098"}],"version-history":[{"count":0,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/8098\/revisions"}],"wp:attachment":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/media?parent=8098"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/categories?post=8098"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/tags?post=8098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}