HTML/XHTML:Basic other stuff

From virtualMV2015wiki
Jump to: navigation, search
 Home  HTML/XHTML <

In-page hyperlink (bookmark)

In very large documents, it is common to place an index at the top of the page that jumps to a position in the page. Also within the page a -to top - jump is provided.

 
<p style="text-align: center">
<a href="#stuff">Stuff</a></p> 
...
 
<h2><a name="stuff">Stuff</a></h2>
..

So the #stuff indicates which anchor the link is to go to. If you want to go from one web page and hyperlink to am inpage link of another web page, you can add the # anchor to the URL in the hyperlink e.g. http://www.xyz.com/#inpagelink

Reserved Characters

Certain reserved characters are part of the XML syntax and will not be interpreted as themselves if used in the data portion of an element. There are some text equivalent strings to represent special characters (starting with an & and ending with a ; (eg. &amp;).The International standards organisation (ISO) has defined character extensions to the standard ASCII set using numerical values (starting with &# and ending with ; (eg. &#38; = &). You need to substitute a special character sequence (called an "entity" by XML) as follows: ^table; Some reserved and special characters

CharacterEntityISO Value
<&lt;&#60;
&&amp;&#38;
>&gt;&#38;
"&quot;&#38;
&apos;&#39;
Special Characters  
Registered ®&reg;&#38;
Copyright ©&copy;&#38;
[Left arrow] ← &#8592
Greek characters 
[Alpha] Α &#913
[Omega]Ω &#937

The &apos; is not well supported. There are many more! Ref: Phillips (2000), Appendix D[1]

Shortcut icon

In the <head> area

<head>
...
<link rel="shortcut icon" href="http://www.mysite.co.nz/favicon.ico" />
</head>

Note icon must be 16 x 16 pixels

Ref: Microsoft (2006)[2]

Icon References.png References

  1. Phillips, L-A. (2000) Using XML, Special Edition, Que, ISBN 0-7897-1996-7
  2. Microsoft (2006) How to Add a Shortcut Icon to a Web Page Retrieved March 20, 2006 from http://msdn.microsoft.com/library/default.asp?url=/workshop/Author/dhtml/howto/ShortcutIcon.asp

HTML/XHTML:Basic other stuff. (2017). In virtualMV's ( Michael Verhaart ) wiki. Retrieved December 12, 2017, from http://www.virtualmv.com/wiki/index.php?title=HTML/XHTML%3ABasic_other_stuff    (zotero)