{"id":369,"date":"2010-08-23T09:51:12","date_gmt":"2010-08-23T13:51:12","guid":{"rendered":"http:\/\/www.searchenginegenie.com\/programming-blog\/?p=369"},"modified":"2012-12-11T02:29:58","modified_gmt":"2012-12-11T06:29:58","slug":"external-css","status":"publish","type":"post","link":"https:\/\/www.searchenginegenie.com\/programming-blog\/external-css\/","title":{"rendered":"External css"},"content":{"rendered":"<p><span style=\"text-decoration: underline;\">Steps:<\/span><\/p>\n<p><strong>1:Create new html file and copy link.html code and save it as <\/strong><strong> link.html<\/strong><strong>.<\/strong><\/p>\n<p><strong>2.Create\u00a0 new css file and copy external.css code and save it as <\/strong><strong>external.css<\/strong><strong>.<\/strong><\/p>\n<p><strong>3.link.html will connect css externally.<br \/>\n<\/strong><br \/>\n<code><\/code><br \/>\n<strong>4.Run link.html to get output.<br \/>\n<\/strong><\/p>\n<p><span style=\"text-decoration: underline;\">link.html:<\/span><\/p>\n<p>[php]<br \/>\n &lt;!DOCTYPE html PUBLIC &quot;-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN&quot; &quot;http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd&quot;&gt;<\/p>\n<p>&lt;html xmlns=&quot;http:\/\/www.w3.org\/1999\/xhtml&quot;&gt;<\/p>\n<p>&lt;head&gt;<\/p>\n<p>&lt;link rel=&quot;stylesheet&quot; type=&quot;text\/css&quot; href=&quot;external.css&quot; \/&gt;<\/p>\n<p>&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text\/html; charset=iso-8859-1&quot; \/&gt;<\/p>\n<p>&lt;title&gt;CSS&lt;\/title&gt;<\/p>\n<p>&lt;\/head&gt;<\/p>\n<p>&lt;body&gt;<br \/>\n &lt;h3 align=&quot;center&quot;&gt;External css&lt;\/h3&gt;<\/p>\n<p>&lt;p&gt;This page uses external CSS.&lt;\/p&gt;<\/p>\n<p>&lt;p&gt;p.first class code&lt;\/p&gt;<\/p>\n<p>&lt;\/body&gt;<\/p>\n<p>&lt;\/html&gt;<\/p>\n<p>[\/php]<\/p>\n<p><span style=\"text-decoration: underline;\">external.css:<\/span><\/p>\n<p>[php]<\/p>\n<p>body{ background-color:#00CCCC;}<\/p>\n<p>p { color:#FFFFFF;<\/p>\n<p>}<\/p>\n<p>h3{ color:#000000;<\/p>\n<p>text-decoration:underline;<\/p>\n<p>text-transform:uppercase;<\/p>\n<p>}<\/p>\n<p>p.first{<\/p>\n<p>color:#33FFCC;<\/p>\n<p>}<\/p>\n<p>[\/php]<\/p>\n<p><span style=\"text-decoration: underline;\">output:<\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"text-decoration: underline;\"><strong>External css<\/strong><\/span><\/p>\n<p>This page uses external CSS.<\/p>\n<p class=\"first\">p.first class code<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Steps: 1:Create new html file and copy link.html code and save it as link.html. 2.Create\u00a0 new css file and copy external.css code and save it as external.css. 3.link.html will connect css externally. 4.Run link.html to get output. link.html: [php] &lt;!DOCTYPE html PUBLIC &quot;-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN&quot; &quot;http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd&quot;&gt; &lt;html xmlns=&quot;http:\/\/www.w3.org\/1999\/xhtml&quot;&gt; &lt;head&gt; &lt;link rel=&quot;stylesheet&quot; type=&quot;text\/css&quot; href=&quot;external.css&quot; \/&gt; [&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":[142],"class_list":["post-369","post","type-post","status-publish","format-standard","hentry","category-programming","tag-css"],"_links":{"self":[{"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/posts\/369","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/comments?post=369"}],"version-history":[{"count":9,"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/posts\/369\/revisions"}],"predecessor-version":[{"id":555,"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/posts\/369\/revisions\/555"}],"wp:attachment":[{"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/media?parent=369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/categories?post=369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/tags?post=369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}