{"id":354,"date":"2009-10-05T13:28:32","date_gmt":"2009-10-05T18:28:32","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=354"},"modified":"2009-10-05T14:42:03","modified_gmt":"2009-10-05T19:42:03","slug":"helpful-html","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2009\/10\/helpful-html\/","title":{"rendered":"Helpful HTML"},"content":{"rendered":"<p><strong>Meta refresh to another page or document.<\/strong><br \/>\nMeta Refresh (meta-refresh) is used to reload a page as another.  Basically, if someone navigates to http:\/\/it.thelibrarie.com they will be automatically forwarded to http:\/\/it.thelibrarie.com\/weblog.<br \/>\nIn the <head> of your page insert the following:<br \/>\n<code>&lt;meta http-equiv=\"refresh\" content=\"0;url=http:\/\/url\"&gt;<\/code><br \/>\nThe content=0 part is the amount of time before refreshing, given in seconds.  So 0 means zero seconds (instantly) and 5 would be five seconds of waiting.<\/p>\n<p><strong>Setting up a link to mail someone, even with a subject already typed out.<\/strong><br \/>\nCreate a link basically like the following:<br \/>\n<code>&lt;a href=\"mailto:email_address@domain.tld?subject=some_subject\"&gt;<\/code><\/p>\n<p><strong>Open link in new window or new tab.<\/strong><br \/>\nI&#8217;d like to think that all sites have any external loading websites load in their own window.  I don&#8217;t want to click on a link and have the original page disappear (especially my computer help site :D).  I know anyone can middle click (wheel click) on a link and it will automatically open in a new tab\/window, but sometimes people are just lazy.<br \/>\nWelcome &#8220;Target=&#8221; links:<br \/>\n<code>&lt;a href=\"http:\/\/www.google.com\" target=_blank&gt;Google&lt;\/a&gt;<\/code><br \/>\nShows up as:<br \/>\n<a href=\"http:\/\/www.google.com\" target=_blank>Google<\/a> &#8211; Go ahead and click on that bad boy to see for yourselves.<br \/>\nTarget can equal _blank, _self, or _top.  _blank is for new tab\/window, _self is for itself, and _top is for if\/when you use frames and want it to show up in a specific spot framed off.  You can also make up your own variables as long as they&#8217;re declared in the framing html code.<\/p>\n<p><strong>Writing HTML Code In Blogs.<\/strong><br \/>\nThis probably affects me more than you, but I&#8217;ll put it here anyway<br \/>\n<code>&amp;lt;<\/code><br \/>\nShows this: &lt;<br \/>\n<code>&amp;gt;<\/code><br \/>\nShows this: &gt;<br \/>\nIf you need any more of the special characters, you can always use <a href=\"http:\/\/www.onlinetools.org\/tools\/htmlizerdata\/\" target=\"_blank\">This Site<\/a>.<\/p>\n<p><strong>Playing with text.<\/strong><br \/>\nSometimes you just need an extra space or two between words.  Other times you need the text to look the exact same as what you wrote.  Welcome PRE and NBSP!<br \/>\nThis is what NORMAL text looks like<\/p>\n<pre>This is what PRE text looks like<\/pre>\n<p>This   is     what  NORMAL  text     looks   like   with several        spaces<\/p>\n<pre>   This  is      what  PRE    text  looks  like          with several  spaces<\/pre>\n<p>Notice that the text will <u>not<\/u> wrap &#8211; all formatting is ignored with the PRE text.<\/p>\n<p>This is what amp;nbsp looks like:<br \/>\n&nbsp;Test<br \/>\nTwo of them:<br \/>\n&nbsp;&nbsp;Test<br \/>\nThree:<br \/>\n&nbsp;&nbsp;&nbsp;Test<br \/>\nTen:<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Test<\/p>\n<p>Hope you find all this as interesting as I do.  I may or may not keep adding on as I find myself using the same commands over and over.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Meta refresh to another page or document. Meta Refresh (meta-refresh) is used to reload a page as another. Basically, if someone navigates to http:\/\/it.thelibrarie.com they will be automatically forwarded to http:\/\/it.thelibrarie.com\/weblog. In the of your page insert the following: &lt;meta http-equiv=&#8221;refresh&#8221; content=&#8221;0;url=http:\/\/url&#8221;&gt; The content=0 part is the amount of time before refreshing, given in seconds. &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2009\/10\/helpful-html\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Helpful HTML<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-354","post","type-post","status-publish","format-standard","hentry","category-miscellaneous"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/354","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=354"}],"version-history":[{"count":15,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/354\/revisions"}],"predecessor-version":[{"id":372,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/354\/revisions\/372"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}