Академический Документы
Профессиональный Документы
Культура Документы
Browser Server
WEB WEB
Servidor WEB
C:\temp\teste.html
Pág Html
Pág Html
<html>
<head>
<title>
Um titulo para o documento
</title>
</head>
<body>
Este é o meu primeiro documento em HTML
</body>
</html>
HTML – HiperText Markup Language
2. Formatar texto em HTML - teste2.html
<html>
<head></head>
<body>
<b> Este texto aparece a negrito </b>
<i> Este texto aparece em itálico </i>
<sup> Este texto aparece sobescrito </sup>
<p> Este texto aparece na linha seguinte </p>
<br> Este texto aparece na linha seguinte mas mais espaçado
</body>
</html>
HTML – HiperText Markup Language
3. Hiperligações – teste3.html
<html>
<head>
</head>
<body>
<p>
<a href=teste2.html> Este texto </a> liga a um ficheiro
</p>
<p>
<a href=http://www.clix.pt/> Este texto </a> liga a um site
</p>
<p>
<a href=teste2.html target =“_blank”> Este texto </a>
liga a um ficheiro e abre uma nova janela
</p>
</body>
</html>
HTML – HiperText Markup Language
4. Inserir imagem – teste4.html
<html>
<head>
</head>
<body>
</body>
</html>
HTML – HiperText Markup Language
5. Inserir imagens com hiperligações – teste5.html
<html>
<head>
</head>
<body>
<p> Imagem com hiperligação para um ficheiro
<a href=teste2.html>
<img border=0 src=hand1.gif width=50 Height=100 >
</a>
</p>
</body>
</html>
HTML – HiperText Markup Language
9. Criar formulários – teste9.html
<html>
<head></head>
<body>
<form>
Nome: <input type=“text” name= “nome”> <br>
Apelido: <input type=“text” name=“apelido”><br>
</form>
</body>
</html>
HTML – HiperText Markup Language
9.1 Criar formulários – teste9_1.html
<html>
<body>
<form>
Nome: <input type=text name= nome> <br>
Masculino: <input type=radio checked name=“sexo” value=“M” >
Feminino: <input type=radio name=“sexo” value=“F” >
<br> Marca de carro preferida
<select name=auto>
<option value=“v”> Volvo
<option value=“s” selected> Saab
<option value=“a”> Audi
</select> <br> <br>
</form>
</body>
</html>
HTML – HiperText Markup Language
10. Molduras Iframe– teste10_3.html
<html>
<body>
<iframe src=teste1.html height=100></iframe>
<iframe src=teste1.html height=50 ></iframe>
<iframe src=teste1.html></iframe>
</body>
</html>
HTTP – HiperText Transfer Protocol
Browser Server
WEB WEB
Servidor WEB
GETMensagens
/index.html HTTP
HTTP/1.1
Winsock1.DataSend ( Msg. HTTP)
HTTP/1.1 200 OK
<html>
Mensagens
<body>
HTTP
…=Winsock1.GetData (…)
…..Resposta
</body>
</html>
Disconnect
Winsock1.Disconnect
O IExplorer implementa o protocolo HTTP
O ClienteWEB pede ao ServidorWEB o ficheiro índex.htm
Browser Server
WEB WEB
Browser
WEB
GET /index.html HTTP/1.1 Server
WEB
1
3
2
HTTP/1.1 200 OK Index.html
Browser Server
WEB WEB
<html>
…
</html>
Disconnect
Winsock1.Disconnect
Controlo Remoto de um Motor a partir de um Browser WEB
Browser PLC
WEB SrvWEB | CltDDE
Cabo
RS232
MotorOn.html
MotorOff.html