meta tags, título, keywords e descrição

1 comentários

Para colocar no "head"
<title>Título</title>
<meta name="keywords" content="palavra, palavra "/>
<meta name="description" content="Descrição"/>

as quatro pseudo-classes de links

0 comentários

São quatro as pseudo classes dos links:
1. a:link........define o estilo do link no estado inicial;
2. a:visited...define o estilo do link visitado;
3. a:hover.....define o estilo do link quando passa-se o mouse sobre ele;
4. a:active....define o estilo do link ativo (o que foi "clicado").
a:link {}
a:visited {}
a:hover {}
a:active {}

Redireccionar [script, html]

0 comentários

O "20" é o nº de segundos
<head>
<meta http-equiv="refresh" content=" 20 ; URL=http://pagina.com/">
</head>

ou
<head>
<script>
var segundos=1000;
setTimeout("window.open('http://pagina.com/','_top','');",segundos * 20 );
</script>
</head>

e a página dentro da página
<html>
<head>
<title>PLAFORMA | Consultadoria e Formação</title>
<meta name="keywords" content="plaforma, formação, consultadoria, empresa"/>
<meta name="description" content="A Plaforma é uma empresa de Consultadoria e Formação, Lda. que assenta essencialmente no profissionalismo e na qualidade."/>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
 
<frameset rows='100%, *' frameborder=no framespacing=0 border=0>
<frame src="http://plaforma.blogspot.com/" name=mainwindow frameborder=no framespacing=0 marginheight=0 marginwidth=0></frame>
</frameset>
<noframes>
<h2>Your browser does not support frames. We recommend upgrading your browser.</h2><br><br>
<center>Click <a href="http://plaforma.blogspot.com/">here</a> to enter the site.</center>
</noframes>
 
 
</html>

ligação a javascript externo (script, html)

0 comentários

<head>
<script type="text/javascript" src="nomedojs.js"></script>
</head>

iframe básico (html)

0 comentários

Iframe:
<iframe leftmargin=5 topmargin=5 marginWidth=0 marginHeight=0 src="pagina_que_vai_abrir.htm" frameBorder=1 width=100% height=100% scrolling=yes name="nome_da_frame"></iframe>
Link para Iframe:
<a href="http://www.pauloadriano.com" target="nome_da_frame">link para abrir na iframe</a>

Optional Attributes


DTD indicates in which DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.











































































Attribute Value Description DTD
align left
right
top
middle
bottom
Deprecated. Use styles instead.
Specifies the alignment of an iframe according to surrounding elements
TF
frameborder 1
0
Specifies whether or not to display a border around an
iframe
TF
height pixels
%
Specifies the height of an iframe TF
longdesc URL Specifies a page that contains a long description of the
content of an iframe
TF
marginheight pixels Specifies the top and bottom margins of an iframe TF
marginwidth pixels Specifies the left and right margins of an iframe TF
name name Specifies the name of an iframe TF
scrolling yes
no
auto
Specifies whether or not to display scrollbars in an iframe TF
src URL Specifies the URL of the document to show in an iframe TF
width pixels
%
Specifies the width of an iframe TF

marcadores ou hiperligações âncoras numa página (html)

2 comentários

Criar zona ancorada:
<a name="ancora"></a>ancora
Ligação para a âncora:
<a href="#ancora">ir_para_ancora</a>

hiperligação para voltar à página anterior (html)

2 comentários

<a href="#" onClick="history.go(-1)">Back</a>
ou
<input type=button value="Back" onClick="history.go(-1)">