HTML

HTML, an acronym for HyperText Markup Language, is the predominant markup language for web pages.

HTML Anchor

The Anchor has two important functions in HTML. First it is the main method for interlinking HTML documents and non-HTML media using the href attribute. It can also be used to jump to a location within a HTML document using the id attribute.

1
<a href="http://www.bbc.co.uk">BBC Online</a>

BBC Online

The hash # symbol can be used to jump to any element with an ID attribute. The link below will jump to to the top of the current page, which has an attribute id=”header”.

1
<a href="#header">Jump to Page Header</a>

Jump to Page Header

HTML iFrames

An iFrame is a HTML element which allows a HTML document to be embedded within another. It can be useful for including external content in your webpage without having it coded in your page.

It’s worth noting that iFrames are distinct from standard Frames which are actually a special kind of HTML page consisting of several external documents. Unlike a standard frame, an iFrame is embedded within the page, just like an image…

frameset-vs-iframes

As the page is scrolled the iFrame will move up and down along with the rest of the page content. However, the contents of the iFrame is completely independent from the surrounding page and will not in itself be effected by it. iFrames are very easy to construct….

<iframe src="page.html" width="200px" height="300px">
    This text will appear if the user’s browser doesn’t support the use of iFrames.
</iframe>
Basically all you need are the contained document (src), width and height. Of course the standard HTML attributes: id, class, title, style can be used to modify it. There are also some specific attributes to the iFrame tag:
  • scrolling – This may be set to any of three setting: “on” – scrollbars appear, “off” – scrollbars never appear, and “auto” – the default scrollbars appear as they are needed.
  • marginwidth, marginheight – This can be used to set the distance between the frame border and the frame’s contents.

Sorted.

Web Design Coleraine

rel=”nofollow”

The nofollow attribute is used to stop search engines using links to affect the ranking of pages in an index. The idea was originally developed by Google as a way to stop links being use to artificially inflating the ranking of a specific page.

1
&lt;a rel="nofollow" href="http://www.spamsite.com/"&gt;discount drugs&lt;/a&gt;

Most search engines will follow the links but exclude them from their ranking calculations (Goole, Yahoo). Others leave the link without following it or using the links (MSN). Some search engines still don’t recognise the attribute (Ask) and use the link like any other.

The most common use of nofollow is on blogs where spammers can often post comments which contain links to various websites. Nofollow should be used when a link is unknown, when the editor cannot vouch for its authenticity. This is the case when a third party leaves a comment on a website.