{"id":2174,"date":"2020-05-03T18:31:17","date_gmt":"2020-05-03T18:31:17","guid":{"rendered":"https:\/\/www.copahost.com\/blog\/?p=2174"},"modified":"2020-05-31T12:54:55","modified_gmt":"2020-05-31T12:54:55","slug":"bootstrap-cdn-include","status":"publish","type":"post","link":"https:\/\/www.copahost.com\/blog\/bootstrap-cdn-include\/","title":{"rendered":"Bootstrap: How to include via CDN"},"content":{"rendered":"<p>This article shows how to include Bootstrap in your site. There are basically two methods: downloading the Bootstrap files, and via CDN.<\/p>\n<p>As an easier and quicker way, we will show how to include it remotely, via MaxCDN. This way we don&#8217;t need to download files.<\/p>\n<p>Simply insert these lines inside your &lt;head&gt; section:<\/p>\n<pre class=\"lang:default decode:true \">&lt;!-- Latest compiled and minified CSS --&gt;\r\n&lt;link rel=\"stylesheet\" href=\"https:\/\/maxcdn.bootstrapcdn.com\/bootstrap\/3.4.1\/css\/bootstrap.min.css\"&gt;\r\n\r\n&lt;!-- jQuery library --&gt;\r\n&lt;script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.4.1\/jquery.min.js\"&gt;&lt;\/script&gt;\r\n\r\n&lt;!-- Latest compiled JavaScript --&gt;\r\n&lt;script src=\"https:\/\/maxcdn.bootstrapcdn.com\/bootstrap\/3.4.1\/js\/bootstrap.min.js\"&gt;&lt;\/script&gt;<\/pre>\n<p>Here&#8217;s how your <a href=\"https:\/\/www.copahost.com\/blog\/html-file-hosting\/\" >HTML file<\/a> should look like:<\/p>\n<pre class=\"lang:default decode:true \">&lt;!DOCTYPE html&gt;\r\n&lt;html lang=\"en\"&gt;\r\n&lt;head&gt;\r\n  &lt;title&gt;Bootstrap Example&lt;\/title&gt;\r\n  &lt;meta charset=\"utf-8\"&gt;\r\n  &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"&gt;\r\n  &lt;link rel=\"stylesheet\" href=\"https:\/\/maxcdn.bootstrapcdn.com\/bootstrap\/3.4.1\/css\/bootstrap.min.css\"&gt;\r\n  &lt;script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.4.1\/jquery.min.js\"&gt;&lt;\/script&gt;\r\n  &lt;script src=\"https:\/\/maxcdn.bootstrapcdn.com\/bootstrap\/3.4.1\/js\/bootstrap.min.js\"&gt;&lt;\/script&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n\r\n&lt;div class=\"container\"&gt;\r\n  &lt;h1&gt;My First Bootstrap Page&lt;\/h1&gt;\r\n  &lt;p&gt;This is some text.&lt;\/p&gt; \r\n&lt;\/div&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article shows how to include Bootstrap in your site. There are basically two methods: downloading the Bootstrap files, and via CDN. As an easier and quicker way, we will show how to include it remotely, via MaxCDN. This way we don&#8217;t need to download files. Simply insert these lines inside your &lt;head&gt; section: &lt;!&#8211; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2174","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Bootstrap: How to include via CDN - Copahost<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.copahost.com\/blog\/bootstrap-cdn-include\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bootstrap: How to include via CDN - Copahost\" \/>\n<meta property=\"og:description\" content=\"This article shows how to include Bootstrap in your site. There are basically two methods: downloading the Bootstrap files, and via CDN. As an easier and quicker way, we will show how to include it remotely, via MaxCDN. This way we don&#8217;t need to download files. Simply insert these lines inside your &lt;head&gt; section: &lt;!-- [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.copahost.com\/blog\/bootstrap-cdn-include\/\" \/>\n<meta property=\"og:site_name\" content=\"Copahost\" \/>\n<meta property=\"article:published_time\" content=\"2020-05-03T18:31:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-31T12:54:55+00:00\" \/>\n<meta name=\"author\" content=\"Gustavo Gallas\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Gustavo Gallas\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.copahost.com\/blog\/bootstrap-cdn-include\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/bootstrap-cdn-include\/\"},\"author\":{\"name\":\"Gustavo Gallas\",\"@id\":\"https:\/\/www.copahost.com\/blog\/#\/schema\/person\/386b3f1f79299d43f4ceb33d26428246\"},\"headline\":\"Bootstrap: How to include via CDN\",\"datePublished\":\"2020-05-03T18:31:17+00:00\",\"dateModified\":\"2020-05-31T12:54:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/bootstrap-cdn-include\/\"},\"wordCount\":73,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/#organization\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.copahost.com\/blog\/bootstrap-cdn-include\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.copahost.com\/blog\/bootstrap-cdn-include\/\",\"url\":\"https:\/\/www.copahost.com\/blog\/bootstrap-cdn-include\/\",\"name\":\"Bootstrap: How to include via CDN - Copahost\",\"isPartOf\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/#website\"},\"datePublished\":\"2020-05-03T18:31:17+00:00\",\"dateModified\":\"2020-05-31T12:54:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/bootstrap-cdn-include\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.copahost.com\/blog\/bootstrap-cdn-include\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.copahost.com\/blog\/bootstrap-cdn-include\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.copahost.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Bootstrap: How to include via CDN\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.copahost.com\/blog\/#website\",\"url\":\"https:\/\/www.copahost.com\/blog\/\",\"name\":\"Copahost\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.copahost.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.copahost.com\/blog\/#organization\",\"name\":\"Copahost\",\"url\":\"https:\/\/www.copahost.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.copahost.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2016\/03\/copahostlogo.png\",\"contentUrl\":\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2016\/03\/copahostlogo.png\",\"width\":223,\"height\":40,\"caption\":\"Copahost\"},\"image\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.copahost.com\/blog\/#\/schema\/person\/386b3f1f79299d43f4ceb33d26428246\",\"name\":\"Gustavo Gallas\",\"description\":\"Graduated in Computing at PUC-Rio, Brazil. Specialized in IT, networking, systems administration and human and organizational development\u200b. Also have brewing skills.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/gustavo-gallas-107926196\/\"],\"url\":\"https:\/\/www.copahost.com\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Bootstrap: How to include via CDN - Copahost","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.copahost.com\/blog\/bootstrap-cdn-include\/","og_locale":"en_US","og_type":"article","og_title":"Bootstrap: How to include via CDN - Copahost","og_description":"This article shows how to include Bootstrap in your site. There are basically two methods: downloading the Bootstrap files, and via CDN. As an easier and quicker way, we will show how to include it remotely, via MaxCDN. This way we don&#8217;t need to download files. Simply insert these lines inside your &lt;head&gt; section: &lt;!-- [&hellip;]","og_url":"https:\/\/www.copahost.com\/blog\/bootstrap-cdn-include\/","og_site_name":"Copahost","article_published_time":"2020-05-03T18:31:17+00:00","article_modified_time":"2020-05-31T12:54:55+00:00","author":"Gustavo Gallas","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Gustavo Gallas","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.copahost.com\/blog\/bootstrap-cdn-include\/#article","isPartOf":{"@id":"https:\/\/www.copahost.com\/blog\/bootstrap-cdn-include\/"},"author":{"name":"Gustavo Gallas","@id":"https:\/\/www.copahost.com\/blog\/#\/schema\/person\/386b3f1f79299d43f4ceb33d26428246"},"headline":"Bootstrap: How to include via CDN","datePublished":"2020-05-03T18:31:17+00:00","dateModified":"2020-05-31T12:54:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.copahost.com\/blog\/bootstrap-cdn-include\/"},"wordCount":73,"commentCount":0,"publisher":{"@id":"https:\/\/www.copahost.com\/blog\/#organization"},"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.copahost.com\/blog\/bootstrap-cdn-include\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.copahost.com\/blog\/bootstrap-cdn-include\/","url":"https:\/\/www.copahost.com\/blog\/bootstrap-cdn-include\/","name":"Bootstrap: How to include via CDN - Copahost","isPartOf":{"@id":"https:\/\/www.copahost.com\/blog\/#website"},"datePublished":"2020-05-03T18:31:17+00:00","dateModified":"2020-05-31T12:54:55+00:00","breadcrumb":{"@id":"https:\/\/www.copahost.com\/blog\/bootstrap-cdn-include\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.copahost.com\/blog\/bootstrap-cdn-include\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.copahost.com\/blog\/bootstrap-cdn-include\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.copahost.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Bootstrap: How to include via CDN"}]},{"@type":"WebSite","@id":"https:\/\/www.copahost.com\/blog\/#website","url":"https:\/\/www.copahost.com\/blog\/","name":"Copahost","description":"","publisher":{"@id":"https:\/\/www.copahost.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.copahost.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.copahost.com\/blog\/#organization","name":"Copahost","url":"https:\/\/www.copahost.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.copahost.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2016\/03\/copahostlogo.png","contentUrl":"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2016\/03\/copahostlogo.png","width":223,"height":40,"caption":"Copahost"},"image":{"@id":"https:\/\/www.copahost.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.copahost.com\/blog\/#\/schema\/person\/386b3f1f79299d43f4ceb33d26428246","name":"Gustavo Gallas","description":"Graduated in Computing at PUC-Rio, Brazil. Specialized in IT, networking, systems administration and human and organizational development\u200b. Also have brewing skills.","sameAs":["https:\/\/www.linkedin.com\/in\/gustavo-gallas-107926196\/"],"url":"https:\/\/www.copahost.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/posts\/2174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/comments?post=2174"}],"version-history":[{"count":2,"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/posts\/2174\/revisions"}],"predecessor-version":[{"id":2278,"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/posts\/2174\/revisions\/2278"}],"wp:attachment":[{"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/media?parent=2174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/categories?post=2174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/tags?post=2174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}