<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-547239981044631330</id><updated>2024-10-25T08:30:46.927-03:00</updated><title type='text'>Vetortec Informática</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://vetortecinformatica.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/547239981044631330/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://vetortecinformatica.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>vetortec informatica</name><uri>http://www.blogger.com/profile/01557177860168805694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-547239981044631330.post-2804158540307478606</id><published>2014-01-11T21:10:00.001-02:00</published><updated>2014-01-11T21:10:28.163-02:00</updated><title type='text'>Tutorial Básico de HTML</title><content type='html'>&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:WordDocument&gt;   &lt;w:View&gt;Normal&lt;/w:View&gt;   &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:HyphenationZone&gt;21&lt;/w:HyphenationZone&gt;   &lt;w:PunctuationKerning/&gt;   &lt;w:ValidateAgainstSchemas/&gt;   &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:Compatibility&gt;    &lt;w:BreakWrappedTables/&gt;    &lt;w:SnapToGridInCell/&gt;    &lt;w:WrapTextWithPunct/&gt;    &lt;w:UseAsianBreakRules/&gt;    &lt;w:DontGrowAutofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:LatentStyles DefLockedState=&quot;false&quot; LatentStyleCount=&quot;156&quot;&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if !mso]&gt;&lt;img src=&quot;http://img2.blogblog.com/img/video_object.png&quot; style=&quot;background-color: #b2b2b2; &quot; class=&quot;BLOGGER-object-element tr_noresize tr_placeholder&quot; id=&quot;ieooui&quot; data-original-id=&quot;ieooui&quot; /&gt; &lt;style&gt;
st1\:*{behavior:url(#ieooui) }
&lt;/style&gt; &lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:&quot;Tabela normal&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-parent:&quot;&quot;;
 mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
 mso-para-margin:0cm;
 mso-para-margin-bottom:.0001pt;
 mso-pagination:widow-orphan;
 font-size:10.0pt;
 font-family:&quot;Times New Roman&quot;;
 mso-ansi-language:#0400;
 mso-fareast-language:#0400;
 mso-bidi-language:#0400;}
&lt;/style&gt; &lt;![endif]--&gt;  &lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #003300; font-family: TTE14A98F0t00; font-size: 17pt;&quot;&gt;HTML&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;HTML é a abreviação de &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14A98F0t00;&quot;&gt;Hyper Text Markup Language, &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;uma linguagem de&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;marcação/descrição de páginas que utiliza códigos chamados TAG’s, que ficam&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;entre &amp;lt;&amp;gt; para criá-la. EX.: &amp;lt;HTML&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #66669a; font-family: TTE14A98F0t00; font-size: 17pt;&quot;&gt;Criando um Documento HTML&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Para criar um documento HTML é necessária a utilização de um editor de&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;textos ou de HTML como o Notepad (Bloco de Notas). Vá em &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14A98F0t00;&quot;&gt;Iniciar –&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14A98F0t00;&quot;&gt;Executar... – &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;e digite: &quot;notepad&quot;. Logo após abrirá um documento do bloco&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;de notas.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #ff6600; font-family: TTE14A98F0t00; font-size: 17pt;&quot;&gt;Tags HTML&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;A primeira Tag de sua página é justamente a que indica o tipo de linguagem a&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;ser utilizada: &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14A98F0t00;&quot;&gt;&amp;lt;HTML&amp;gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Toda Tag deve ter um inicio e um fim. Exceção:&amp;lt;Br&amp;gt;. Além disso, as&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;primeiras são sempre as ultimas a serem fechadas, fazendo com que as outras&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;fiquem encadeadas dentro destas. Assim, &amp;lt;html&amp;gt; será a primeira a abrir e a&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;ultima a fechar.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;A partir daí você vai criar uma espécie de cabeçalho para sua página a partir&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;da tag &amp;lt;head&amp;gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Utilizamos as seguintes Tag’s:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;HTML&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;HEAD&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;TITLE&amp;gt; Minha Primeira Página&amp;lt;/TITLE&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META NAME=&quot;author&quot; content=&quot;WebMaster&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META NAME=&quot;descrription&quot; CONTENT=&quot;Minha Primeira Página de HTML&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META NAME=&quot;keywords&quot; content=&quot;Página HTML&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META HTTP-EQUIV=&quot;language&quot; content=&quot;pt-br&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;/HEAD&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: purple; font-family: TTE14A98F0t00; font-size: 15pt;&quot;&gt;Title&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;A TAG Title vai dizer qual título aparecera na barra de nomes no topo da&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;página; do contrario aparecerá apenas o endereço da página.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: purple; font-family: TTE14A98F0t00; font-size: 15pt;&quot;&gt;A Tag Meta&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;As tag’s Meta são utilizadas por sites de busca como o Google&lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00; font-size: 8pt;&quot;&gt;® &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;e o Cadê?&lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00; font-size: 8pt;&quot;&gt;®&lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Através delas você irá descrever alguns comentários sobre sua pagina.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;&amp;lt;META NAME=“DESCRIPTION”&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Fará uma pequena descrição sobre seu&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;site.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Ex. &amp;lt;META NAME=&quot;DESCRIPTOIN&quot; CONTENT=&quot;Site legal que estou&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;criando&quot;&amp;gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;&amp;lt;META NAME=&quot;KEYWORDS&quot;&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Com esta tag você colocará a(s) palavra(s)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;chave(s).&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Ex. &amp;lt;META NAME=&quot;keywords&quot; content=&quot;Pagina web&quot;&amp;gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;&amp;lt;META NAME=&quot;AUTHOR&quot;&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Indica qual é o author de sua pagina.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Ex. &amp;lt;META NAME=“AUTHOR” CONTENT=“WebMaster Brenex&amp;gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;&amp;lt;META HTTP-EQUIV=&quot;language&quot;&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Indica o Idioma a ser utilizado na&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;página.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Ex. &amp;lt;META HTTP-EQUIV=&quot;language&quot; content=&quot;pt-br&quot;&amp;gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;&amp;lt;META HTTP-EQUIV=&quot;Refresh&quot;&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Redireciona sua página para uma&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;página secundária, um outro Site ou para algum arquivo como uma foto.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Ex. &amp;lt;meta HTTP-EQUIV=&quot;Refresh&quot; content=&quot;2;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;URL=http://www.planetadorock.xpg.com.br/planetarock.html&quot;&amp;gt;, onde 2 é o&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;tempo em segundos que a página vai demorar até redirecionar e URL é para&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;onde o site será redirecionado.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: purple; font-family: TTE14A98F0t00; font-size: 15pt;&quot;&gt;BODY&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;A Tag BODY fará algumas configurações no corpo de sua pagina. Ela é quem&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;diz a cor do plano de fundo, a cor dos links, entre outras coisinhas.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14A98F0t00;&quot;&gt;ELEMENTOS BODY&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;BGCOLOR – &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Determina a cor do Plano de Fundo da pagina.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;LINK – &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Determina a cor do Link que aparecerá na pagina&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;ALINK – &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Determina a cor que aparecera quando o link for clicado&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;VLINK – &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Determina a cor que aparecera no link após ser clicado.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;BACKGROUND – &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Se você for por uma imagem como plano de fundo deve&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;usar este elemento de BODY no lugar de bgcolor.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;LEFTMARGIN – &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;margem esquerda da página(no MS Internet Explorer).&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;TOPMARGIN – &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;margem superior da página(no MS Internet Explorer).&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;MARGINHEIGHT – &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;margem superior(no Netscape).&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;MARGINWIDTH – &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;margem esquerda(no Netscape).&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;EX. &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14A98F0t00;&quot;&gt;&amp;lt;BODY BACKGROUND=&quot;http://www.univab.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14A98F0t00;&quot;&gt;pt/disciplinas/dchs/pagina_dchs/disciplinas/527/media/Site%2&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14A98F0t00;&quot;&gt;0Background.jpg&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: purple; font-family: TTE14A98F0t00; font-size: 15pt;&quot;&gt;Parágrafo&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Para iniciar um parágrafo utilizamos a Tag P.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;HTML&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;HEAD&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;TITLE&amp;gt; Minha Primeira Página&amp;lt;/TITLE&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META NAME=”author” content=”WebMaster”&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META NAME=”descrription” CONTENT=”Minha Primeira Página de HTML”&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META NAME=”keywords” content=”Página HTML”&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META HTTP-EQUIV=&quot;language&quot; content=&quot;pt-br&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;/HEAD&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;BODY BGCOLOR=&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 13pt;&quot;&gt;”&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;GRAY” LINK=&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 13pt;&quot;&gt;”&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;RED” ALINK=&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 13pt;&quot;&gt;”&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;YELLOW”&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;VLINK=&lt;/span&gt;&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 13pt;&quot;&gt;”&lt;/span&gt;&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;DARKGREEN”&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: purple; font-family: TTE14A98F0t00; font-size: 15pt;&quot;&gt;Entendendo P&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #5f5f5f; font-family: TTE14A98F0t00;&quot;&gt;ALIGN – &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Alinha o texto de acordo com o que você colocar:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #3b7149; font-family: TTE14A98F0t00;&quot;&gt;Left &lt;/span&gt;&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;– &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Esquerdo;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #3b7149; font-family: TTE14A98F0t00;&quot;&gt;Justify &lt;/span&gt;&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;– &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Justificado;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #3b7149; font-family: TTE14A98F0t00;&quot;&gt;Center &lt;/span&gt;&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;– &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Centralizado;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #3b7149; font-family: TTE14A98F0t00;&quot;&gt;Right &lt;/span&gt;&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;– &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Direito.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: purple; font-family: TTE14A98F0t00; font-size: 15pt;&quot;&gt;A Tag FONT&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #9a33ff; font-family: TTE14A98F0t00;&quot;&gt;Face – &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Indica o tipo de fonte que você vai usar. &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Ex. &amp;lt;font face=&quot;Times New&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Roman&quot;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #9a33ff; font-family: TTE14A98F0t00;&quot;&gt;Color – &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Indica qual a cor você vai por em seu texto. Ex. &amp;lt;font color=Navy&amp;gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Navy é a mesma coisa que azul-marinho;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #9a33ff; font-family: TTE14A98F0t00;&quot;&gt;Size &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14A98F0t00;&quot;&gt;– &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Indica o tamanho do texto. Varia de 1 a 7 o tamanho.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: purple; font-family: TTE14A98F0t00; font-size: 15pt;&quot;&gt;ESTILOS DE TEXTO&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Como em editores de texto, o HTML também permite alterar o estilo do texto.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;&amp;lt;B&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;- Aplica o estilo negrito. Ex. &amp;lt;b&amp;gt;texto em negrito&amp;lt;/b&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;&amp;lt;I&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;- Aplica o estilo itálico. Ex. &amp;lt;i&amp;gt;texto em it&amp;amp;aacute;lico&amp;lt;/i&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;HTML&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;HEAD&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;TITLE&amp;gt; Minha Primeira Página&amp;lt;/TITLE&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META NAME=&quot;author&quot; content=&quot;WebMaster&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META NAME=&quot;description&quot; CONTENT=&quot;Minha Primeira Página de HTML&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META NAME=&quot;keywords&quot; content=&quot;Página HTML&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META HTTP-EQUIV=&quot;language&quot; content=&quot;pt-br&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;/HEAD&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;BODY BGCOLOR=&quot;gray&quot; LINK=&quot;RED&quot; ALINK=&quot;YELLOW&quot; VLINK=&quot;DARKGREEN&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;p align=center&amp;gt;&amp;lt;font face=&quot;Arial&quot; color=&quot;navy&quot; size=&quot;2&quot;&amp;gt;Este é o meu primeiro&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;par&amp;amp;aacute;grafo em HTML&amp;lt;/font&amp;gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;&amp;lt;U&amp;gt;- &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Aplica o estilo sublinhado (nem todos os browser o reconhecem).&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Ex. &amp;lt;u&amp;gt;texto sumblinhado&amp;lt;/u&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;&amp;lt;SUP&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;- Faz com que o texto fique sobrescrito. Ex. &amp;lt;sup&amp;gt;Texto&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;sobrescrito&amp;lt;/sup&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;&amp;lt;SUB&amp;gt;- &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Faz com que o texto fique subscrito. Ex. &amp;lt;sub&amp;gt;texto&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;subscrito&amp;lt;/sub&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;&amp;lt;BIG&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;- Aumenta a fonte e atribui negrito. Ex. &amp;lt;big&amp;gt;Texto GRANDE&amp;lt;/BIG&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;&amp;lt;SMALL&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;- Reduz e altera a fonte. Ex. &amp;lt;small&amp;gt;TEXTO pequeno&amp;lt;/small&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;&amp;lt;TT&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;- Aplica um espaçamento regular ao texto. Ex. &amp;lt;tt&amp;gt;Texto com&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;espaçamento regular&amp;lt;/tt&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: purple; font-family: TTE14A98F0t00; font-size: 15pt;&quot;&gt;TITULOS E SUBTITULOS&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Estas Tag’s são utilizadas para dar ao leitor uma visão geral sobre o que se&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;trata o texto em questão.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Estas tags apresentam seis níveis de títulos que são numerado de 1 a 6 por&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;ordem de importância. (1 - Titulo principal, - 2 titulo secundário, 3 –&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;subtítulo...)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Ex. &amp;lt;h1&amp;gt;Este é o meu titulo principal&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;&amp;lt;h2&amp;gt;Este é meu titulo secundário&amp;lt;/h2&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;&amp;lt;h3&amp;gt;Este é o meu subtítulo&amp;lt;/h3&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: purple; font-family: TTE14A98F0t00; font-size: 15pt;&quot;&gt;Quebras de Linha&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;São utilizadas para escreverem textos em linhas diferentes, mas em um&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;mesmo parágrafo, como num poema, versos em linha diferentes, mas numa&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;mesma estrofe.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;EX. &amp;lt;p align=center&amp;gt;&amp;lt;font face=&quot;Tahoma&quot; size=&quot;2&quot;&amp;gt;Este é meu texto em&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;cima&amp;lt;br&amp;gt;Este é meu texto embaixo&amp;lt;/font&amp;gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: purple; font-family: TTE14A98F0t00; font-size: 15pt;&quot;&gt;A TAG DIV&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Ela permite o alinhamento horizontal de qualquer elemento em uma página.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Esta TAG é muito utilizada em DHTML pela propriedade de agrupar elementos&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;de página.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Ex. &amp;lt;div align=&quot;center&quot;&amp;gt;Este texto est&amp;amp;aacute; alinhado no centro.&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: purple; font-family: TTE14A98F0t00; font-size: 15pt;&quot;&gt;A TAG HR&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Insere uma linha horizontal no Browser.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;EX.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;&amp;lt;HR WIDTH=&quot;n%&quot; ALIGN=&quot;posição&quot; SIZE=&quot;n&quot; NOSHADE&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;COLOR=&quot;#RRGGBB&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Onde:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;ALIGN&lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;=&quot;posição&quot;: pode ser left, center e rigth;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;WIDTH&lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;=&quot;n%&quot;: define a largura da linha, pode ser definida em pixels ou em&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;percentagem do tamanho horizontal da tela;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;SIZE&lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;=&quot;n&quot;: define a espessura da barra, em pixels;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;NOSHADE: &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;define que a barra não deve ser com efeito 3D;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;COLOR&lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;=&quot;#RRGGBB&quot;: define a cor da barra. (MS Internet Explorer).&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: purple; font-family: TTE14A98F0t00; font-size: 15pt;&quot;&gt;Criando Links&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Existem dois tipos de links:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;1º - Para páginas Externas&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;2º - Para paginas Internas, chamados de &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14A98F0t00;&quot;&gt;âncoras&lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14A98F0t00;&quot;&gt;Criando um Link Externo:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;&amp;lt;a href=protocolo://endereçodapagina/arquivo.extensão&amp;gt;Texto mostrando o&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Link(ex. “Clique aqui”)&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Ex. &amp;lt;a href=&quot;http://www.planetadorock.xpg.com.br/index.html&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Clique Aqui&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: purple; font-family: TTE14A98F0t00; font-size: 15pt;&quot;&gt;Criando âncoras&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Antes de criar um link interno, temos que criar uma ancora, desse jeito;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;&amp;lt;A NAME=&quot;seção1&quot;&amp;gt;Este &amp;amp;eacute; o texto da se&amp;amp;ccedil;&amp;amp;atilde;o&amp;lt;/A&amp;gt;, em&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;que “seção1” é o nome da seção e &quot;Este &amp;amp;eacute; o texto da&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;se&amp;amp;ccedil;&amp;amp;atilde;o&quot; é em que texto foi feito a seção.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: green; font-family: TTE14A98F0t00; font-size: 15pt;&quot;&gt;Colocando Links nas Âncoras&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Agora que a ancora foi feita, falta linká-la, desse jeito:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;&amp;lt;a href=&quot;#seção1&quot;&amp;gt;Se&amp;amp;ccedil;&amp;amp;atilde;o 1&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;HTML&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;HEAD&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;TITLE&amp;gt; Minha Primeira Página&amp;lt;/TITLE&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META NAME=&quot;author&quot; content=&quot;WebMaster&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META NAME=&quot;description&quot; CONTENT=&quot;Minha Primeira Página de HTML&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META NAME=&quot;keywords&quot; content=&quot;Página HTML&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META HTTP-EQUIV=&quot;language&quot; content=&quot;pt-br&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;/HEAD&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;BODY BGCOLOR=&quot;gray&quot; LINK=&quot;RED&quot; ALINK=&quot;YELLOW&quot; VLINK=&quot;DARKGREEN&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;h1&amp;gt;&amp;lt;font face=Tahoma color=green&amp;gt;Este é o meu primeiro t&amp;amp;iacute;tulo&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;/font&amp;gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;p align=center&amp;gt;&amp;lt;font face=&quot;Arial&quot; color=&quot;navy&quot; size=&quot;2&quot;&amp;gt;Este é o meu primeiro&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;par&amp;amp;aacute;grafo em HTML&amp;lt;/font&amp;gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;p align=&quot;justify&quot;&amp;gt;&amp;lt;font face=Verdana size=2 color=orange&amp;gt;Este &amp;amp;eacute; o meu&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;segundo par&amp;amp;aacute;grafo&amp;lt;Br&amp;gt;E esta &amp;amp;eacute; minha primeira quebra de&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;linha.&amp;lt;/font&amp;gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;a href=&quot;http://www.google.com&quot;&amp;gt;&amp;lt;font face=&quot;Tahoma&quot; size=2&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;Google&amp;lt;/font&amp;gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: purple; font-family: TTE14A98F0t00; font-size: 15pt;&quot;&gt;Inserindo Imagens&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Para inserir imagens numa WebPage vamos utilizar a Tag &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14A98F0t00;&quot;&gt;IMG.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Ex. &amp;lt;img src=&quot;http://www.univab.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;pt/disciplinas/dchs/pagina_dchs/disciplinas/527/media/Site%20Background&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;.jpg&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: green; font-family: TTE14A98F0t00; font-size: 14pt;&quot;&gt;Configurando a Imagem&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Após inserirmos a imagem temos de configurá-la. Não é necessário, mas você&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;pode utilizar para deixar a sua imagem ao seu gosto.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Utilizamos as seguintes Tag’s a partir de &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14A98F0t00;&quot;&gt;IMG SRC:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;HTML&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;HEAD&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;TITLE&amp;gt; Minha Primeira Página&amp;lt;/TITLE&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META NAME=&quot;author&quot; content=&quot;WebMaster&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META NAME=&quot;description&quot; CONTENT=&quot;Minha Primeira Página de HTML&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META NAME=&quot;keywords&quot; content=&quot;Página HTML&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META HTTP-EQUIV=&quot;language&quot; content=&quot;pt-br&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;/HEAD&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;BODY BGCOLOR=&quot;gray&quot; LINK=&quot;RED&quot; ALINK=&quot;YELLOW&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;VLINK=&quot;DARKGREEN&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;h1&amp;gt;&amp;lt;font face=Tahoma color=green&amp;gt;Este é o meu primeiro t&amp;amp;iacute;tulo&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;/font&amp;gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;a name=&quot;1&quot;&amp;gt;&amp;lt;p align=center&amp;gt;&amp;lt;font face=&quot;Arial&quot; color=&quot;navy&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;size=&quot;2&quot;&amp;gt;Este é o meu primeiro par&amp;amp;aacute;grafo em&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;HTML&amp;lt;/font&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;p align=&quot;justify&quot;&amp;gt;&amp;lt;font face=Verdana size=2 color=orange&amp;gt;Este &amp;amp;eacute;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;o meu segundo par&amp;amp;aacute;grafo&amp;lt;Br&amp;gt;E esta &amp;amp;eacute; minha primeira&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;quebra de linha.&amp;lt;/font&amp;gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;a href=&quot;http://www.google.com&quot;&amp;gt;&amp;lt;font face=&quot;Tahoma&quot; size=2&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;Google&amp;lt;/font&amp;gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;a href=&quot;#1&quot;&amp;gt;Voltar para o primeiro par&amp;amp;aacute;grafo&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;Width &lt;/span&gt;&lt;span style=&quot;color: grey; font-family: TTE14A98F0t00;&quot;&gt;– &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;A partir dela informamos a largura da imagem. Se não for&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;configurada a imagem será inserida no seu tamanho original.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;Height &lt;/span&gt;&lt;span style=&quot;color: grey; font-family: TTE14A98F0t00;&quot;&gt;– &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Com ela, informamos a altura. Quando não é informada mantém&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;também sua altura original.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;Border &lt;/span&gt;&lt;span style=&quot;color: grey; font-family: TTE14A98F0t00;&quot;&gt;– &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Cria e configura o tamanho da borda da figura.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;Align &lt;/span&gt;&lt;span style=&quot;color: grey; font-family: TTE14A98F0t00;&quot;&gt;– &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Alinha a imagem em relação ao texto. Temos três tipos de&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;alinhamento.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #3b7149; font-family: TTE14A98F0t00;&quot;&gt;Top – &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Alinha o texto paralelamente ao topo da Imagem.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #3b7149; font-family: TTE14A98F0t00;&quot;&gt;Middle – &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Alinha o texto no centro da Imagem.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #3b7149; font-family: TTE14A98F0t00;&quot;&gt;Bottom – &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Alinha o texto paralelamente à base da imagem.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #3b7149; font-family: TTE14A98F0t00;&quot;&gt;Alt &lt;/span&gt;&lt;span style=&quot;color: grey; font-family: TTE14A98F0t00;&quot;&gt;– &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;É uma tag em que você insere um texto alternativo, para que se no caso&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;o browser não abrir a imagem o texto aparecerá no lugar.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14A98F0t00;&quot;&gt;Exemplo:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;&amp;lt;img src=&quot;http://www.univab.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;pt/disciplinas/dchs/pagina_dchs/disciplinas/527/media/Site%20Background&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;.jpg&quot; width=120 height=160 align=&quot;top&quot; border=&quot;3&quot; alt=&quot;imagem principal&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;HTML&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;HEAD&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;TITLE&amp;gt; Minha Primeira Página&amp;lt;/TITLE&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META NAME=&quot;author&quot; content=&quot;WebMaster&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META NAME=&quot;description&quot; CONTENT=&quot;Minha Primeira Página de HTML&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META NAME=&quot;keywords&quot; content=&quot;Página HTML&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META HTTP-EQUIV=&quot;language&quot; content=&quot;pt-br&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;/HEAD&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;BODY BGCOLOR=&quot;gray&quot; LINK=&quot;RED&quot; ALINK=&quot;YELLOW&quot; VLINK=&quot;DARKGREEN&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;h1&amp;gt;&amp;lt;font face=Tahoma color=green&amp;gt;Este é o meu primeiro t&amp;amp;iacute;tulo&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;/font&amp;gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;a name=&quot;1&quot;&amp;gt;&amp;lt;p align=center&amp;gt;&amp;lt;font face=&quot;Arial&quot; color=&quot;navy&quot; size=&quot;2&quot;&amp;gt;Este é o&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;meu primeiro par&amp;amp;aacute;grafo em HTML&amp;lt;/font&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: green; font-family: TTE14A98F0t00; font-size: 14pt;&quot;&gt;Inserindo Imagens aos Links&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Para inserir uma imagem num link basta colocar no lugar do texto do link a&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;tag que insere imagem.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Ex. &amp;lt;a href=&quot;teste.html&amp;gt;&amp;lt;img src=&quot;http://www.univab.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;pt/disciplinas/dchs/pagina_dchs/disciplinas/527/media/Site%20Background&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;.jpg&quot; width=120 height=160 align=&quot;middle&quot; border=&quot;3&quot; alt=&quot;fundo&quot;&amp;gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #003300; font-family: TTE14A98F0t00; font-size: 17pt;&quot;&gt;SOM&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Para inserir sons na sua pagina vamos utilizar as seguintes Tag’s:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;EMBED SRC &lt;/span&gt;&lt;span style=&quot;color: #9a3300; font-family: TTE14A98F0t00; font-size: 14pt;&quot;&gt;– &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Para colocar as músicas para reproduzir em uma espécie de&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;mini-media player na pagina.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Ex.&amp;lt;embed src=&quot;audio.mp3&quot; loop=&quot;1&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;BGSOUND SRC &lt;/span&gt;&lt;span style=&quot;color: #9a3300; font-family: TTE14A98F0t00; font-size: 14pt;&quot;&gt;– &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Para colocar músicas em plano de fundo, para que apenas&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;toque sem que ninguém consiga ver, apenas ouvi-la.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Ex.&amp;lt;bgsound src=&quot;audio.mp3 loop=&quot;1&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;LOOP &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: TTE14A98F0t00; font-size: 14pt;&quot;&gt;– &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Utilizamos o loop para colocarmos quantas vezes queremos que a&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;música toque. Com loop=1, a musica tocara apenas duas vezes, loop=2, suas&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;vezes... Para colocarmos para que se repita inúmeras vezes, colocamos&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;loop=infinite.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;p align=&quot;justify&quot;&amp;gt;&amp;lt;font face=Verdana size=2 color=orange&amp;gt;Este &amp;amp;eacute; o meu&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;segundo par&amp;amp;aacute;grafo&amp;lt;Br&amp;gt;E esta &amp;amp;eacute; minha primeira quebra de&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;linha.&amp;lt;/font&amp;gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;img src=&quot;http://www.univab.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;pt/disciplinas/dchs/pagina_dchs/disciplinas/527/media/Site%20Background.jpg&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;width=120 height=160 align=&quot;middle&quot; border=&quot;3&quot; alt=&quot;fundo&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;a href=&quot;http://www.google.com&quot;&amp;gt;&amp;lt;font face=&quot;Tahoma&quot; size=2&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;Google&amp;lt;/font&amp;gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;a href=&quot;#1&quot;&amp;gt;Voltar para o primeiro par&amp;amp;aacute;grafo&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #ff6600; font-family: TTE14A98F0t00; font-size: 17pt;&quot;&gt;TABELAS&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;As Tabelas servem para deixar mais organizados os dados disponíveis em sua&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;pagina.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: purple; font-family: TTE14A98F0t00; font-size: 15pt;&quot;&gt;Criando tabelas&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Para criar tabelas simples, vamos fazer da seguinte maneira:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;As tag’s &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14A98F0t00;&quot;&gt;Table &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;e &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14A98F0t00;&quot;&gt;/Table &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;servem para indicar inicio e fim de tabela.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;TR &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;define cada linha de cada tabela.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;TH &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Define o cabeçalho da Tabela. É uma célula da tabela.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;TD &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Define os dados da Tabela.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: green; font-family: TTE14A98F0t00; font-size: 14pt;&quot;&gt;Melhorando a Tabela&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Agora vamos melhorar a aparência da tabela inserindo Tag’s&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;BORDER&lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;: espessura da borda em pixels.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;BOREDERCOLOR&lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;: especifica a cor da borda da tabela&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;WIDTH&lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;: especifica a largura da tabela em relação ao browser, em pixels ou&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;%;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;HEIGHT&lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;: especifica a altura da tabela em relação ao browser, em pixels ou&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;%;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;CELLSPACING&lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;: especifica o espaço entre uma célula e outra, em pixels;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #66669a; font-family: TTE14A98F0t00;&quot;&gt;CELLADDING&lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;: especifica o espaço entre os dados e a borda da tabela, em&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;pixels;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #66669a; font-family: TTE14A98F0t00;&quot;&gt;BGCOLOR&lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;: cor de fundo das células da tabela.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;TABLE&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;TR&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;TH&amp;gt;Cabeçalho da Tabela&amp;lt;/TH&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;TD&amp;gt;Dados da Tabela&amp;lt;/TD&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;/TR&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;/TABLE&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: green; font-family: TTE14A98F0t00; font-size: 14pt;&quot;&gt;Atributos Individuais&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Vamos agora configurar individualmente cada célula.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;ALIGN&lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;: alinha do conteúdo da célula ou das células da linha. Valores: &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14A98F0t00;&quot;&gt;right,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14A98F0t00;&quot;&gt;left, center.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;BGCOLOR&lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;: define a cor de fundo das células da linha ou de uma célula&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;individual;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;VALIGN&lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;: alinhamento vertical de uma célula ou de células de uma linha;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Pode ser &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14A98F0t00;&quot;&gt;top, middle ou bottom&lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;WIDTH&lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;: largura de uma célula em pixels ou %;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;NOWRAP&lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;: indica ao browser que o texto da célula não pode ser dividido em&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;mais de uma linha. A coluna inteira terá o tamanho do texto escrito naquela&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;célula;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: green; font-family: TTE14A98F0t00; font-size: 14pt;&quot;&gt;Células Mescladas&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Para mesclar as células vamos atribuir à Tag TD os seguintes atributos:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #3b7149; font-family: TTE14A98F0t00;&quot;&gt;COLSPAN: &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Será o numero de colunas que a célula ocupara.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #3b7149; font-family: TTE14A98F0t00;&quot;&gt;ROWSPAN: &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Será o &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00; font-size: 14pt;&quot;&gt;numero de linhas que a célula ocupara.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;table border=&quot;2&quot; bordercolor=&quot;#003300&quot; bgcolor=&quot;green&quot; width=&quot;60%&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;height=&quot;40%&quot; cellspacing=&quot;3&quot; celladding=&quot;3&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;table border=&quot;2&quot; bordercolor=&quot;#003300&quot; bgcolor=&quot;green&quot; width=&quot;60%&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;height=&quot;40%&quot; cellspacing=&quot;3&quot; celladding=&quot;3&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Times-Roman; font-size: 11.5pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;tr align=&quot;left&quot; valign=&quot;top&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;Table Border=&quot;2&quot; width=&quot;50%&quot; cellpadintg=&quot;3&quot; celladding=&quot;3&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;TR bgcolor=&quot;#FFFACD&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;TD colspan=&quot;2&quot;&amp;gt;Célula 1&amp;lt;/TD&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;/TR&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;/TABLE&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;HTML&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;HEAD&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;TITLE&amp;gt; Minha Primeira Página&amp;lt;/TITLE&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META NAME=&quot;author&quot; content=&quot;WebMaster&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META NAME=&quot;description&quot; CONTENT=&quot;Minha Primeira Página de HTML&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META NAME=&quot;keywords&quot; content=&quot;Página HTML&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;META HTTP-EQUIV=&quot;language&quot; content=&quot;pt-br&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;/HEAD&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;BODY BGCOLOR=&quot;gray&quot; LINK=&quot;RED&quot; ALINK=&quot;YELLOW&quot; VLINK=&quot;DARKGREEN&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;h1&amp;gt;&amp;lt;font face=Tahoma color=green&amp;gt;Este é o meu primeiro t&amp;amp;iacute;tulo&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;/font&amp;gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;a name=&quot;1&quot;&amp;gt;&amp;lt;p align=center&amp;gt;&amp;lt;font face=&quot;Arial&quot; color=&quot;navy&quot; size=&quot;2&quot;&amp;gt;Este é o&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;meu primeiro par&amp;amp;aacute;grafo em HTML&amp;lt;/font&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;p align=&quot;justify&quot;&amp;gt;&amp;lt;font face=Verdana size=2 color=orange&amp;gt;Este &amp;amp;eacute; o meu&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;segundo par&amp;amp;aacute;grafo&amp;lt;Br&amp;gt;E esta &amp;amp;eacute; minha primeira quebra de&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;linha.&amp;lt;/font&amp;gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;img src=&quot;http://www.univab.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;pt/disciplinas/dchs/pagina_dchs/disciplinas/527/media/Site%20Background.jpg&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;width=120 height=160 align=&quot;middle&quot; border=&quot;3&quot; alt=&quot;fundo&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;a href=&quot;http://www.google.com&quot;&amp;gt;&amp;lt;font face=&quot;Tahoma&quot; size=2&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;Google&amp;lt;/font&amp;gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;a href=&quot;#1&quot;&amp;gt;Voltar para o primeiro par&amp;amp;aacute;grafo&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;embed src=http://planetadorock.bravehost.com/Chp Suey!.mp3 loop=&quot;1&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;/embed&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;table border=&quot;2&quot; bordercolor=&quot;#003300&quot; bgcolor=&quot;green&quot; width=&quot;60%&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;height=&quot;40%&quot; cellspacing=&quot;3&quot; celladding=&quot;3&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;TR align=&quot;left&quot; valign=&quot;top&quot; bgcolor=&quot;#&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Helvetica; font-size: 9.5pt;&quot;&gt;FFFACD&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;TH&amp;gt;Cabeçalho&amp;lt;/TH&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;TD colspan=&quot;2&quot;&amp;gt;Minha primeira tabela&amp;lt;/TD&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;/TR&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;/TABLE&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #ff6600; font-family: TTE14A98F0t00; font-size: 17pt;&quot;&gt;Frames&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Frames são divisões de uma pagina em  HTML. Ela é composta de uma pagina&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;principal e diversas outras divisões, compostas por outras paginas. Na pagina&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;principal você insere as outras paginas em colunas ou linhas, sendo que você&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;identifica o tamanho que cada uma deve ter.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;É necessária cautela ao pôr frames, pois se você não souber como organizá-las,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;sua pagina perdera todo o sentido. No entanto, elas podem ser muito&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;úteis para criação de menus em sua pagina.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Para criar as frames vamos usar duas Tag’s:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #6e6e64; font-family: TTE14A98F0t00;&quot;&gt;FRAMESET: &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Indica como vai ser sua Frame, se vai ser Horizontal ou vertical.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #3b7149; font-family: TTE14A98F0t00;&quot;&gt;ROWS: &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Com este tipo, a frame ficará na horizontal.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #3b7149; font-family: TTE14A98F0t00;&quot;&gt;COLS: &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;As Frames ficarão verticalmente.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Quando você for configurar frame terá que dar valores de tamanhos para elas,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;preferencialmente em % para ficar mais fácil de configurar.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Note que colocamos uma parte que vem ser o menu com 16% da pagina, os&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;outros 84% foram embutidos no asterisco, após a virgula.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Agora vamos ver o atributo &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14A98F0t00;&quot;&gt;SRC &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;da tag FRAME.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;No quadro acima você pode ver que inserimos dois arquivos: “menu.html” e&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;“texto.html” e damos nomes à elas. Os nomes são muito importantes para que&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;quando for abrir um link na outra frame coloque o atributo target e o nome da&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;frame. Exemplo: &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #33339a; font-family: TTE14A98F0t00;&quot;&gt;&amp;lt;a href=&quot;Downloads.html&quot; target=&quot;home&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;Os atributos &lt;/span&gt;&lt;span style=&quot;color: #3b7149; font-family: TTE14A98F0t00;&quot;&gt;Noresize &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;e &lt;/span&gt;&lt;span style=&quot;color: #3b7149; font-family: TTE14A98F0t00;&quot;&gt;Scrollolling, &lt;/span&gt;&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;servem respectivamente para não&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;deixar modificar o tamanho da frame e nem que apareça a barra de rolagem&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: #33339a; font-family: TTE14AF348t00;&quot;&gt;nela.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;frameset cols=&quot;16%,*&quot; border=&quot;0&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;frame src=&quot;menu.html&quot; name=&quot;frame&quot; noresize scrolling=&quot;no&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;frame src=&quot;texto.html&quot; name=&quot;home&quot; noresize&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: black; font-family: TTE14AF348t00; font-size: 11.5pt;&quot;&gt;&amp;lt;/frameset&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vetortecinformatica.blogspot.com/feeds/2804158540307478606/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://vetortecinformatica.blogspot.com/2014/01/tutorial-basico-de-html.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/547239981044631330/posts/default/2804158540307478606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/547239981044631330/posts/default/2804158540307478606'/><link rel='alternate' type='text/html' href='http://vetortecinformatica.blogspot.com/2014/01/tutorial-basico-de-html.html' title='Tutorial Básico de HTML'/><author><name>vetortec informatica</name><uri>http://www.blogger.com/profile/01557177860168805694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-547239981044631330.post-3327118186086615213</id><published>2011-03-08T20:57:00.000-03:00</published><updated>2011-03-08T20:57:40.041-03:00</updated><title type='text'>criando um -commerce</title><content type='html'>&lt;!--[if !mso]&gt; &lt;style&gt;
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
&lt;/style&gt; &lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:WordDocument&gt;   &lt;w:View&gt;Normal&lt;/w:View&gt;   &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:HyphenationZone&gt;21&lt;/w:HyphenationZone&gt;   &lt;w:PunctuationKerning/&gt;   &lt;w:ValidateAgainstSchemas/&gt;   &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:Compatibility&gt;    &lt;w:BreakWrappedTables/&gt;    &lt;w:SnapToGridInCell/&gt;    &lt;w:WrapTextWithPunct/&gt;    &lt;w:UseAsianBreakRules/&gt;    &lt;w:DontGrowAutofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:LatentStyles DefLockedState=&quot;false&quot; LatentStyleCount=&quot;156&quot;&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:&quot;Tabela normal&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-parent:&quot;&quot;;
 mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
 mso-para-margin:0cm;
 mso-para-margin-bottom:.0001pt;
 mso-pagination:widow-orphan;
 font-size:10.0pt;
 font-family:&quot;Times New Roman&quot;;
 mso-ansi-language:#0400;
 mso-fareast-language:#0400;
 mso-bidi-language:#0400;}
&lt;/style&gt; &lt;![endif]--&gt;  &lt;br /&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;Olá, bom dia/tarde/noite a todos!&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;Estou criando este post baseada em um e-mail que recebi recentemente com a seguinte dúvida: “como fazer um e-commerce?”.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;h3 style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-family: Arial; font-size: 12pt;&quot;&gt;Como funciona a criacao de sites, banners, etc?&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;Hoje em dia é muito fácil ter uma página própria, sem muitas dificuldades. Existem vários sites que auxiliam você nessa tarefa gratuitamente. Alguns exemplos são &lt;a href=&quot;http://www.webnode.com.br/&quot; target=&quot;_blank&quot;&gt;Webnode&lt;/a&gt; e &lt;a href=&quot;http://www.ucoz.com/?uz=24882&quot; target=&quot;_blank&quot;&gt;uCoz&lt;/a&gt;, onde você faz um site sem a necessidade de conhecimentos de &lt;a href=&quot;http://maujor.com/w3ctuto/firstcss.html&quot; target=&quot;_blank&quot;&gt;HTML ou CSS&lt;/a&gt;. Porém essas são opções para sites simples e informais, sem muitas funcionalidades e com layout (aparência) comum (muitas vezes deixando muito a desejar).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;Para a criação de um site mais robusto (como sites de empresas, bandas, com aparência e funcionalidade personalizados) é recomendado contratar alguma empresa especializada para que o resultado final seja satisfatório (afinal, o site é a cara da empresa na Internet). Não adianta simplesmente fazer um site de qualquer maneira e colocar lá várias informações. O usuário de hoje em dia é mais exigente, querendo sempre algo bonito, acessível e interativo.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;Para os banners é a mesma história. Existem &lt;a href=&quot;http://mybannermaker.com/&quot; target=&quot;_blank&quot;&gt;sites que criam banners&lt;/a&gt; com o texto que você quer, mas suas aparências são geralmente amadoras, o que traz descredibilização para empresas que os usam. A melhor opção sempre é contratar alguém que entenda de design.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;color: white; font-family: Arial;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;h3 style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-family: Arial; font-size: 12pt;&quot;&gt;Como e a criação de e-commerce (comercio eletronico)?&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;Ao se criar um e-commerce você tem que levar em consideração que estamos falando de negócios, independente do que você vá vender. Aí a atenção já deve mudar, pois não é um simples site onde as pessoas vão visitar e ler um pouco sobre um determinado assunto. O e-commerce é um site onde as pessoas irão fazer transações comerciais, trocando dinheiro por algum produto ou serviço.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;Porque estou falando tudo isso? Porque, diferente do que eu falei acima sobre sites, para se criar e-commerces você não pode simplesmente usar qualquer construtor de site, mesmo que seja um construtor próprio para e-commerce, pois sempre existe o risco de algum construtor automático ser uma fraude e “roubar” números de cartões e senhas. Por essas e outras que o e-commerce é um caso que merece maior atenção.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;Algumas empresas preferem que seus e-commerces sejam criados do zero, ou seja, todas as funcionalidades e sistemas criados desde o início (o que leva muitos meses para ficar pronto). Ora, antigamente era isso mesmo que acontecia, pois não havia opções no mercado. Mas hoje é diferente…&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;Atualmente várias empresas especializadas em criação de sites ou hospedagem oferecem o sistema-base gratuitamente. O que precisamos fazer é apenas instalar e personalizar de acordo com as necessidades, o que leva no máximo um dia se não for feita nenhuma personalização. É o mesmo que comprar a massa da pizza já pronta no mercado e montar o restante em casa de acordo com seu gosto. Quase ninguém hoje em dia fica fazendo a massa da pizza do zero, não é mesmo?&lt;span style=&quot;color: white;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://www.unificacaocomercial.com/blog_novo_surgimento/sem-categoria/loja-combo-loja-exemplo-modulos&quot; target=&quot;_blank&quot;&gt;&lt;br /&gt;
&lt;/a&gt;&lt;span style=&quot;color: white;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;O que nós (Surgimento e outros webdesigners) fazemos é instalar o sistema já pronto e personalizar a loja com layout e módulos que o sistema-base não tem, otimizando a experiência do usuário que for comprar, e acreditem: isso faz toda a diferença! Você não serviria apenas a massa da pizza para seus convidados, não é? Por isso que eu digo que é importante fazer uma personalização. O e-commerce tem que ter a cara de sua empresa (assim como qualquer site empresarial).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;Atualmente o sistema-base de e-commerce que usamos é o da &lt;a href=&quot;http://www.locaweb.com.br/&quot; target=&quot;_blank&quot;&gt;Locaweb&lt;/a&gt;. Trata-se da &lt;strong&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;Loja Exemplo&lt;/span&gt;&lt;/strong&gt;.Veja aqui como é a massa da pizza, ou melhor, a aparência da loja sem personalizar:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;a href=&quot;http://www.lojapronta.net/home.asp&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: white;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;Não muito atraente, concorda? Isso sem falar que as funcionalidades que ela tem são as básicas de um e-commerce bem simples, sem muitas opções.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;Por isso resolvemos incrementar essa pizza. Colocamos nela todos os &lt;a href=&quot;http://www.unificacaocomercial.com/blog_novo_surgimento/category/blog/tutoriais/loja-virtual-tutorial/&quot; target=&quot;_blank&quot;&gt;módulos grátis&lt;/a&gt; que você viu neste blog, e muitos outros que você não encontra nos tutoriais daqui. A loja ficou realmente muito interessante e bonita! Veja abaixo o sistema em funcionamento:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;color: white; font-family: Arial;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;color: white; font-family: Arial;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;Nem parece que se trata do mesmo sistema-base (Loja Exemplo), não é? Para fazer essa personalização de layout e módulos diferentes é necessário alguém que entenda de design e programação. Qualquer tentativa sem conhecimento pode causar danos à base de dados, fazendo com que se perca tudo, desde produtos até clientes cadastrados.&lt;/span&gt;&lt;br /&gt;
&lt;h3&gt;&lt;span style=&quot;font-family: Arial; font-size: 12pt;&quot;&gt;O que preciso para ter essa loja mostrada acima?&lt;/span&gt;&lt;/h3&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;Em primeiro lugar, é necessário que você assine uma hospedagem, para ter onde coloca-la. Nós sugerimos a hospedagem da Locaweb (&lt;a href=&quot;http://www.locaweb.com.br/produtos/hospedagem.html&quot; target=&quot;_blank&quot;&gt;Profissional 1, plataforma Windows&lt;/a&gt;) pois ela é 100% compatível com o sistema apresentado. O preço deste plano de hospedagem é R$ 29,00 ao mês. Tendo isso, basta entrar em contato conosco.&lt;/span&gt;&lt;br /&gt;
&lt;h3 style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-family: Arial; font-size: 12pt;&quot;&gt;E depois, como faço para aparecer?&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;Um investimento que recomendo é publicidade. Dificilmente um e-commerce irá se promover se não anunciar. E como estamos falando em comércio eletrônico e não em comércio comum, a dica é fazer o anuncio em sites comparadores (que compram preços de produtos), como por exemplo &lt;a href=&quot;http://www.buscape.com.br/&quot; target=&quot;_blank&quot;&gt;Buscapé&lt;/a&gt;, &lt;a href=&quot;http://www.bondfaro.com.br/&quot; target=&quot;_blank&quot;&gt;BondFaro&lt;/a&gt; e &lt;a href=&quot;http://shopping.uol.com.br/&quot; target=&quot;_blank&quot;&gt;Shopping Uol&lt;/a&gt;. Esses três citados são pagos (você paga por clique de usuário em seu produto), mas são muito bons. Você também pode procurar por classificados grátis pela Internet. São muitos, mas os resultados nesses nem sempre são satisfatórios.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;color: white; font-family: Arial;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;Por fim, vale ter um bom preço em seus produtos, mas a qualidade, atendimento, organização interna e o funcionamento otimizado junto com um bom visual fazem a cabeça do cliente. E vale lembrar: o comércio é eletrônico, mas a atenção que será direcionada a ele deve ser a mesma que qualquer outro comércio físico. Não se esqueça de controlar seus estoques corretamente para não ter dores de cabeça no futuro.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;Espero ter ajudado.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vetortecinformatica.blogspot.com/feeds/3327118186086615213/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://vetortecinformatica.blogspot.com/2011/03/criando-um-commerce.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/547239981044631330/posts/default/3327118186086615213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/547239981044631330/posts/default/3327118186086615213'/><link rel='alternate' type='text/html' href='http://vetortecinformatica.blogspot.com/2011/03/criando-um-commerce.html' title='criando um -commerce'/><author><name>vetortec informatica</name><uri>http://www.blogger.com/profile/01557177860168805694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-547239981044631330.post-4934482129765921870</id><published>2010-12-18T14:27:00.000-02:00</published><updated>2010-12-18T19:00:17.498-02:00</updated><title type='text'>Tutorial de PHP</title><content type='html'>Tutorial da linguagem PHP&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Introdução&lt;br /&gt;
&lt;br /&gt;
O que é PHP?&lt;br /&gt;
&lt;br /&gt;
PHP é uma linguagem que permite criar sites WEB dinâmicos, possibilitando uma interação com o usuário através de formulários, parâmetros da URL e links. A diferença de PHP com relação a linguagens semelhantes a Javascript é que o código PHP é executado no servidor, sendo enviado para o cliente apenas html puro. Desta maneira é possível interagir com bancos de dados e aplicações existentes no servidor, com&amp;nbsp; a vantagem de não expor o código fonte para o cliente. Isso pode ser útil quando o programa está lidando com senhas ou qualquer tipo de informação confidencial. &lt;br /&gt;
O que diferencia PHP de um script CGI escrito em C ou Perl é que o código PHP fica embutido no próprio HTML, enquanto no outro caso é necessário que o script CGI gere todo o código HTML, ou leia de um outro arquivo.&lt;br /&gt;
&lt;br /&gt;
O que pode ser feito com PHP?&lt;br /&gt;
&lt;br /&gt;
Basicamente, qualquer coisa que pode ser feita por algum programa CGI pode ser feita também com PHP, como coletar dados de um formulário, gerar páginas dinamicamente ou enviar e receber cookies.&lt;br /&gt;
PHP também tem como uma das características mais importantes o suporte a um grande número de bancos de dados, como dBase, Interbase, mSQL, mySQL, Oracle, Sybase, PostgreSQL e vários outros. Construir uma página baseada em um banco de dados torna-se uma tarefa extremamente simples com PHP.&lt;br /&gt;
Além disso, PHP tem suporte a outros serviços através de protocolos como IMAP, SNMP, NNTP, POP3 e, logicamente, HTTP. Ainda é possível abrir sockets e interagir com outros protocolos.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Como surgiu a linguagem PHP?&lt;br /&gt;
&lt;br /&gt;
A linguagem PHP foi concebida durante o outono de 1994 por Rasmus Lerdorf. As primeiras versões não foram disponibilizadas, tendo sido utilizadas em sua home-page apenas para que ele pudesse ter informações sobre as visitas que estavam sendo feitas. A primeira versão utilizada por outras pessoas foi disponibilizada em 1995, e ficou conhecida como &quot;Personal Home Page Tools&quot; (ferramentas para página pessoal). Era composta por um sistema bastante simples que interpretava algumas macros e alguns utilitários que rodavam &quot;por trás&quot; das home-pages: um livro de visitas, um contador e algumas outras coisas.&lt;br /&gt;
Em meados de 1995 o interpretador foi reescrito, e ganhou o nome de PHP/FI, o &quot;FI&quot; veio de um outro pacote escrito por Rasmus que interpretava dados de formulários HTML (Form Interpreter). Ele combinou os scripts do pacote Personal Home Page Tools com o FI e adicionou suporte a mSQL, nascendo assim o PHP/FI, que cresceu bastante, e as pessoas passaram a contribuir com o projeto.&lt;br /&gt;
Estima-se que em 1996 PHP/FI estava sendo usado por cerca de 15.000 sites pelo mundo, e em meados de 1997 esse número subiu para mais de 50.000. Nessa época houve uma mudança no desenvolvimento do PHP. Ele deixou de ser um projeto de Rasmus com contribuições de outras pessoas para ter uma equipe de desenvolvimento mais organizada. O interpretador foi reescrito por Zeev Suraski e&amp;nbsp; Andi Gutmans, e esse novo interpretador foi a base para a versão 3.&lt;br /&gt;
Atualmente o uso do PHP3 vem crescendo numa velocidade incrível, e já está sendo desenvolvida a versão 4 do PHP.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Sintaxe Básica&lt;br /&gt;
&lt;br /&gt;
Delimitando o código PHP&lt;br /&gt;
&lt;br /&gt;
O código PHP fica embutido no próprio HTML. O interpretador identifica quando um código é PHP pelas seguintes tags:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
comandos&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script language=&quot;php&quot;&amp;gt;&lt;br /&gt;
comandos&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?&lt;br /&gt;
comandos&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;%&lt;br /&gt;
comandos&lt;br /&gt;
%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
O tipo de tags mais utilizado é o terceiro, que consiste em uma &quot;abreviação&quot; do primeiro. Para utilizá-lo, é necessário habilitar a opção short-tags na configuração do PHP. O último tipo serve para facilitar o uso por programadores acostumados à sintaxe de ASP. Para utilizá-lo também é necessário habilitá-lo no PHP, através do arquivo de configuração php.ini.&lt;br /&gt;
&lt;br /&gt;
Separador de instruções&lt;br /&gt;
&lt;br /&gt;
Entre cada instrução em PHP é preciso utilizar o ponto-e-vírgula, assim como em C, Perl e outras linguagens mais conhecidas. Na última instrução do bloco de script não é necessário o uso do ponto-e-vírgula, mas por questões estéticas recomenda-se o uso sempre.&lt;br /&gt;
&lt;br /&gt;
Nomes de variáveis&lt;br /&gt;
&lt;br /&gt;
Toda variável em PHP tem seu nome composto pelo caracter $ e uma string, que deve iniciar por uma letra ou o caracter &quot;_&quot;. PHP é case sensitive, ou seja, as variáveis $vivas e $VIVAS são diferentes. Por isso é preciso ter muito cuidado ao definir os nomes das variáveis. É bom evitar os nomes em maiúsculas, pois como veremos mais adiante, o PHP já possui alguma variáveis pré-definidas cujos nomes são formados por letras maiúsculas.&lt;br /&gt;
&lt;br /&gt;
Comentários&lt;br /&gt;
&lt;br /&gt;
Há dois tipos de comentários em código PHP:&lt;br /&gt;
&lt;br /&gt;
Comentários de uma linha:&lt;br /&gt;
&lt;br /&gt;
Marca como comentário até o final da linha ou até o final do bloco de código PHP - o que vier antes. Pode ser delimitado pelo caracter &quot;#&quot; ou por duas barras ( // ).&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
&amp;lt;?&amp;nbsp; echo &quot;teste&quot;; #isto é um teste&amp;nbsp; ?&amp;gt;&lt;br /&gt;
&amp;lt;?&amp;nbsp; echo &quot;teste&quot;; //este teste é similar ao anterior ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Comentários de mais de uma linha:&lt;br /&gt;
Tem como delimitadores os caracteres &quot;/*&quot; para o início do bloco e &quot;*/&quot; para o final do comentário. Se o delimitador de final de código PHP ( ?&amp;gt; ) estiver dentro de um comentário, não será reconhecido pelo interpretador.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Exemplos:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?&lt;br /&gt;
&amp;nbsp; echo &quot;teste&quot;; /* Isto é um comentário com mais&lt;br /&gt;
de uma linha, mas não funciona corretamente ?&amp;gt;&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?&lt;br /&gt;
&amp;nbsp; echo &quot;teste&quot;; /* Isto é um comentário com mais&lt;br /&gt;
de uma linha que funciona corretamente &lt;br /&gt;
*/&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Criando os primeiros scripts&lt;br /&gt;
Primeiro Exemplo&lt;br /&gt;
&lt;br /&gt;
Neste exemplo, criaremos um script com uma saída simples, que servirá para testar se a instalação foi feita corretamente:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Aprendendo PHP&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
echo &quot;Primeiro Script&quot;;&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Salve o arquivo como &quot;primeiro.php3&quot; no diretorio de documentos do Apache (ou o Web Server escolhido). Abra uma janela do navegador e digite o endereço &quot;http://localhost/primeiro.php3&quot;. Verificando o código fonte da página exibida, temos o seguinte:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Aprendendo PHP&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Primeiro Script&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Isso mostra como o PHP funciona. O script é executado no servidor, ficando disponível para o usuário apenas o resultado. Agora vamos escrever um script que produza exatamente o mesmo resultado utilizando uma variável:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Aprendendo PHP&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$texto = &quot;Primeiro Script&quot;;&lt;br /&gt;
echo $texto;&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Utilizando formulários HTML&lt;br /&gt;
&lt;br /&gt;
Ao clicar num botão &quot;Submit&quot; em um formulário HTML as informações dos campos serão enviadas ao servidor especificado para que possa ser produzida uma resposta. O PHP trata esses valores como variáveis, cujo nome é o nome do campo definido no formulário. O exemplo a seguir mostra isso, e mostra também como o código PHP pode ser inserido em qualquer parte do código HTML:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Aprendendo PHP&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
if ($texto != &quot;&quot;) &lt;br /&gt;
&amp;nbsp; echo &quot;Você digitou \&quot;$texto\&quot;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&quot;;&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;form method=post action=&quot;&amp;lt;? echo $PATH_INFO; ?&amp;gt;&quot;&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;text&quot; name=&quot;texto&quot; value=&quot;&quot; size=10&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;submit&quot; name=&quot;sub&quot; value=&quot;Enviar!&quot;&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ao salvar o arquivo acima e carregá-lo no browser, o usuário verá apenas um formulário que contém um espaço para digitar o texto, como visto na figura 01. Ao digitar um texto qualquer e submeter o formulário, a resposta, que é o mesmo arquivo PHP (indicado pela constante $PATH_INFO, que retorna o nome do arquivo) será como na figura 02:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
figura 01&amp;nbsp;&amp;nbsp;&amp;nbsp; figura 02&lt;br /&gt;
&lt;br /&gt;
Isso ocorre porque o código PHP testa o conteúdo da variável $texto. Inicialmente ele é uma string vazia, e por isso nada é impresso na primeira parte. Quando algum texto é digitado no formulário e submetido, o PHP passa a tratá-lo como uma variável. Como no formulário o campo possui o nome &quot;texto&quot;, a variável com seu conteúdo será $texto. Assim, no próximo teste o valor da variável será diferente de uma string vazia, e o PHP imprime um texto antes do formulário.&lt;br /&gt;
&lt;br /&gt;
Interagindo com o browser&lt;br /&gt;
&lt;br /&gt;
PHP também permite interagir com informações do browser automaticamente. Por exemplo, o script a seguir mostra informações sobre o browser do usuário. As figuras 03 e 04 mostram o resultado visto no Netscape Communicator e o Microsoft Internet Explorer, respectivamente.&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Aprendendo PHP&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;? echo $HTTP_USER_AGENT; ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
figura 03&amp;nbsp;&amp;nbsp;&amp;nbsp; figura 04&lt;br /&gt;
&lt;br /&gt;
Observe que o resultado mostra características de cada browser, como a versão, e no caso do Communicator até o idioma (&quot;en&quot;). Com isso, se você criar uma página com recursos disponíveis somente no Internet Explorer, por exemplo, pode esconder o código dos outros browsers, com um código semelhante ao seguinte:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Aprendendo PHP&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;? &lt;br /&gt;
if&amp;nbsp; (strpos($HTTP_USER_AGENT,&quot;MSIE 5&quot;) != 0) {&lt;br /&gt;
&amp;nbsp; echo &quot;Você usa Internet Explorer&quot;;&lt;br /&gt;
} else {&lt;br /&gt;
&amp;nbsp; echo &quot;Você não usa Internet Explorer&quot;;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Neste exemplo, será apenas exibido um texto informando se está sendo utilizado o Microsoft Internet Explorer ou não, mas para outras funções poderia ser utilizado algo semelhante.&lt;br /&gt;
É bom notar o surgimento de mais uma função no código anterior: strpos(string1,string2). Essa função retorna a posição da primeira aparição de string2 em string1, contando a partir de zero, e não retorna valor algum se não ocorrer. Assim, para testar se a string $HTTP_USER_AGENT contém a string &quot;MSIE&quot;, basta testar se strpos devolve algum valor. &lt;br /&gt;
&lt;br /&gt;
Acessando Bancos de Dados&lt;br /&gt;
Neste documento todos os exemplos referentes a acesso de bancos de dados utilizarão o gerenciador de banco de dados MySQL, que pode ser copiado gratuitamente no site http://www.mysql.org. &lt;br /&gt;
Para interagir com uma base de dados SQL existem três comandos básicos que devem ser utilizados: um que faz a conexão com o servidor de banco de dados, um que seleciona a base de dados a ser utilizada e um terceiro que executa uma &quot;query&quot; SQL.&lt;br /&gt;
&lt;br /&gt;
Conexão com o servidor&lt;br /&gt;
A conexão com o servidor de banco de dados mySQL em PHP é feita através do comando mysql_connect, que tem a seguinte sintaxe:&lt;br /&gt;
&lt;br /&gt;
int mysql_connect(string /*host [:porta]*/ , string /*login*/ , string /*senha*/ );&lt;br /&gt;
&lt;br /&gt;
Os parâmetros são bastante simples: o endereço do servidor(host), o nome do usuário (login) e a senha para a conexão. A função retorna um valor inteiro, que é o identificador da conexão estabelecida e deverá ser armazenado numa variável para ser utilizado depois. No nosso exemplo, temos como servidor de banco de dados a mesma máquina que roda o servidor http, como login o usuário &quot;root&quot; e senha &quot;phppwd&quot;:&lt;br /&gt;
&lt;br /&gt;
$conexao = mysql_connect(&quot;localhost&quot;, &quot;root&quot;, &quot;phppwd&quot;);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Assim, se a conexão for bem sucedida (existir um servidor no endereço especificado que possua o usuário com a senha fornecida), o identificador da conexão fica armazenado na variável $conexão.&lt;br /&gt;
&lt;br /&gt;
Seleção do banco de dados&lt;br /&gt;
Uma vez conectado, é preciso selecionar o banco de dados existente no servidor com o qual desejamos trabalhar. Isso é feito através da função int mysql_select_db, que possui a seguinte sintaxe:&lt;br /&gt;
&lt;br /&gt;
int mysql_select_db(string /*nome_base*/, int /*conexao*/ );&lt;br /&gt;
&lt;br /&gt;
O valor de retorno é 0 se o comando falhar, e 1 em caso de sucesso. O nome da base de dados a selecionar é o primeiro parâmetro fornecido, seguido pelo identificador da conexão. Se este for omitido, o interpretador PHP tentará utilizar a última conexão estabelecida. Recomenda-se sempre explicitar esse valor, para facilitar a legibilidade do código. No nosso exemplo, a base de dados a ser selecionada possui o nome &quot;ged&quot;:&lt;br /&gt;
&lt;br /&gt;
mysql_select_db(&quot;ged&quot;, $conexao);&lt;br /&gt;
&lt;br /&gt;
Após a execução desse comando qualquer consulta executada para aquela conexão utilizará a base de dados selecionada.&lt;br /&gt;
&lt;br /&gt;
Execução de queries SQL&lt;br /&gt;
Após estabelecida a conexão e selecionada a base de dados a ser utilizada, quase toda a interação com o servidor mySQL pode ser feita através de consultas escritas em SQL (Structured Query Language), com o comando mysql_query, que utiliza a seguinte sintaxe:&lt;br /&gt;
int mysql_query(string consulta, int [conexao] );&lt;br /&gt;
&lt;br /&gt;
O valor de retorno é 0 se falhar ou 1 em caso de sucesso. Sucesso aqui significa que a consulta está sintaticamente correta e foi executada no servidor. Nenhuma informação sobre o resultado é retornada deste comando, ou até mesmo se o resultado é o esperado. No caso da consulta ser um comando SELECT, o valor de retorno é um valor interno que identifica o resultado, que poderá ser tratado com a função mysql_result() e outras. A string query não deve conter ponto-e-vírgula no final do comando, e o identificador da conexão é opcional. Vamos criar uma tabela como exemplo:&lt;br /&gt;
$cria = &quot;CREATE TABLE exemplo (codigo INT AUTO_INCREMENT PRIMARY KEY, nome CHAR(40), email CHAR(50))&quot;;&lt;br /&gt;
&lt;br /&gt;
mysql_query($cria, $conexao);&lt;br /&gt;
&lt;br /&gt;
Agora vejamos como ficou o código completo para executar uma query SQL numa base de dados mySQL, com um exemplo que cria uma tabela chamada exemplo e adiciona alguns dados:&lt;br /&gt;
&lt;br /&gt;
$conexao = mysql_connect(&quot;localhost&quot;, &quot;root&quot;, &quot;phppwd&quot;);&lt;br /&gt;
mysql_select_db(&quot;ged&quot;, $conexao);&lt;br /&gt;
&lt;br /&gt;
$cria = &quot;CREATE TABLE exemplo (codigo INT AUTO_INCREMENT PRIMARY KEY, nome CHAR(40), email CHAR(50))&quot;;&lt;br /&gt;
&lt;br /&gt;
$insere1 = &quot;INSERT INTO exemplo (nome,email) VALUES (&quot;Mauricio Vivas&quot;,&quot;vivas@usa.net&quot;);&lt;br /&gt;
&lt;br /&gt;
$insere2 = &quot;INSERT INTO exemplo (nome,email) VALUES (&quot;Jose da Silva&quot;,&quot;jose@teste.com&quot;);&lt;br /&gt;
&lt;br /&gt;
$insere3 = &quot;INSERT INTO exemplo (nome,email) VALUES (&quot;Fernando Henrique Cardoso&quot;,&quot;fhc@planalto.gov.br&quot;);&lt;br /&gt;
&lt;br /&gt;
$insere4 = &quot;INSERT INTO exemplo (nome,email) VALUES (&quot;Bill Clinton&quot;,&quot;president@whitehouse.gov&quot;);&lt;br /&gt;
&lt;br /&gt;
mysql_query($cria, $conexao);&lt;br /&gt;
mysql_query($insere1, $conexao);&lt;br /&gt;
mysql_query($insere2, $conexao);&lt;br /&gt;
mysql_query($insere3, $conexao);&lt;br /&gt;
mysql_query($insere4, $conexao);&lt;br /&gt;
&lt;br /&gt;
Tratamento de resultados de query SELECT&lt;br /&gt;
&lt;br /&gt;
Ao executar uma query SQL SELECT através do comando mysql_query, o identificador do resultado deve ser armazenado numa variável que pode ser tratada de diversas formas. Duas maneiras interessantes de fazê-lo usam o comando mysql_result e o comando mysql_fetch_row, respectivamente.&lt;br /&gt;
O comando mysql_result tem a seguinte sintaxe:&lt;br /&gt;
&lt;br /&gt;
int mysql_result(int resultado, int linha, mixed [campo]);&lt;br /&gt;
&lt;br /&gt;
Onde resultado é o identificador do resultado, obtido com o retorno da função mysql_query, linha especifica a tupla a ser exibida, já que uma query SELECT pode retornar diversas tuplas, e campo é o identificador do campo a ser exibido, sendo o tipo descrito como mixed pela possibilidade de ser de diversos tipos (neste caso, inteiro ou string). Vejamos um exemplo utilizando a tabela criada anteriormente:&lt;br /&gt;
&lt;br /&gt;
$consulta = &quot;SELECT nome, email FROM exemplo WHERE email LIKE &#39;vivas&#39;&quot;;&lt;br /&gt;
&lt;br /&gt;
$resultado = mysql_query($consulta, $conexao);&lt;br /&gt;
&lt;br /&gt;
printf(&quot;Nome: &quot;, mysql_result($resultado,0,&quot;nome&quot;), &quot;&amp;lt;br&amp;gt;\n&quot;);&lt;br /&gt;
printf(&quot;e-mail: &quot;, mysql_result($resultado,0,&quot;email&quot;),&quot;&amp;lt;br&amp;gt;&quot;);&lt;br /&gt;
&lt;br /&gt;
Com o exemplo acima, o resultado será:&lt;br /&gt;
&lt;br /&gt;
Nome: Mauricio Vivas&amp;lt;br&amp;gt;&lt;br /&gt;
e-mail: vivas@usa.net&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
É importante notar que a utilização desta função é um pouco trabalhosa, já que no caso de um resultado com várias linhas é preciso controlar o número de linhas para tratá-las (pode-se utilizar a função mysql_num_rows(int resultado), que retorna o número de linhas de um resultado), e no caso de uma alteração no nome do campo é preciso alterar também a maneira de tratá-lo. Por isso é mais aconselhável que se use uma outra função, como por exemplo mysql_fetch_row, que possui a seguinte sintaxe:&lt;br /&gt;
&lt;br /&gt;
array mysql_fetch_row(int result);&lt;br /&gt;
&lt;br /&gt;
A variável resultado é o identificador da memória de resultados, obtido como retorno da função mysql_query. O resultado produzido por esta função é de retirar a primeira linha da memória de resultados, se houver, e colocá-la num array. Assim torna-se mais fácil tratar um resultado com várias linhas, e sem utilizar os nomes dos&amp;nbsp; campos na rotina de tratamento do resultado:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
$consulta = &quot;SELECT nome, email FROM exemplo&quot;;&lt;br /&gt;
&lt;br /&gt;
$resultado = mysql_query($consulta, $conexao);&lt;br /&gt;
&lt;br /&gt;
echo &quot;&amp;lt;table border=1&amp;gt;\n&quot;;&lt;br /&gt;
echo &quot;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Nome&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;e-mail&amp;lt;/tr&amp;gt;\n&quot;;&lt;br /&gt;
while ($linha = mysql_fetch_row($resultado)) {&lt;br /&gt;
&amp;nbsp; printf(&quot;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;$linha[0]&amp;lt;/td&amp;gt;&quot;);&lt;br /&gt;
&amp;nbsp; printf(&quot;&amp;lt;td&amp;gt;$linha[1]&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&quot;);&lt;br /&gt;
}&lt;br /&gt;
echo &quot;&amp;lt;/table&amp;gt;\n&quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
O código acima irá imprimir todos os registros da tabela exemplo numa tabela html. Se o programador desejar &quot;pular&quot; alguma(s) linha(s) do resultado, poderá utilizar a função mysql_data_seek, que tem por objetivo definir qual será a próxima linha da memória de resultados a ser impressa. Sua sintaxe é:&lt;br /&gt;
&lt;br /&gt;
int mysql_data_seek(int resultado, int linha);&lt;br /&gt;
&lt;br /&gt;
Sendo resultado o identificador do resultado e linha o numero da linha. Retorna 0 em caso de falha, e um valor diferente de zero em caso de sucesso.&lt;br /&gt;
Existem diversas outras funções para o tratamento de resultados, que armazenam as linhas em arrays e objetos, assim como outras funções para administrar o banco de dados, mas como este documento trata-se de uma introdução, inicialmente não tratará tópicos mais avançados.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. Tipos&lt;br /&gt;
&lt;br /&gt;
Tipos Suportados&lt;br /&gt;
&lt;br /&gt;
PHP suporta os seguintes tipos de dados:&lt;br /&gt;
&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inteiro&lt;br /&gt;
&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ponto flutuante&lt;br /&gt;
&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; String&lt;br /&gt;
&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; Array&lt;br /&gt;
&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; Objeto&lt;br /&gt;
&lt;br /&gt;
PHP utiliza checagem de tipos dinâmica, ou seja, uma variável pode conter valores de diferentes tipos em diferentes momentos da execução do script. Por este motivo não é necessário declarar o tipo de uma variável para usá-la. O interpretador PHP decidirá qual o tipo daquela variável, verificando o conteúdo em tempo de execução.&lt;br /&gt;
Ainda assim, é permitido converter os valores de um tipo para outro desejado, utilizando o typecasting ou a função settype (ver adiante).&lt;br /&gt;
&lt;br /&gt;
Inteiros (integer ou long)&lt;br /&gt;
Uma variável pode conter um valor inteiro com atribuições que sigam as seguintes sintaxes:&lt;br /&gt;
&lt;br /&gt;
$vivas = 1234;&amp;nbsp;&amp;nbsp;&amp;nbsp; # inteiro positivo na base decimal&lt;br /&gt;
$vivas = -234;&amp;nbsp;&amp;nbsp;&amp;nbsp; # inteiro negativo na base decimal&lt;br /&gt;
$vivas = 0234;&amp;nbsp;&amp;nbsp;&amp;nbsp; # inteiro na base octal-simbolizado pelo 0&lt;br /&gt;
# equivale a 156 decimal&lt;br /&gt;
$vivas = 0x34;&amp;nbsp;&amp;nbsp;&amp;nbsp; # inteiro na base hexadecimal(simbolizado&lt;br /&gt;
# pelo 0x) - equivale a 52 decimal.&lt;br /&gt;
&lt;br /&gt;
A diferença entre inteiros simples e long está no número de bytes utilizados para armazenar a variável. Como a escolha é feita pelo interpretador PHP de maneira transparente para o usuário, podemos afirmar que os tipos são iguais.&lt;br /&gt;
Números em Ponto Flutuante (double ou float)&lt;br /&gt;
Uma variável pode ter um valor em ponto flutuante com atribuições que sigam as seguintes sintaxes:&lt;br /&gt;
&lt;br /&gt;
$vivas = 1.234;&lt;br /&gt;
$vivas = 23e4;&amp;nbsp;&amp;nbsp;&amp;nbsp; # equivale a 230.000&lt;br /&gt;
&lt;br /&gt;
Strings&lt;br /&gt;
&lt;br /&gt;
Strings podem ser atribuídas de duas maneiras:&lt;br /&gt;
&lt;br /&gt;
a)&amp;nbsp;&amp;nbsp;&amp;nbsp; utilizando aspas simples ( &#39; ) - Desta maneira, o valor da variável será exatamente o texto contido entre as aspas (com exceção de \\ e \&#39; - ver tabela abaixo)&lt;br /&gt;
b)&amp;nbsp;&amp;nbsp;&amp;nbsp; utilizando aspas duplas ( &quot; ) - Desta maneira, qualquer variável ou caracter de escape será expandido antes de ser atribuído.&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?&lt;br /&gt;
$teste = &quot;Mauricio&quot;;&lt;br /&gt;
$vivas = &#39;---$teste--\n&#39;;&lt;br /&gt;
echo &quot;$vivas&quot;;&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
A saída desse script será &quot;---$teste--\n&quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?&lt;br /&gt;
$teste = &quot;Mauricio&quot;;&lt;br /&gt;
$vivas = &quot;---$teste---\n&quot;;&lt;br /&gt;
echo &quot;$vivas&quot;;&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A saída desse script será &quot;---Mauricio--&quot; (com uma quebra de linha no final).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A tabela seguinte lista os caracteres de escape:&lt;br /&gt;
&lt;br /&gt;
Sintaxe&amp;nbsp;&amp;nbsp;&amp;nbsp; Significado&lt;br /&gt;
\n&amp;nbsp;&amp;nbsp;&amp;nbsp; Nova linha&lt;br /&gt;
\r&amp;nbsp;&amp;nbsp;&amp;nbsp; Retorno de carro (semelhante a \n)&lt;br /&gt;
\t&amp;nbsp;&amp;nbsp;&amp;nbsp; Tabulação horizontal&lt;br /&gt;
\\&amp;nbsp;&amp;nbsp;&amp;nbsp; A própria barra ( \ )&lt;br /&gt;
\$&amp;nbsp;&amp;nbsp;&amp;nbsp; O símbolo $&lt;br /&gt;
\&#39;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aspa simples&lt;br /&gt;
\&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aspa dupla&lt;br /&gt;
&lt;br /&gt;
No apêndice 01 está disponível uma lista das funções utilizadas no tratamento de strings.&lt;br /&gt;
&lt;br /&gt;
Arrays&lt;br /&gt;
&lt;br /&gt;
Arrays em PHP podem ser observados como mapeamentos ou como vetores indexados. Mais precisamente, um valor do tipo array é um dicionário onde os índices são as chaves de acesso. Vale ressaltar que os índices podem ser valores de qualquer tipo e não somente inteiros. Inclusive, se os índices forem todos inteiros, estes não precisam formar um intervalo contínuo&lt;br /&gt;
Como a checagem de tipos em PHP é dinâmica, valores de tipos diferentes podem ser usados como índices de array, assim como os valores mapeados também podem ser de diversos tipos.&lt;br /&gt;
Exemplo: &lt;br /&gt;
&amp;lt;?&lt;br /&gt;
$cor[1] = &quot;vermelho&quot;;&lt;br /&gt;
$cor[2] = &quot;verde&quot;;&lt;br /&gt;
$cor[3] = &quot;azul&quot;;&lt;br /&gt;
$cor[&quot;teste&quot;] = 1;&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equivalentemente, pode-se escrever:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?&lt;br /&gt;
$cor = array(1 =&amp;gt; &quot;vermelho, 2 =&amp;gt; &quot;verde, 3 =&amp;gt; &quot;azul&quot;, &quot;teste =&amp;gt; 1);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Listas&lt;br /&gt;
As listas são utilizadas em PHP para realizar atribuições múltiplas. Através de listas é possível atribuir valores que estão num array para variáveis. Vejamos o exemplo:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;list($a, $b, $c) = array(&quot;a&quot;, &quot;b&quot;, &quot;c&quot;);&lt;br /&gt;
&lt;br /&gt;
O comando acima atribui valores às três variáveis simultaneamente. É bom notar que só são atribuídos às variáveis da lista os elementos do array que possuem índices inteiros e não negativos. No exemplo acima as três atribuições foram bem sucedidas porque ao inicializar um array sem especificar os índices eles passam a ser inteiros, a partir do zero. Um fator importante é que cada variável da lista possui um índice inteiro e ordinal, iniciando com zero, que serve para determinar qual valor será atribuído. No exemplo anterior temos $a com índice 0, $b com índice 1 e $c com índice 2. Vejamos um outro exemplo:&lt;br /&gt;
&lt;br /&gt;
$arr = array(1=&amp;gt;&quot;um&quot;,3=&amp;gt;&quot;tres&quot;,&quot;a&quot;=&amp;gt;&quot;letraA&quot;,2=&amp;gt;&quot;dois);&lt;br /&gt;
list($a,$b,$c,$d) = $arr;&lt;br /&gt;
&lt;br /&gt;
Após a execução do código acima temos os seguintes valores:&lt;br /&gt;
$a == null&lt;br /&gt;
$b == &quot;um&quot;&lt;br /&gt;
$c == &quot;dois&quot;&lt;br /&gt;
$d == &quot;tres&quot;&lt;br /&gt;
&lt;br /&gt;
Devemos observar que à variável $a não foi atribuído valor, pois no array não existe elemento com índice 0 (zero). Outro detalhe importante é que o valor &quot;tres&quot; foi atribuído à variável $d, e não a $b, pois seu índice é 3, o mesmo que $d na lista. Por fim, vemos que o valor &quot;letraA&quot; não foi atribuído a elemento algum da lista pois seu índice não é inteiro.&lt;br /&gt;
Os índices da lista servem apenas como referência ao interpretador PHP para realizar as atribuições, não podendo ser acessados de maneira alguma pelo programador. De maneira diferente do array, uma lista não pode ser atribuída a uma variável, servindo apenas para fazer múltiplas atribuições através de um array.&lt;br /&gt;
No apêndice 02 está disponível uma lista das funções mais comuns para o tratamento de arrays.&lt;br /&gt;
&lt;br /&gt;
Objetos&lt;br /&gt;
Um objeto pode ser inicializado utilizando o comando new para instanciar uma classe para uma variável.&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
class teste {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; function nada() {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; echo &quot;nada&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
$vivas = new teste;&lt;br /&gt;
$vivas -&amp;gt; nada();&lt;br /&gt;
&lt;br /&gt;
A utilização de objetos será mais detalhada mais à frente.&lt;br /&gt;
&lt;br /&gt;
Booleanos&lt;br /&gt;
&lt;br /&gt;
PHP não possui um tipo booleano, mas é capaz de avaliar expressões e retornar true ou false, através do tipo integer: é usado o valor 0 (zero) para representar o estado false, e qualquer valor diferente de zero (geralmente 1) para representar o estado true.&lt;br /&gt;
&lt;br /&gt;
Transformação de tipos&lt;br /&gt;
&lt;br /&gt;
A transformação de tipos em PHP pode ser feita das seguintes maneiras:&lt;br /&gt;
Coerções&lt;br /&gt;
&lt;br /&gt;
Quando ocorrem determinadas operações (&quot;+&quot;, por exemplo) entre dois valores de tipos diferentes, o PHP converte o valor de um deles automaticamente (coerção). É interessante notar que se o operando for uma variável, seu valor não será alterado. &lt;br /&gt;
O tipo para o qual os valores dos operandos serão convertidos é determinado da seguinte forma: Se um dos operandos for float, o outro será convertido para float, senão, se um deles for integer, o outro será convertido para integer.&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
$vivas = &quot;1&quot;;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // $vivas é a string &quot;1&quot;&lt;br /&gt;
$vivas = $vivas + 1;&amp;nbsp;&amp;nbsp;&amp;nbsp; // $vivas é o integer 2&lt;br /&gt;
$vivas = $vivas + 3.7;// $vivas é o double 5.7&lt;br /&gt;
$vivas = 1 + 1.5&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // $vivas é o double 2.5&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Como podemos notar, o PHP converte string para integer ou double mantendo o valor. O sistema utilizado pelo PHP para converter de strings para números é o seguinte:&lt;br /&gt;
-&amp;nbsp;&amp;nbsp;&amp;nbsp; É analisado o início da string. Se contiver um número, ele será avaliado. Senão, o valor será 0 (zero);&lt;br /&gt;
-&amp;nbsp;&amp;nbsp;&amp;nbsp; O número pode conter um sinal no início (&quot;+&quot; ou &quot;-&quot;);&lt;br /&gt;
-&amp;nbsp;&amp;nbsp;&amp;nbsp; Se a string contiver um ponto em sua parte numérica a ser analisada, ele será considerado, e o valor obtido será double;&lt;br /&gt;
-&amp;nbsp;&amp;nbsp;&amp;nbsp; Se a string contiver um &quot;e&quot; ou &quot;E&quot; em sua parte numérica a ser analisada, o valor seguinte será considerado como expoente da base 10, e o valor obtido será double;&lt;br /&gt;
&lt;br /&gt;
Exemplos:&lt;br /&gt;
$vivas = 1 + &quot;10.5&quot;;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // $vivas == 11.5&lt;br /&gt;
$vivas = 1 + &quot;-1.3e3&quot;;&amp;nbsp;&amp;nbsp;&amp;nbsp; // $vivas == -1299&lt;br /&gt;
$vivas = 1 + &quot;teste10.5&quot;;&amp;nbsp;&amp;nbsp;&amp;nbsp; // $vivas == 1&lt;br /&gt;
$vivas = 1 + &quot;10testes&quot;;&amp;nbsp;&amp;nbsp;&amp;nbsp; // $vivas == 11&lt;br /&gt;
$vivas = 1 + &quot;&amp;nbsp; 10testes&quot;;&amp;nbsp;&amp;nbsp;&amp;nbsp; // $vivas == 11&lt;br /&gt;
$vivas = 1 + &quot;+&amp;nbsp; 10testes&quot;;&amp;nbsp;&amp;nbsp;&amp;nbsp; // $vivas == 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Transformação explícita de tipos&lt;br /&gt;
&lt;br /&gt;
A sintaxe do typecast de PHP é semelhante ao C: basta escrever o tipo entre parenteses antes do valor&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
$vivas = 15;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // $vivas é integer (15)&lt;br /&gt;
$vivas = (double) $vivas&amp;nbsp;&amp;nbsp;&amp;nbsp; // $vivas é double (15.0)&lt;br /&gt;
$vivas = 3.9&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // $vivas é double (3.9)&lt;br /&gt;
$vivas = (int) $vivas&amp;nbsp;&amp;nbsp;&amp;nbsp; // $vivas é integer (3) &lt;br /&gt;
// o valor decimal é truncado&lt;br /&gt;
&lt;br /&gt;
Os tipos de cast permitidos são:&lt;br /&gt;
(int), (integer)&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; muda para integer;&lt;br /&gt;
(real), (double), (float)&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; muda para float;&lt;br /&gt;
(string)&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; muda para string;&lt;br /&gt;
(array)&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; muda para array;&lt;br /&gt;
(object)&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; muda para objeto.&lt;br /&gt;
&lt;br /&gt;
Com a função settype&lt;br /&gt;
&lt;br /&gt;
A função settype converte uma variável para o tipo especificado, que pode ser &quot;integer&quot;, &quot;double&quot;, &quot;string&quot;, &quot;array&quot; ou &quot;object&quot;.&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
$vivas = 15;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // $vivas é integer&lt;br /&gt;
settype($vivas,double)&amp;nbsp;&amp;nbsp;&amp;nbsp; // $vivas é double&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Constantes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Constantes pré-definidas&lt;br /&gt;
&lt;br /&gt;
O PHP possui algumas constantes pré-definidas, indicando a versão do PHP, o Sistema Operacional do servidor, o arquivo em execução, e diversas outras informações. Para ter acesso a todas as constantes pré-definidas, pode-se utilizar a função phpinfo(), que exibe uma tabela contendo todas as constantes pré-definidas, assim como configurações da máquina, sistema operacional, servidor http e versão do PHP instalada.&lt;br /&gt;
&lt;br /&gt;
Definindo constantes&lt;br /&gt;
&lt;br /&gt;
Para definir constantes utiliza-se a função define. Uma vez definido, o valor de uma constante não poderá mais ser alterado. Uma constante só pode conter valores escalares, ou seja, não pode conter nem um array nem um objeto. A assinatura da função define é a seguinte:&lt;br /&gt;
&lt;br /&gt;
int define(string nome_da_constante, mixed valor);&lt;br /&gt;
&lt;br /&gt;
A função retorna true se for bem-sucedida. Veja um exemplo de sua utilização a seguir:&lt;br /&gt;
&lt;br /&gt;
define (&quot;pi&quot;, 3.1415926536);&lt;br /&gt;
$circunf = 2*pi*$raio;&lt;br /&gt;
&lt;br /&gt;
6. Operadores&lt;br /&gt;
&lt;br /&gt;
Aritméticos&lt;br /&gt;
&lt;br /&gt;
Só podem ser utilizados quando os operandos são números (integer ou float). Se forem de outro tipo, terão seus valores convertidos antes da realização da operação.&lt;br /&gt;
&lt;br /&gt;
+&amp;nbsp;&amp;nbsp;&amp;nbsp; adição&lt;br /&gt;
-&amp;nbsp;&amp;nbsp;&amp;nbsp; subtração&lt;br /&gt;
*&amp;nbsp;&amp;nbsp;&amp;nbsp; multiplicação&lt;br /&gt;
/&amp;nbsp;&amp;nbsp;&amp;nbsp; divisão&lt;br /&gt;
%&amp;nbsp;&amp;nbsp;&amp;nbsp; módulo&lt;br /&gt;
&lt;br /&gt;
de strings&lt;br /&gt;
&lt;br /&gt;
Só há um operador exclusivo para strings:&lt;br /&gt;
&lt;br /&gt;
.&amp;nbsp;&amp;nbsp;&amp;nbsp; concatenação&lt;br /&gt;
&lt;br /&gt;
de atribuição&lt;br /&gt;
&lt;br /&gt;
Existe um operador básico de atribuição e diversos derivados. Sempre retornam o valor atribuído. No caso dos operadores derivados de atribuição, a operação é feita entre os dois operandos, sendo atribuído o resultado para o primeiro. A atribuição é sempre por valor, e não por referência.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=&amp;nbsp;&amp;nbsp;&amp;nbsp; atribuição simples&lt;br /&gt;
+=&amp;nbsp;&amp;nbsp;&amp;nbsp; atribuição com adição&lt;br /&gt;
-=&amp;nbsp;&amp;nbsp;&amp;nbsp; atribuição com subtração&lt;br /&gt;
*=&amp;nbsp;&amp;nbsp;&amp;nbsp; atribuição com multiplicação&lt;br /&gt;
/=&amp;nbsp;&amp;nbsp;&amp;nbsp; atribuição com divisão&lt;br /&gt;
%=&amp;nbsp;&amp;nbsp;&amp;nbsp; atribuição com módulo&lt;br /&gt;
.=&amp;nbsp;&amp;nbsp;&amp;nbsp; atribuição com concatenação&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
&lt;br /&gt;
$a = 7;&lt;br /&gt;
$a += 2; // $a passa a conter o valor 9&lt;br /&gt;
&lt;br /&gt;
bit a bit&lt;br /&gt;
&lt;br /&gt;
Comparam dois números bit a bit.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;e&quot; lógico&lt;br /&gt;
|&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;ou&quot; lógico&lt;br /&gt;
^&amp;nbsp;&amp;nbsp;&amp;nbsp; ou exclusivo&lt;br /&gt;
~&amp;nbsp;&amp;nbsp;&amp;nbsp; não (inversão)&lt;br /&gt;
&amp;lt;&amp;lt;&amp;nbsp;&amp;nbsp;&amp;nbsp; shift left&lt;br /&gt;
&amp;gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; shift right&lt;br /&gt;
Lógicos&lt;br /&gt;
Utilizados para inteiros representando valores booleanos&lt;br /&gt;
&lt;br /&gt;
and&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;e&quot; lógico&lt;br /&gt;
or&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;ou&quot; lógico&lt;br /&gt;
xor&amp;nbsp;&amp;nbsp;&amp;nbsp; ou exclusivo&lt;br /&gt;
!&amp;nbsp;&amp;nbsp;&amp;nbsp; não (inversão)&lt;br /&gt;
&amp;amp;&amp;amp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;e&quot; lógico&lt;br /&gt;
||&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;ou&quot; lógico&lt;br /&gt;
&lt;br /&gt;
Existem dois operadores para &quot;e&quot; e para &quot;ou porque eles têm diferentes posições na ordem de precedência.&lt;br /&gt;
&lt;br /&gt;
Comparação&lt;br /&gt;
&lt;br /&gt;
As comparações são feitas entre os valores contidos nas variáveis, e não as referências. Sempre retornam um valor booleano.&lt;br /&gt;
&lt;br /&gt;
==&amp;nbsp;&amp;nbsp;&amp;nbsp; igual a&lt;br /&gt;
!=&amp;nbsp;&amp;nbsp;&amp;nbsp; diferente de&lt;br /&gt;
&amp;lt;&amp;nbsp;&amp;nbsp;&amp;nbsp; menor que&lt;br /&gt;
&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; maior que&lt;br /&gt;
&amp;lt;=&amp;nbsp;&amp;nbsp;&amp;nbsp; menor ou igual a&lt;br /&gt;
&amp;gt;=&amp;nbsp;&amp;nbsp;&amp;nbsp; maior ou igual a&lt;br /&gt;
&lt;br /&gt;
Expressão condicional&lt;br /&gt;
&lt;br /&gt;
Existe um operador de seleção que é ternário. Funciona assim:&lt;br /&gt;
&lt;br /&gt;
(expressao1)?(expressao2):( expressao3)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
o interpretador PHP avalia a primeira expressão. Se ela for verdadeira, a expressão retorna o valor de expressão2. Senão, retorna o valor de expressão3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
de incremento e decremento&lt;br /&gt;
&lt;br /&gt;
++&amp;nbsp;&amp;nbsp;&amp;nbsp; incremento&lt;br /&gt;
--&amp;nbsp;&amp;nbsp;&amp;nbsp; decremento&lt;br /&gt;
&lt;br /&gt;
Podem ser utilizados de duas formas: antes ou depois da variável. Quando utilizado antes, retorna o valor da variável antes de incrementá-la ou decrementá-la. Quando utilizado depois, retorna o valor da variável já incrementado ou decrementado.&lt;br /&gt;
&lt;br /&gt;
Exemplos:&lt;br /&gt;
&lt;br /&gt;
$a = $b = 10; // $a e $b recebem o valor 10&lt;br /&gt;
$c = $a++; // $c recebe 10 e $a passa a ter 11&lt;br /&gt;
$d = ++$b; // $d recebe 11, valor de $b já incrementado&lt;br /&gt;
&lt;br /&gt;
Ordem de precedência dos operadores&lt;br /&gt;
&lt;br /&gt;
A tabela a seguir mostra a ordem de precedência dos operadores no momento de avaliar as expressões;&lt;br /&gt;
Precedência&amp;nbsp;&amp;nbsp;&amp;nbsp; Associatividade&amp;nbsp;&amp;nbsp;&amp;nbsp; Operadores&lt;br /&gt;
1.&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; esquerda&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&lt;br /&gt;
2.&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; esquerda&amp;nbsp;&amp;nbsp;&amp;nbsp; or&lt;br /&gt;
3.&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; esquerda&amp;nbsp;&amp;nbsp;&amp;nbsp; xor&lt;br /&gt;
4.&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; esquerda&amp;nbsp;&amp;nbsp;&amp;nbsp; and&lt;br /&gt;
5.&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; direita&amp;nbsp;&amp;nbsp;&amp;nbsp; print&lt;br /&gt;
6.&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; esquerda&amp;nbsp;&amp;nbsp;&amp;nbsp; = += -= *= /= .= %= &amp;amp;= != ~= &amp;lt;&amp;lt;= &amp;gt;&amp;gt;=&lt;br /&gt;
7.&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; esquerda&amp;nbsp;&amp;nbsp;&amp;nbsp; ? :&lt;br /&gt;
8.&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; esquerda&amp;nbsp;&amp;nbsp;&amp;nbsp; ||&lt;br /&gt;
9.&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; esquerda&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;&amp;amp;&lt;br /&gt;
10.&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; esquerda&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;br /&gt;
11.&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; esquerda&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;br /&gt;
12.&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; esquerda&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;&lt;br /&gt;
13.&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; não associa&amp;nbsp;&amp;nbsp;&amp;nbsp; == !=&lt;br /&gt;
14.&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; não associa&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt; &amp;lt;= &amp;gt; &amp;gt;=&lt;br /&gt;
15.&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; esquerda&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt; &amp;gt;&amp;gt;&lt;br /&gt;
16.&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; esquerda&amp;nbsp;&amp;nbsp;&amp;nbsp; + - .&lt;br /&gt;
17.&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; esquerda&amp;nbsp;&amp;nbsp;&amp;nbsp; * / %&lt;br /&gt;
18.&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; direita&amp;nbsp;&amp;nbsp;&amp;nbsp; ! ~ ++ -- (int) (double) (string) (array) (object) @&lt;br /&gt;
19.&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; direita&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;br /&gt;
20.&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; não associa&amp;nbsp;&amp;nbsp;&amp;nbsp; new&lt;br /&gt;
&lt;br /&gt;
7. Estruturas de Controle&lt;br /&gt;
&lt;br /&gt;
As estruturas que veremos a seguir são comuns para as linguagens de programação imperativas, bastando, portanto, descrever a sintaxe de cada uma delas, resumindo o funcionamento.&lt;br /&gt;
&lt;br /&gt;
Blocos&lt;br /&gt;
Um bloco consiste de vários comandos agrupados com o objetivo de relacioná-los com determinado comando ou função. Em comandos como if, for, while, switch e em declarações de funções blocos podem ser utilizados para permitir que um comando faça parte do contexto desejado. Blocos em PHP são delimitados pelos caracteres &quot;{&quot; e &quot;}&quot;. A utilização dos delimitadores de bloco em uma parte qualquer do código não relacionada com os comandos citados ou funções não produzirá efeito algum, e será tratada normalmente pelo interpretador.&lt;br /&gt;
Exemplo:&lt;br /&gt;
if ($x == $y)&lt;br /&gt;
&amp;nbsp; comando1;&lt;br /&gt;
&amp;nbsp; comando2;&lt;br /&gt;
&lt;br /&gt;
Para que comando2 esteja relacionado ao if é preciso utilizar um bloco:&lt;br /&gt;
&lt;br /&gt;
if ($x == $y){&lt;br /&gt;
&amp;nbsp; comando1;&lt;br /&gt;
&amp;nbsp; comando2;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Comandos de seleção&lt;br /&gt;
&lt;br /&gt;
Também chamados de condicionais, os comandos de seleção permitem executar comandos ou blocos de comandos com base em testes feitos durante a execução.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
if&lt;br /&gt;
&lt;br /&gt;
O mais trivial dos comandos condicionais é o if. Ele testa a condição e executa o comando indicado se o resultado for true (valor diferente de zero). Ele possui duas sintaxes:&lt;br /&gt;
&lt;br /&gt;
if (expressão)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; comando;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
if (expressão):&lt;br /&gt;
&amp;nbsp;&amp;nbsp; comando;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; . . .&lt;br /&gt;
&amp;nbsp;&amp;nbsp; comando;&lt;br /&gt;
endif;&lt;br /&gt;
&lt;br /&gt;
Para incluir mais de um comando no if da primeira sintaxe, é preciso utilizar um bloco, demarcado por chaves. &lt;br /&gt;
&lt;br /&gt;
O else é um complemento opcional para o if. Se utilizado, o comando será executado se a expressão retornar o valor false (zero). Suas duas sintaxes são:&lt;br /&gt;
&lt;br /&gt;
if (expressão)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; comando;&lt;br /&gt;
else&lt;br /&gt;
&amp;nbsp;&amp;nbsp; comando;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
if (expressão):&lt;br /&gt;
&amp;nbsp;&amp;nbsp; comando;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; . . .&lt;br /&gt;
&amp;nbsp;&amp;nbsp; comando;&lt;br /&gt;
else&lt;br /&gt;
&amp;nbsp;&amp;nbsp; comando;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; . . .&lt;br /&gt;
&amp;nbsp;&amp;nbsp; comando;&lt;br /&gt;
endif;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A seguir, temos um exemplo do comando if utilizado com else:&lt;br /&gt;
&lt;br /&gt;
if ($a &amp;gt; $b)&lt;br /&gt;
&amp;nbsp; $maior = $a;&lt;br /&gt;
else&lt;br /&gt;
&amp;nbsp; $maior = $b;&lt;br /&gt;
&lt;br /&gt;
O exemplo acima coloca em $maior o maior valor entre $a e $b&lt;br /&gt;
&lt;br /&gt;
Em determinadas situações é necessário fazer mais de um teste, e executar condicionalmente diversos comandos ou blocos de comandos. Para facilitar o entendimento de uma estrutura do tipo:&lt;br /&gt;
&lt;br /&gt;
if (expressao1)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; comando1;&lt;br /&gt;
else&amp;nbsp; &lt;br /&gt;
&amp;nbsp; if (expressao2)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; comando2;&lt;br /&gt;
&amp;nbsp; else&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (expressao3)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; comando3;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; comando4;&lt;br /&gt;
&lt;br /&gt;
foi criado o comando, também opcional elseif. Ele tem a mesma função de um else e um if usados sequencialmente, como no exemplo acima. Num mesmo if podem ser utilizados diversos elseif&#39;s, ficando essa utilização a critério do programador, que deve zelar pela legibilidade de seu script.&lt;br /&gt;
&lt;br /&gt;
O comando elseif também pode ser utilizado com dois tipos de sintaxe. Em resumo, a sintaxe geral do comando if fica das seguintes maneiras:&lt;br /&gt;
&lt;br /&gt;
if (expressao1)&lt;br /&gt;
&amp;nbsp; comando;&lt;br /&gt;
[ elseif (expressao2)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; comando; ]&lt;br /&gt;
[ else&lt;br /&gt;
&amp;nbsp;&amp;nbsp; comando; ]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
if (expressao1) :&lt;br /&gt;
&amp;nbsp; comando;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; . . .&lt;br /&gt;
&amp;nbsp; comando;&lt;br /&gt;
[ elseif (expressao2)&lt;br /&gt;
&amp;nbsp; comando;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; . . .&lt;br /&gt;
&amp;nbsp; comando; ]&lt;br /&gt;
[ else&lt;br /&gt;
&amp;nbsp; comando;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; . . .&lt;br /&gt;
&amp;nbsp; comando; ]&lt;br /&gt;
endif;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
switch&lt;br /&gt;
&lt;br /&gt;
O comando switch atua de maneira semelhante a uma série de comandos if na mesma expressão. Frequentemente o programador pode querer comparar uma variável com diversos valores, e executar um código diferente a depender de qual valor é igual ao da variável. Quando isso for necessário, deve-se usar o comando switch. O exemplo seguinte mostra dois trechos de código que fazem a mesma coisa, sendo que o primeiro utiliza uma série de if&#39;s e o segundo utiliza switch:&lt;br /&gt;
&lt;br /&gt;
if ($i == 0)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; print &quot;i é igual a zero&quot;;&lt;br /&gt;
elseif ($i == 1)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; print &quot;i é igual a um&quot;;&lt;br /&gt;
elseif ($i == 2)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; print &quot;i é igual a dois&quot;;&lt;br /&gt;
&lt;br /&gt;
switch ($i) {&lt;br /&gt;
case 0:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print &quot;i é igual a zero&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;
case 1:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print &quot;i é igual a um&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;
case 2:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print &quot;i é igual a dois&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
É importante compreender o funcionamento do switch para não cometer enganos. O comando switch testa linha a linha os cases encontrados, e a partir do momento que encontra um valor igual ao da variável testada, passa a executar todos os comandos seguintes, mesmo os que fazem parte de outro teste, até o fim do bloco. por isso usa-se o comando break, quebrando o fluxo e fazendo com que o código seja executado da maneira desejada. Veremos mais sobre o break mais adiante. Veja o exemplo:&lt;br /&gt;
&lt;br /&gt;
switch ($i) {&lt;br /&gt;
case 0:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print &quot;i é igual a zero&quot;;&lt;br /&gt;
case 1:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print &quot;i é igual a um&quot;;&lt;br /&gt;
case 2:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print &quot;i é igual a dois&quot;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No exemplo acima, se $i for igual a zero, os três comandos &quot;print&quot; serão executados. Se $i for igual a 1, os dois últimos &quot;print&quot; serão executados. O comando só funcionará da maneira desejada se $i for igual a 2.&lt;br /&gt;
Em outras linguagens que implementam o comando switch, ou similar, os valores a serem testados só podem ser do tipo inteiro. Em PHP é permitido usar valores do tipo string como elementos de teste do comando switch. O exemplo abaixo funciona perfeitamente:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
switch ($s) {&lt;br /&gt;
case &quot;casa&quot;:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print &quot;A casa é amarela&quot;;&lt;br /&gt;
case &quot;arvore&quot;:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print &quot;a árvore é bonita&quot;;&lt;br /&gt;
case &quot;lampada&quot;:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print &quot;joao apagou a lampada&quot;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
comandos de repetição&lt;br /&gt;
while&lt;br /&gt;
O while é o comando de repetição (laço) mais simples. Ele testa uma condição e executa um comando, ou um bloco de comandos, até que a condição testada seja falsa. Assim como o if, o while também possui duas sintaxes alternativas:&lt;br /&gt;
&lt;br /&gt;
while (&amp;lt;expressao&amp;gt;)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;lt;comando&amp;gt;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
while (&amp;lt;expressao&amp;gt;):&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;lt;comando&amp;gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; . . .&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;lt;comando&amp;gt;;&lt;br /&gt;
endwhile;&lt;br /&gt;
&lt;br /&gt;
A expressão só é testada a cada vez que o bloco de instruções termina, além do teste inicial. Se o valor da expressão passar a ser false no meio do bloco de instruções, a execução segue até o final do bloco. Se no teste inicial a condição for avaliada como false, o bloco de comandos não será executado.&lt;br /&gt;
O exemplo a seguir mostra o uso do while para imprimir os números de 1 a 10:&lt;br /&gt;
$i = 1;&lt;br /&gt;
while ($i &amp;lt;=10)&lt;br /&gt;
&amp;nbsp; print $i++;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
do... while&lt;br /&gt;
&lt;br /&gt;
O laço do..while funciona de maneira bastante semelhante ao while, com a simples diferença que a expressão é testada ao final do bloco de comandos. O laço do..while possui apenas uma sintaxe, que é a seguinte:&lt;br /&gt;
&lt;br /&gt;
do {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;lt;comando&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; . . .&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;lt;comando&amp;gt;&lt;br /&gt;
} while (&amp;lt;expressao&amp;gt;);&lt;br /&gt;
&lt;br /&gt;
O exemplo utilizado para ilustrar o uso do while pode ser feito da seguinte maneira utilizando o do.. while:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
$i = 0;&lt;br /&gt;
do {&lt;br /&gt;
&amp;nbsp; print ++$i;&lt;br /&gt;
} while ($i &amp;lt; 10);&lt;br /&gt;
&lt;br /&gt;
for&lt;br /&gt;
&lt;br /&gt;
O tipo de laço mais complexo é o for. Para os que programam em C, C++ ou Java, a assimilação do funcionamento do for é natural. Mas para aqueles que estão acostumados a linguagens como Pascal, há uma grande mudança para o uso do for. As duas sintaxes permitidas são:&lt;br /&gt;
&lt;br /&gt;
for (&amp;lt;inicializacao&amp;gt;;&amp;lt;condicao&amp;gt;;&amp;lt;incremento&amp;gt;)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;lt;comando&amp;gt;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
for (&amp;lt;inicializacao&amp;gt;;&amp;lt;condicao&amp;gt;;&amp;lt;incremento&amp;gt;) :&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;lt;comando&amp;gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; . . . &lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;lt;comando&amp;gt;;&lt;br /&gt;
endfor;&lt;br /&gt;
&lt;br /&gt;
As três expressões que ficam entre parênteses têm as seguintes finalidades:&lt;br /&gt;
&lt;br /&gt;
Inicialização: comando ou sequencia de comandos a serem realizados antes do inicio do laço. Serve para inicializar variáveis.&lt;br /&gt;
Condição: Expressão booleana que define se os comandos que estão dentro do laço serão executados ou não. Enquanto a expressão for verdadeira (valor diferente de zero) os comandos serão executados.&lt;br /&gt;
Incremento: Comando executado ao final de cada execução do laço.&lt;br /&gt;
Um comando for funciona de maneira semelhante a um while escrito da seguinte forma:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;inicializacao&amp;gt;&lt;br /&gt;
while (&amp;lt;condicao&amp;gt;) {&lt;br /&gt;
comandos&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;incremento&amp;gt;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Quebra de fluxo&lt;br /&gt;
&lt;br /&gt;
Break&lt;br /&gt;
O comando break pode ser utilizado em laços de do, for e while, além do uso já visto no comando switch. Ao encontrar um break dentro de um desses laços, o interpretador PHP para imediatamente a execução do laço, seguindo normalmente o fluxo do script.&lt;br /&gt;
while ($x &amp;gt; 0) {&lt;br /&gt;
&amp;nbsp; ...&lt;br /&gt;
&amp;nbsp; if ($x == 20) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &quot;erro! x = 20&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;
&amp;nbsp; ...&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
No trecho de código acima, o laço while tem uma condição para seu término normal ($x &amp;lt;= 0), mas foi utilizado o break para o caso de um término não previsto no início do laço. Assim o interpretador seguirá para o comando seguinte ao laço.&lt;br /&gt;
&lt;br /&gt;
Continue&lt;br /&gt;
&lt;br /&gt;
O comando continue também deve ser utilizado no interior de laços, e funciona de maneira semelhante ao break, com a diferença que o fluxo ao invés de sair do laço volta para o início dele. Vejamos o exemplo:&lt;br /&gt;
&lt;br /&gt;
for ($i = 0; $i &amp;lt; 100; $i++) {&lt;br /&gt;
&amp;nbsp; if ($i % 2) continue;&lt;br /&gt;
&amp;nbsp; echo &quot; $i &quot;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
O exemplo acima é uma maneira ineficiente de imprimir os números pares entre 0 e 99. O que o laço faz é testar se o resto da divisão entre o número e 2 é 0. Se for diferente de zero (valor lógico true) o interpretador encontrará um continue, que faz com que os comandos seguintes do interior do laço sejam ignorados, seguindo para a próxima iteração.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
8. Funções&lt;br /&gt;
&lt;br /&gt;
Definindo funções&lt;br /&gt;
&lt;br /&gt;
A sintaxe básica para definir uma função é:&lt;br /&gt;
&lt;br /&gt;
function nome_da_função([arg1, arg2, arg3]) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Comandos;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ... ;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; [return &amp;lt;valor de retorno&amp;gt;];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Qualquer código PHP válido pode estar contido no interior de uma função. Como a checagem de tipos em PHP é dinâmica, o tipo de retorno não deve ser declarado, sendo necessário que o programador esteja atento para que a função retorne o tipo desejado. É recomendável que esteja tudo bem documentado para facilitar a leitura e compreensão do código. Para efeito de documentação, utiliza-se o seguinte formato de declaração de função:&lt;br /&gt;
&lt;br /&gt;
tipo function nome_da_funcao(tipo arg1, tipo arg2, ...);&lt;br /&gt;
&lt;br /&gt;
Este formato só deve ser utilizado na documentação do script, pois o PHP não aceita a declaração de tipos. Isso significa que em muitos casos o programador deve estar atento ao tipos dos valores passados como parâmetros, pois se não for passado o tipo esperado não é emitido nenhum alerta pelo interpretador PHP, já que este não testa os tipos.&lt;br /&gt;
&lt;br /&gt;
Valor de retorno&lt;br /&gt;
&lt;br /&gt;
Toda função pode opcionalmente retornar um valor, ou simplesmente executar os comandos e não retornar valor algum.&lt;br /&gt;
Não é possível que uma função retorne mais de um valor, mas é permitido fazer com que uma função retorne um valor composto, como listas ou arrays.&lt;br /&gt;
&lt;br /&gt;
Argumentos&lt;br /&gt;
&lt;br /&gt;
É possível passar argumentos para uma função. Eles devem ser declarados logo após o nome da função, entre parênteses, e tornam-se variáveis pertencentes ao escopo local da função. A declaração do tipo de cada argumento também é utilizada apenas para efeito de documentação.&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
&lt;br /&gt;
function imprime($texto){&lt;br /&gt;
&amp;nbsp;&amp;nbsp; echo $texto;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
imprime(&quot;teste de funções&quot;);&lt;br /&gt;
&lt;br /&gt;
Passagem de parâmetros por referência&lt;br /&gt;
&lt;br /&gt;
Normalmente, a passagem de parâmetros em PHP é feita por valor, ou seja, se o conteúdo da variável for alterado, essa alteração não afeta a variável original.&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
&lt;br /&gt;
function mais5($numero) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; $numero += 5;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
$a = 3;&lt;br /&gt;
mais5($a); //$a continua valendo 3&lt;br /&gt;
&lt;br /&gt;
No exemplo acima, como a passagem de parâmetros é por valor, a função mais5 é inútil, já que após a execução sair da função o valor anterior da variável é recuperado. Se a passagem de valor fosse feita por referência, a variável $a teria 8 como valor. O que ocorre normalmente é que ao ser chamada uma função, o interpretador salva todo o escopo atual, ou seja, os conteúdos das variáveis. Se uma dessas variáveis for passada como parâmetro, seu conteúdo fica preservado, pois a função irá trabalhar na verdade com uma cópia da variável. Porém, se a passagem de parâmetros for feita por referência, toda alteração que a função realizar no valor passado como parâmetro afetará a variável que o contém.&lt;br /&gt;
Há duas maneiras de fazer com que uma função tenha parâmetros passados por referência: indicando isso na declaração da função, o que faz com que a pasagem de parâmetros sempre seja assim; e também na própria chamada da função. Nos dois casos utiliza-se o modificador &quot;&amp;amp;&quot;. Vejamos um exemplo que ilustra os dois casos:&lt;br /&gt;
&lt;br /&gt;
function mais5(&amp;amp;$num1, $num2) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; $num1 += 5;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; $num2 += 5;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
$a = $b = 1;&lt;br /&gt;
mais5($a, $b); /* Neste caso, só $num1 terá seu valor alterado, pois a passagem por referência está definida na declaração da função. */&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mais5($a, &amp;amp;$b); /* Aqui as duas variáveis terão seus valores alterados. */&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Argumentos com valores pré-definidos (default)&lt;br /&gt;
&lt;br /&gt;
Em PHP é possível ter valores default para argumentos de funções, ou seja, valores que serão assumidos em caso de nada ser passado no lugar do argumento. Quando algum parâmetro é declarado desta maneira, a passagem do mesmo na chamada da função torna-se opcional.&lt;br /&gt;
&lt;br /&gt;
function teste($vivas = &quot;testando&quot;) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; echo $vivas;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
teste(); // imprime &quot;testando&quot;&lt;br /&gt;
teste(&quot;outro teste&quot;); // imprime &quot;outro teste&quot;&lt;br /&gt;
&lt;br /&gt;
É bom lembrar que quando a função tem mais de um parâmetro, o que tem valor default deve ser declarado por último:&lt;br /&gt;
&lt;br /&gt;
function teste($figura = circulo, $cor) {&lt;br /&gt;
&amp;nbsp; echo &quot;a figura é um &quot;, $figura, &quot; de cor &quot; $cor;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
teste(azul); &lt;br /&gt;
/* A função não vai funcionar da maneira esperada, ocorrendo um erro no interpretador. A declaração correta é: */&lt;br /&gt;
&lt;br /&gt;
function teste2($cor, $figura = circulo) {&lt;br /&gt;
&amp;nbsp; echo &quot;a figura é um &quot;, $figura, &quot; de cor &quot; $cor;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
teste2(azul);&lt;br /&gt;
&lt;br /&gt;
/* Aqui a funcao funciona da maneira esperada, ou seja, imprime o texto: &quot;a figura é um círculo de cor azul&quot; */&lt;br /&gt;
&lt;br /&gt;
Contexto&lt;br /&gt;
O contexto é o conjunto de variáveis e seus respectivos valores num determinado ponto do programa. Na chamada de uma função, ao iniciar a execução do bloco que contém a implementação da mesma é criado um novo contexto, contendo as variáveis declaradas dentro do bloco, ou seja, todas as variáveis utilizadas dentro daquele bloco serão eliminadas ao término da execução da função. &lt;br /&gt;
Escopo&lt;br /&gt;
O escopo de uma variável em PHP define a porção do programa onde ela pode ser utilizada. Na maioria dos casos todas as variáveis têm escopo global. Entretanto, em funções definidas pelo usuário um escopo local é criado. Uma variável de escopo global não pode ser utilizada no interior de uma função sem que haja uma declaração.&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
$vivas = &quot;Testando&quot;;&lt;br /&gt;
&lt;br /&gt;
function Teste() {&lt;br /&gt;
&amp;nbsp; echo $vivas;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Teste();&lt;br /&gt;
&lt;br /&gt;
O trecho acima não produzirá saída alguma, pois a variável $vivas é de escopo global, e não pode ser referida num escopo local, mesmo que não haja outra com nome igual que cubra a sua visibilidade. Para que o script funcione da forma desejada, a variável global a ser utilizada deve ser declarada.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
$vivas = &quot;Testando&quot;;&lt;br /&gt;
&lt;br /&gt;
function Teste() {&lt;br /&gt;
&amp;nbsp; global $vivas;&lt;br /&gt;
&amp;nbsp; echo $vivas;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Teste();&lt;br /&gt;
&lt;br /&gt;
Uma declaração &quot;global&quot; pode conter várias variáveis, separadas por vírgulas. Uma outra maneira de acessar variáveis de escopo global dentro de uma função é utilizando um array pré-definido pelo PHP cujo nome é $GLOBALS. O índice para a variável referida é o proprio nome da variável, sem o caracter $. O exemplo acima e o abaixo produzem o mesmo resultado:&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
$vivas = &quot;Testando&quot;;&lt;br /&gt;
&lt;br /&gt;
function Teste() {&lt;br /&gt;
&amp;nbsp; echo $GLOBALS[&quot;vivas&quot;]; // imprime $vivas&lt;br /&gt;
&amp;nbsp; echo $vivas; // não imprime nada &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Teste();&lt;br /&gt;
&lt;br /&gt;
9. Variáveis&lt;br /&gt;
&lt;br /&gt;
O modificador static&lt;br /&gt;
&lt;br /&gt;
Uma variável estática é visível num escopo local, mas ela é inicializada apenas uma vez e&amp;nbsp; seu valor não é perdido quando a execução do script deixa esse escopo. Veja o seguinte exemplo:&lt;br /&gt;
&lt;br /&gt;
function Teste() {&lt;br /&gt;
&amp;nbsp; $a = 0;&lt;br /&gt;
&amp;nbsp; echo $a;&lt;br /&gt;
&amp;nbsp; $a++;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
O último comando da função é inútil, pois assim que for encerrada a execução da função a variável $a perde seu valor. Já no exemplo seguinte, a cada chamada da função a variável $a terá seu valor impresso e será incrementada:&lt;br /&gt;
&lt;br /&gt;
function Teste() {&lt;br /&gt;
&amp;nbsp; static $a = 0;&lt;br /&gt;
&amp;nbsp; echo $a;&lt;br /&gt;
&amp;nbsp; $a++;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
O modificador static é muito utilizado em funções recursivas, já que o valor de algumas variáveis precisa ser mantido. Ele funciona da seguinte forma: O valor das variáveis declaradas como estáticas é mantido ao terminar a execução da função. Na próxima execução da função, ao encontrar novamente a declaração com static, o valor da variável é recuperado.&lt;br /&gt;
Em outras palavras, uma variável declarada como static tem o mesmo &quot;tempo de vida&quot; que uma variável global, porém sua visibilidade é restrita ao escopo local em que foi declarada e só é recuperada após a declaração.&lt;br /&gt;
Exemplo: &lt;br /&gt;
function Teste() {&lt;br /&gt;
&amp;nbsp; echo &quot;$a&quot;;&lt;br /&gt;
&amp;nbsp; static $a = 0;&lt;br /&gt;
&amp;nbsp; $a++;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
O exemplo acima não produzirá saída alguma. Na primeira execução da função, a impressão ocorre antes da atribuição de um valor à função, e portanto o conteúdo de $a é nulo (string vazia). Nas execuções seguintes da função Teste() a impressão ocorre antes da recuperação do valor de $a, e portanto nesse momento seu valor ainda é nulo. Para que a função retorne algum valor o modificador static deve ser utilizado.&lt;br /&gt;
&lt;br /&gt;
Variáveis Variáveis&lt;br /&gt;
&lt;br /&gt;
O PHP tem um recurso conhecido como variáveis variáveis, que consiste em variáveis cujos nomes também são variáveis. Sua utilização é feita através do duplo cifrão ($$).&lt;br /&gt;
$a = &quot;teste&quot;;&lt;br /&gt;
$$a = &quot;Mauricio Vivas&quot;;&lt;br /&gt;
&lt;br /&gt;
O exemplo acima e equivalente ao seguinte:&lt;br /&gt;
&lt;br /&gt;
$a = &quot;teste&quot;;&lt;br /&gt;
$teste = &quot;Mauricio Vivas&quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Variáveis enviadas pelo navegador&lt;br /&gt;
&lt;br /&gt;
Para interagir com a navegação feita pelo usuário, é necessário que o PHP possa enviar e receber informações para o software de navegação. A maneira de enviar informações, como já foi visto anteriormente, geralmente é através de um comando de impressão, como o echo. Para receber informações vindas do navegador através de um link ou um formulário html o PHP utiliza as informações&amp;nbsp; enviadas através da URL. Por exemplo: se seu script php está localizado em &quot;http://localhost/teste.php3&quot; e você o chama com a url &quot;http://localhost/teste.php3?vivas=teste&quot;, automaticamente o PHP criará uma variável com o nome $vivas contendo a string &quot;teste&quot;. Note que o conteúdo da variável está no formato urlencode. Os formulários html já enviam informações automaticamente nesse formato, e o PHP decodifica sem necessitar de tratamento pelo programador.&lt;br /&gt;
&lt;br /&gt;
URLencode&lt;br /&gt;
&lt;br /&gt;
O formato urlencode é obtido substituindo os espaços pelo caracter &quot;+&quot; e todos os outros caracteres não alfa-numéricos (com exceção de &quot;_&quot;) pelo caracter &quot;%&quot; seguido do código ASCII em hexadecimal.&lt;br /&gt;
&lt;br /&gt;
Por exemplo: o texto &quot;Testando 1 2 3 !!&quot; em urlencode fica &quot;Testando+1+2+3+%21%21&quot;&lt;br /&gt;
&lt;br /&gt;
O PHP possui duas funções para tratar com texto em urlencode. Seguem suas sintaxes:&lt;br /&gt;
&lt;br /&gt;
string urlencode(string texto);&lt;br /&gt;
string urldecode(string texto);&lt;br /&gt;
&lt;br /&gt;
Essas funções servem respectivamente para codificar ou decodificar um texto passado como argumento. Para entender melhor o que é um argumento e como funciona uma função, leia o tópico &quot;funções&quot;.&lt;br /&gt;
&lt;br /&gt;
Variáveis de ambiente&lt;br /&gt;
&lt;br /&gt;
O PHP possui diversas variáveis de ambiente, como a $PHP_SELF, por exemplo, que contém o nome e o path do próprio arquivo. Algumas outras contém informações sobre o navegador do usuário, o servidor http, a versão do PHP e diversas informações. Para ter uma listagem de todas as variáveis e constantes de ambiente e seus respectivos conteúdos, deve-se utilizar a função phpinfo().&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Verificando o tipo de uma variável&lt;br /&gt;
Por causa da tipagem dinâmica utilizada pelo PHP, nem sempre é possível saber qual o tipo de uma variável em determinado instantese não contar com a ajuda de algumas funções que ajudam a verificar isso. A verificação pode ser feita de duas maneiras:&lt;br /&gt;
&lt;br /&gt;
Função que retorna o tipo da variável&lt;br /&gt;
&lt;br /&gt;
Esta função é a gettype. Sua assinatura é a seguinte:&lt;br /&gt;
&lt;br /&gt;
string gettype(mixed var);&lt;br /&gt;
&lt;br /&gt;
A palavra &quot;mixed&quot; indica que a variável var pode ser de diversos tipos.&lt;br /&gt;
A função gettype pode retornar as seguintes strings: &quot;integer&quot;, &quot;double&quot;, &quot;string&quot;, &quot;array&quot;, &quot;object&quot; e &quot;unknown type&quot;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Funções que testam o tipo da variável&lt;br /&gt;
&lt;br /&gt;
São as funções is_int, is_integer, is_real, is_long, is_float, is_string, is_array e is_object. Todas têm o mesmo formato, seguindo modelo da assinatura a seguir:&lt;br /&gt;
&lt;br /&gt;
int is_integer(mixed var);&lt;br /&gt;
&lt;br /&gt;
Todas essas funções retornam true se a variável for daquele tipo, e false em caso contrário.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Destruindo uma variável&lt;br /&gt;
&lt;br /&gt;
É possível desalocar uma variável se ela não for usada posteriormente através da função unset, que tem a seguinte assinatura:&lt;br /&gt;
&lt;br /&gt;
int unset(mixed var);&lt;br /&gt;
&lt;br /&gt;
A função destrói a variável, ou seja, libera a memória ocupada por ela, fazendo com que ela deixe de existir. Se mais na frente for feita uma chamada á variável, será criada uma nova variável de mesmo nome e de conteúdo vazio, a não ser que a chamada seja pela função isset. Se a operação for bem sucedida, retorna true.&lt;br /&gt;
&lt;br /&gt;
Verificando se uma variável possui um valor&lt;br /&gt;
&lt;br /&gt;
Existem dois tipos de teste que podem ser feitos para verificar se uma variável está setada: com a função isset e com a função empty.&lt;br /&gt;
A função isset&lt;br /&gt;
&lt;br /&gt;
Possui o seguinte protótipo:&lt;br /&gt;
&lt;br /&gt;
int isset(mixed var);&lt;br /&gt;
&lt;br /&gt;
E retorna true se a variável estiver setada (ainda que com uma string vazia ou o valor zero), e false em caso contrário.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A função empty&lt;br /&gt;
&lt;br /&gt;
Possui a seguinte assinatura:&lt;br /&gt;
&lt;br /&gt;
int empty(mixed var);&lt;br /&gt;
&lt;br /&gt;
E retorna true se a variável não contiver um valor (não estiver setada) ou possuir valor 0 (zero) ou uma string vazia. Caso contrário, retorna false.&lt;br /&gt;
&lt;br /&gt;
10. Classes e Objetos&lt;br /&gt;
&lt;br /&gt;
Classe&lt;br /&gt;
Uma classe é um conjunto de variáveis e funções relacionadas a essas variáveis. Uma vantagem da utilização é poder usufruir do recurso de encapsulamento de informação. Com o encapsulamento o usuário de uma classe não precisa saber como ela é implementada, bastando para a utilização conhecer a interface, ou seja, as funções disponíveis. Uma classe é um tipo, e portanto não pode ser atribuída a uma variável. Para definir uma classe, deve-se utilizar a seguinte sintaxe:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
class Nome_da_classe {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; var $variavel1; &lt;br /&gt;
&amp;nbsp;&amp;nbsp; var $variavel2;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; function funcao1 ($parametro) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; /* === corpo da função === */&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
Objeto&lt;br /&gt;
Como foi dito anteriormente, classes são tipos, e não podem ser atribuídas a variáveis. Variáveis do tipo de uma classe são chamadas de objetos, e devem ser criadas utilizando o operador new, seguindo o exemplo abaixo:&lt;br /&gt;
&lt;br /&gt;
$variavel = new $nome_da_classe;&lt;br /&gt;
&lt;br /&gt;
Para&amp;nbsp; utilizar&amp;nbsp; as&amp;nbsp; funções definidas na classe, deve ser utilizado o operador &quot;-&amp;gt;&quot;, como no exemplo:&lt;br /&gt;
$variavel-&amp;gt;funcao1(&lt;br /&gt;
&lt;br /&gt;
A variável $this&lt;br /&gt;
Na definição de uma classe, pode-se utilizar a variável $this, que é o próprio objeto. Assim, quando uma classe é instanciada em um objeto, e uma função desse objeto na definição da classe utiliza a variável $this, essa variável significa o objeto que estamos utilizando.&lt;br /&gt;
&lt;br /&gt;
Como exemplo da utilização de classes e objetos, podemos utilizar a classe conta, que define uma conta bancária bastante simples, com funções para ver saldo e fazer um crédito.&lt;br /&gt;
&lt;br /&gt;
class conta {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; var $saldo;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; function saldo() {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return $this-&amp;gt;saldo;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp; function credito($valor) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $this-&amp;gt;saldo += $valor;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
$minhaconta = new conta; &lt;br /&gt;
$minhaconta-&amp;gt;saldo();&amp;nbsp;&amp;nbsp;&amp;nbsp; // a variavel interna não foi&lt;br /&gt;
// inicializada, e não contém&lt;br /&gt;
// valor algum&lt;br /&gt;
$minhaconta-&amp;gt;credito(50);&lt;br /&gt;
$minhaconta-&amp;gt;saldo(); // retorna 50&lt;br /&gt;
&lt;br /&gt;
SubClasses&lt;br /&gt;
Uma classe pode ser uma extensão de outra. Isso significa que ela herdará todas as variáveis e funções da outra classe, e ainda terá as que forem adicionadas pelo programador. Em PHP não é permitido utilizar herança múltipla, ou seja, uma classe pode ser extensão de apenas uma outra.Para criar uma classe extendida, ou derivada de outra, deve ser utilizada a palavra reservada extends, como pode ser visto no exemplo seguinte:&lt;br /&gt;
&lt;br /&gt;
class novaconta extends conta {&lt;br /&gt;
&amp;nbsp; var $numero;&lt;br /&gt;
&amp;nbsp; function numero() {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return $this-&amp;gt;numero;&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
A classe acima é derivada da classe conta, tendo as mesmas funções e variáveis, com a adição da variável $numero e a função numero().&lt;br /&gt;
Construtores&lt;br /&gt;
Um construtor é uma função definida na classe que é automaticamente chamada no momento em que a classe é instanciada (através do operador new). O construtor deve ter o mesmo nome que a classe a que pertence. Veja o exemplo:&lt;br /&gt;
&lt;br /&gt;
class conta {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; var $saldo;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; function conta () {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $this.saldo = 0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; function saldo() {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return $this-&amp;gt;saldo;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp; function credito($valor) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $this-&amp;gt;saldo += $valor;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Podemos perceber que a classe conta agora possui um construtor, que inicializa a variável $saldo com o valor 0.&lt;br /&gt;
Um construtor pode conter argumentos, que são opcionais, o que torna esta ferramenta mais poderosa. No exemplo acima, o construtor da classe conta pode receber como argumento um valor, que seria o valor inicial da conta.&lt;br /&gt;
Vale observar que para classes derivadas, o construtor da classe pai não é automaticamente herdado quando o construtor da classe derivada é chamado.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
12. Conclusões&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A realização deste Projeto Supervisionado possibilitou o estudo da linguagem PHP, que se mostrou uma ferramenta poderosa e simples de utilizar na construção de sites para a World Wide Web dinâmicos, possibilitando uma maior interação com o usuário e a armazenagem das informações em Bancos de Dados.&lt;br /&gt;
Após a conclusão da aplicação, tornou-se claro que a combinação de scripts server-side, como é o PHP, com scripts client-side, como JavaScript, por exemplo, possibilita um maior aproveitamento dos recursos disponíveis para criar páginas dinâmicas, e no processo de criação deve-se ponderar bastante para concluir qual dos dois tipos de scripts deve ser utilizado para determinado fim.&lt;br /&gt;
Entre as linguagens de script server-side, PHP surgiu como uma ótima opção, por diversos motivos: o custo de aquisição, que não existe; a portabilidade, permitindo que uma aplicação seja desenvolvida em uma plataforma para ser executada em outra; a simplicidade, já que os scripts ficam no próprio código html, e possuem uma sintaxe bastante simples; a possibilidade de trabalhar com diversos bancos de dados e servidores http, além do grande número de funções pré-definidas, entre outras coisas.&lt;br /&gt;
Por esses e outros motivos, é possível afirmar que o estudo sobre PHP foi bastante enriquecedor, por ter produzido uma documentação em português para a linguagem e ter motivado o aluno a continuar se dedicando ao tema.&lt;br /&gt;
&lt;br /&gt;
13. Bibliografia e Referências&lt;br /&gt;
&lt;br /&gt;
A pesquisa foi baseada no manual de PHP, disponível em www.php.net, e em diversos tutoriais disponíveis no site www.phpbuilder.com. Esses dois endereços contém uma vasta documentação sobre a linguagem, além de endereços para listas de discussão, onde pode-se solicitar ajuda de programadores mais experientes.&lt;br /&gt;
Uma boa referência em português é a lista &quot;PHP para quem fala Português&quot;, que pode ser assinada no endereço www.egroups.com/group/php-pt/.&lt;br /&gt;
Em inglês, além dos endereços citados acima, uma boa fonte é o site PHPWizard, que pode ser encontrado em www.phpwizard.net.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
APÊNDICE 01 - Funções para tratamento de strings&lt;br /&gt;
&lt;br /&gt;
Funções relacionadas a HTML&lt;br /&gt;
htmlspecialchars&lt;br /&gt;
string htmlspecialchars(string str);&lt;br /&gt;
&lt;br /&gt;
Retorna a string fornecida, substituindo os seguintes caracteres:&lt;br /&gt;
&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp; para &#39;&amp;amp;amp;&#39;&lt;br /&gt;
&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot; para &#39;&amp;amp;quot;&#39;&lt;br /&gt;
&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt; para &#39;&amp;amp;lt;&#39;&lt;br /&gt;
&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt; para &#39;&amp;amp;gt;&#39;&lt;br /&gt;
&lt;br /&gt;
htmlentities&lt;br /&gt;
string htmlentities(string str);&lt;br /&gt;
&lt;br /&gt;
Funciona de maneira semelhante ao comando anterior, mas de maneira mais completa, pois converte todos os caracteres da string que possuem uma representação especial em html, como por exemplo:&lt;br /&gt;
&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; º para &#39;&amp;amp;ordm;&#39;&lt;br /&gt;
&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; ª para &#39;&amp;amp;ordf;&#39;&lt;br /&gt;
&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; á para &#39;&amp;amp;aacute;&#39;&lt;br /&gt;
&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; ç para &#39;&amp;amp;ccedil;&#39;&lt;br /&gt;
&lt;br /&gt;
nl2br&lt;br /&gt;
string nl2br(string str);&lt;br /&gt;
&lt;br /&gt;
Retorna a string fornecida substituindo todas as quebras de linha (&quot;\n&quot;) por quebras de linhas em html (&quot;&amp;lt;br&amp;gt;&quot;).&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
echo nl2br(&quot;Mauricio\nVivas\n&quot;);&lt;br /&gt;
&lt;br /&gt;
Imprime:&lt;br /&gt;
Maurício&amp;lt;br&amp;gt;Vivas&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
get_meta_tags&lt;br /&gt;
array get_meta_tags(string arquivo);&lt;br /&gt;
&lt;br /&gt;
Abre um arquivo html e percorre o cabeçalho em busca de &quot;meta&quot; tags, retornando num array todos os valores encontrados.&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
No arquivo teste.html temos:&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;meta name=&quot;author&quot; content=&quot;jose&quot;&amp;gt;&lt;br /&gt;
&amp;lt;meta name=&quot;tags&quot; content=&quot;php3 documentation&quot;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/head&amp;gt;&amp;lt;!-- busca encerra aqui --&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
a execução da função:&lt;br /&gt;
&lt;br /&gt;
get_meta_tags(&quot;teste.html&quot;);&lt;br /&gt;
&lt;br /&gt;
retorna o array:&lt;br /&gt;
&lt;br /&gt;
array(&quot;author&quot;=&amp;gt;&quot;jose&quot;,&quot;tags&quot;=&amp;gt;&quot;php3 documentation&quot;);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
strip_tags&lt;br /&gt;
string strip_tags(string str);&lt;br /&gt;
&lt;br /&gt;
Retorna a string fornecida, retirando todas as tags html e/ou PHP encontradas.&lt;br /&gt;
Exemplo:&lt;br /&gt;
strip_tags(&#39;&amp;lt;a href=&quot;teste1.php3&quot;&amp;gt;testando&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&#39;);&lt;br /&gt;
&lt;br /&gt;
Retorna a string &quot;testando&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
urlencode&lt;br /&gt;
string urlencode(string str);&lt;br /&gt;
&lt;br /&gt;
Retorna a string fornecida, convertida para o formato urlencode. Esta função é útil para passar variáveis para uma próxima página. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
urldecode&lt;br /&gt;
string urldecode(string str);&lt;br /&gt;
&lt;br /&gt;
Funciona de maneira inversa a urlencode, desta vez decodificando a string fornecida do formato urlencode para texto normal.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Funções relacionadas a arrays&lt;br /&gt;
&lt;br /&gt;
Implode e join&lt;br /&gt;
string implode(string separador, array partes);&lt;br /&gt;
string join(string separador, array partes);&lt;br /&gt;
&lt;br /&gt;
As duas funções são idênticas. Retornam uma string contendo todos os elementos do array fornecido separados pela string também fornecida.&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
$partes = array(&quot;a&quot;, &quot;casa número&quot;, 13, &quot;é azul&quot;);&lt;br /&gt;
$inteiro = join(&quot; &quot;,$partes);&lt;br /&gt;
&lt;br /&gt;
$inteiro passa a conter a string: &lt;br /&gt;
&quot;a casa número 13 é azul&quot;&lt;br /&gt;
&lt;br /&gt;
split&lt;br /&gt;
array split(string padrao, string str, int [limite]);&lt;br /&gt;
&lt;br /&gt;
Retorna um array contendo partes da string fornecida separadas pelo padrão fornecido, podendo limitar o número de elementos do array.&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
$data = &quot;11/14/1975&quot;;&lt;br /&gt;
$data_array = split(&quot;/&quot;,$data);&lt;br /&gt;
&lt;br /&gt;
O código acima faz com que a variável $data_array receba o valor:&lt;br /&gt;
array(11,14,1975);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
explode&lt;br /&gt;
array explode(string padrao, string str);&lt;br /&gt;
&lt;br /&gt;
Funciona de maneira bastante semelhante à função split, com a diferença que não é possível estabelecer um limite para o número de elementos do array.&lt;br /&gt;
&lt;br /&gt;
Comparações entre strings&lt;br /&gt;
similar_text&lt;br /&gt;
int similar_text(string str1, string str2, double [porcentagem]);&lt;br /&gt;
&lt;br /&gt;
Compara as duas strings fornecidas e retorna o número de caracteres coincidentes. Opcionalmente pode ser fornecida uma variável, passada por referência (ver tópico sobre funções), que receberá o valor percentual de igualdade entre as strings. Esta função é case sensitive, ou seja, maiúsculas e minúsculas são tratadas como diferentes.&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
&lt;br /&gt;
$num = similar_text(&quot;teste&quot;, &quot;testando&quot;,&amp;amp;$porc);&lt;br /&gt;
&lt;br /&gt;
As variáveis passam a ter os seguintes valores:&lt;br /&gt;
&lt;br /&gt;
$num == 4; $porc == 61.538461538462&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
strcasecmp&lt;br /&gt;
int strcasecmp(string str1, string str2);&lt;br /&gt;
&lt;br /&gt;
Compara as duas strings e retorna 0 (zero) se forem iguais, um valor maior que zero se str1 &amp;gt; str2, e um valor menor que zero se str1 &amp;lt; str2. Esta função é case insensitive, ou seja, maiúsculas e minúsculas são tratadas como iguais.&lt;br /&gt;
&lt;br /&gt;
strcmp&lt;br /&gt;
int strcasecmp(string str1, string str2);&lt;br /&gt;
&lt;br /&gt;
Funciona de maneira semelhante à função strcasecmp, com a diferença que esta é case sensitive, ou seja, maiúsculas e minúsculas são tratadas como diferentes.&lt;br /&gt;
&lt;br /&gt;
strstr&lt;br /&gt;
string strstr(string str1, string str2);&lt;br /&gt;
string strchr(string str1, string str2);&lt;br /&gt;
&lt;br /&gt;
As duas funções são idênticas. Procura a primeira ocorrência de str2 em str1. Se não encontrar, retorna uma string vazia, e se encontrar retorna todos os caracteres de str1 a partir desse ponto.&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
&lt;br /&gt;
strstr(&quot;Mauricio Vivas&quot;, &quot;Viv&quot;); // retorna &quot;Vivas&quot;&lt;br /&gt;
&lt;br /&gt;
stristr&lt;br /&gt;
string strstr(string str1, string str2);&lt;br /&gt;
&lt;br /&gt;
Funciona de maneira semelhante à função strstr, com a diferença que esta é case insensitive, ou seja, maiúsculas e minúsculas são tratadas como iguais.&lt;br /&gt;
&lt;br /&gt;
strpos&lt;br /&gt;
int strpos(string str1, string str2, int [offset] );&lt;br /&gt;
&lt;br /&gt;
Retorna a posição da primeira ocorrência de str2 em str1, ou zero se não houver. O parâmetro opcional offset determina a partir de qual caracter de str1 será efetuada a busca. Mesmo utilizando o offset, o valor de retorno é referente ao início de str1.&lt;br /&gt;
&lt;br /&gt;
strrpos&lt;br /&gt;
int strrpos(string haystack, char needle);&lt;br /&gt;
&lt;br /&gt;
Retorna a posição da última ocorrência de str2 em str1, ou zero se não houver. &lt;br /&gt;
&lt;br /&gt;
Funções para edição de strings&lt;br /&gt;
&lt;br /&gt;
chop&lt;br /&gt;
string chop(string str);&lt;br /&gt;
&lt;br /&gt;
Retira espaços e linhas em branco do final da string fornecida.&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
chop(&quot;&amp;nbsp;&amp;nbsp; Teste&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \n&amp;nbsp; \n&amp;nbsp; &quot;); // retorna &quot;&amp;nbsp;&amp;nbsp; Teste&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ltrim&lt;br /&gt;
string ltrim(string str);&lt;br /&gt;
&lt;br /&gt;
Retira espaços e linhas em branco do final da string fornecida.&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
ltrim(&quot;&amp;nbsp;&amp;nbsp; Teste&amp;nbsp; \n&amp;nbsp; \n &quot;); // retorna &quot;Teste&amp;nbsp; \n&amp;nbsp; \n&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
trim&lt;br /&gt;
string trim(string str);&lt;br /&gt;
&lt;br /&gt;
Retira espaços e linhas em branco do início e do final da string fornecida.&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
trim(&quot;&amp;nbsp;&amp;nbsp; Teste&amp;nbsp; \n&amp;nbsp; \n &quot;); // retorna &quot;Teste&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
strrev&lt;br /&gt;
string strrev(string str);&lt;br /&gt;
&lt;br /&gt;
Retorna a string fornecida invertida.&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
&lt;br /&gt;
strrev(&quot;Teste&quot;); // retorna &quot;etseT&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
strtolower&lt;br /&gt;
string strtolower(string str);&lt;br /&gt;
&lt;br /&gt;
Retorna a string fornecida com todas as letras minúsculas.&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
&lt;br /&gt;
strtolower(&quot;Teste&quot;); // retorna &quot;teste&quot;&lt;br /&gt;
&lt;br /&gt;
strtoupper&lt;br /&gt;
string strtoupper(string str);&lt;br /&gt;
&lt;br /&gt;
Retorna a string fornecida com todas as letras maiúsculas.&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
&lt;br /&gt;
strtolower(&quot;Teste&quot;); // retorna &quot;TESTE&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ucfirst&lt;br /&gt;
string ucfirst(string str);&lt;br /&gt;
&lt;br /&gt;
Retorna a string fornecida com o primeiro caracter convertido para letra maiúscula.&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
&lt;br /&gt;
ucfirst(&quot;teste de funcao&quot;); // retorna &quot;Teste de funcao&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ucwords&lt;br /&gt;
string ucwords(string str);&lt;br /&gt;
&lt;br /&gt;
Retorna a string fornecida com todas as palavras iniciadas por letras maiúsculas.&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
&lt;br /&gt;
ucwords(&quot;teste de funcao&quot;); // retorna &quot;Teste De Funcao&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
str_replace&lt;br /&gt;
string str_replace(string str1, string str2, string str3);&lt;br /&gt;
&lt;br /&gt;
Altera todas as ocorrências de str1 em str3 pela string str2. &lt;br /&gt;
&lt;br /&gt;
Funções diversas&lt;br /&gt;
&lt;br /&gt;
chr&lt;br /&gt;
string chr(int ascii);&lt;br /&gt;
&lt;br /&gt;
Retorna o caracter correspondente ao código ASCII fornecido.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ord &lt;br /&gt;
int ord(string string);&lt;br /&gt;
&lt;br /&gt;
Retorna o código ASCII correspontente ao caracter fornecido.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
echo &lt;br /&gt;
echo(string arg1, string [argn]... );&lt;br /&gt;
&lt;br /&gt;
Imprime os argumentos fornecidos.&lt;br /&gt;
&lt;br /&gt;
print &lt;br /&gt;
print(string arg);&lt;br /&gt;
&lt;br /&gt;
Imprime o argumento fornecido.&lt;br /&gt;
strlen &lt;br /&gt;
int strlen(string str);&lt;br /&gt;
&lt;br /&gt;
Retorna o tamanho da string fornecida.&lt;br /&gt;
&lt;br /&gt;
APÊNDICE 02 - Funções para tratamento de arrays&lt;br /&gt;
&lt;br /&gt;
Funções Genéricas&lt;br /&gt;
&lt;br /&gt;
Array&lt;br /&gt;
array array(...);&lt;br /&gt;
&lt;br /&gt;
É a função que cria um array a partir dos parâmetros forncidos. É possível fornecer o índice de cada elemento. Esse índice pode ser um valor de qualquer tipo, e não apenas de inteiro. Se o índice não for fornecido o PHP atribui um valor inteiro sequencial, a partir do 0 ou do último índice inteiro explicitado. Vejamos alguns exemplos:&lt;br /&gt;
&lt;br /&gt;
Exemplo 1&lt;br /&gt;
$teste = array(&quot;um&quot;, &quot;dois&quot;,&quot;tr&quot;=&amp;gt;&quot;tres&quot;,5=&amp;gt;&quot;quatro&quot;,&quot;cinco&quot;);&lt;br /&gt;
&lt;br /&gt;
Temos o seguinte mapeamento:&lt;br /&gt;
0 =&amp;gt; &quot;um&quot; (0 é o primeiro índice, se não houver um explicito)&lt;br /&gt;
1 =&amp;gt; &quot;dois&quot; (o inteiro seguinte)&lt;br /&gt;
&quot;tr&quot; =&amp;gt; &quot;tres&quot;&lt;br /&gt;
5 =&amp;gt; &quot;quatro&quot; (valor explicitado)&lt;br /&gt;
6 =&amp;gt; &quot;cinco&quot; (o inteiro seguinte ao último atribuído, e não o próximo valor, que seria 2)&lt;br /&gt;
&lt;br /&gt;
Exemplo 2&lt;br /&gt;
$teste = array(&quot;um&quot;, 6=&amp;gt;&quot;dois&quot;,&quot;tr&quot;=&amp;gt;&quot;tres&quot;,5=&amp;gt;&quot;quatro&quot;,&quot;cinco&quot;);&lt;br /&gt;
&lt;br /&gt;
Temos o seguinte mapeamento:&lt;br /&gt;
0 =&amp;gt; &quot;um&quot;&lt;br /&gt;
6 =&amp;gt; &quot;dois&quot;&lt;br /&gt;
&quot;tr&quot; =&amp;gt; tres&lt;br /&gt;
5 =&amp;gt; &quot;quatro&quot; (seria 7, se não fosse explicitado)&lt;br /&gt;
7 =&amp;gt; &quot;cinco&quot; (seria 6, se não estivesse ocupado)&lt;br /&gt;
&lt;br /&gt;
Em geral, não é recomendável utilizar arrays com vários tipos de índices, já que isso pode confundir o programador. No caso de realmente haver a necessidade de utilizar esse recurso, deve-se ter bastante atenção ao manipular os índices do array.&lt;br /&gt;
&lt;br /&gt;
range&lt;br /&gt;
array range(int minimo, int maximo);&lt;br /&gt;
&lt;br /&gt;
A função range cria um array cujos elementos são os inteiros pertencentes ao intervalo fornecido, inclusive. Se o valor do primeiro parâmetro for maior do que o do segundo, a função retorna false (valor vazio).&lt;br /&gt;
&lt;br /&gt;
shuffle&lt;br /&gt;
void shuffle(array &amp;amp;arr);&lt;br /&gt;
&lt;br /&gt;
Esta função &quot;embaralha&quot; o array, ou seja, troca as posições dos elementos aleatoriamente e não retorna valor algum.&lt;br /&gt;
&lt;br /&gt;
sizeof&lt;br /&gt;
int sizeof(array arr);&lt;br /&gt;
&lt;br /&gt;
Retorna um valor inteiro contendo o número de elementos de um array. Se for utilizada com uma variável cujo valor não é do tipo array, retorna 1. Se a variável não estiver setada ou for um array vazio, retorna 0.&lt;br /&gt;
&lt;br /&gt;
Funções de &quot;navegação&quot;&lt;br /&gt;
Toda variável do tipo array possui um ponteiro interno indicando o próximo elemento a ser acessado no caso de não ser especificado um índice. As funções seguintes servem para modificar esse ponteiro, permitindo assim percorrer um array para verificar seu conteúdo (chaves e elementos).&lt;br /&gt;
&lt;br /&gt;
reset&lt;br /&gt;
mixed reset(array arr);&lt;br /&gt;
&lt;br /&gt;
Seta o ponteiro interno para o primeiro elemento do array, e retorna o conteúdo desse elemento.&lt;br /&gt;
end&lt;br /&gt;
mixed end(array arr);&lt;br /&gt;
&lt;br /&gt;
Seta o ponteiro interno para o último elemento do array, e retorna o conteúdo desse elemento.&lt;br /&gt;
&lt;br /&gt;
next&lt;br /&gt;
mixed next(array arr);&lt;br /&gt;
&lt;br /&gt;
Seta o ponteiro interno para o próximo elemento do array, e retorna o conteúdo desse elemento.&lt;br /&gt;
Obs.: esta não é uma boa função para determinar se um elemento é o último do array, pois pode retornar false tanto no final do array como no caso de haver um elemento vazio.&lt;br /&gt;
&lt;br /&gt;
prev&lt;br /&gt;
mixed prev(array arr);&lt;br /&gt;
&lt;br /&gt;
Seta o ponteiro interno para o elemento anterior do array, e retorna o conteúdo desse elemento. Funciona de maneira inversa a next.&lt;br /&gt;
&lt;br /&gt;
pos&lt;br /&gt;
mixed pos(array arr);&lt;br /&gt;
&lt;br /&gt;
Retorna o conteúdo do elemento atual do array, indicado pelo ponteiro interno.&lt;br /&gt;
&lt;br /&gt;
key&lt;br /&gt;
mixed key(array arr);&lt;br /&gt;
&lt;br /&gt;
Funciona de maneira bastante semelhante a pos, mas ao invés de retornar o elemento atual indicado pelo ponteiro interno do array, retorna seu índice.&lt;br /&gt;
each&lt;br /&gt;
array each(array arr);&lt;br /&gt;
&lt;br /&gt;
Retorna um array contendo o índice e o elemento atual indicao pelo ponteiro interno do array. o valor de retorno é um array de quatro elementos, cujos índices são 0, 1, &quot;key&quot; e &quot;value&quot;. Os elementos de índices 0 e &quot;key&quot; armazenam o índice do valor atual, e os elementos de índices 1 e &quot;value&quot; contém o valor do elemento atual indicado pelo ponteiro. &lt;br /&gt;
Esta função pode ser utilizada para percorrer todos os elementos de um array e determinar se já foi encontrado o último elemento, pois no caso de haver um elemento vazio, a função não retornará o valor false. A função each só retorna false depois q o último elemento do array foi encontrado.&lt;br /&gt;
&lt;br /&gt;
Exemplo:&lt;br /&gt;
&lt;br /&gt;
/*função que percorre todos os elementos de um array e imprime seus índices e valores */&lt;br /&gt;
function imprime_array($arr) {&lt;br /&gt;
&amp;nbsp; reset($arr);&lt;br /&gt;
&amp;nbsp; while (list($chave,$valor) = each($arr))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &quot;Chave: $chave. Valor: $valor&quot;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Funções de ordenação&lt;br /&gt;
São funções que servem para arrumar os elementos de um array de acordo com determinados critérios. Estes critérios são: manutenção ou não da associação entre índices e elementos; ordenação por elementos ou por índices; função de comparação entre dois elementos.&lt;br /&gt;
&lt;br /&gt;
sort&lt;br /&gt;
void sort(array &amp;amp;arr);&lt;br /&gt;
&lt;br /&gt;
A função mais simples de ordenação de arrays. Ordena os elementos de um array em ordem crescente, sem manter os relacionamentos com os índices.&lt;br /&gt;
&lt;br /&gt;
rsort&lt;br /&gt;
void rsort(array &amp;amp;arr);&lt;br /&gt;
&lt;br /&gt;
Funciona de maneir ainversa à função sort. Ordena os elementos de um array em ordem decrescente, sem manter os relacionamentos com os índices.&lt;br /&gt;
&lt;br /&gt;
asort&lt;br /&gt;
void asort(array &amp;amp;arr);&lt;br /&gt;
&lt;br /&gt;
Tem o funcionamento bastante semelhante à função sort. Ordena os elementos de um array em ordem crescente, porém mantém os relacionamentos com os índices.&lt;br /&gt;
&lt;br /&gt;
arsort&lt;br /&gt;
void arsort(array &amp;amp;arr);&lt;br /&gt;
&lt;br /&gt;
Funciona de maneira inversa à função asort. Ordena os elementos de um array em ordem decrescente e mantém os relacionamentos dos elementos com os índices.&lt;br /&gt;
&lt;br /&gt;
ksort&lt;br /&gt;
void ksort(array &amp;amp;arr);&lt;br /&gt;
&lt;br /&gt;
Função de ordenação baseada nos índices. Ordena os elementos de um array de acordo com seus índices, em ordem crescente, mantendo os relacionamentos.&lt;br /&gt;
&lt;br /&gt;
usort&lt;br /&gt;
void usort(array &amp;amp;arr, function compara);&lt;br /&gt;
&lt;br /&gt;
Esta é uma função que utiliza outra função como parâmetro. Ordena os elementos de um array sem manter os relacionamentos com os índices, e utiliza para efeito de comparação uma função definida pelo usuário, que deve comparar dois elementos do array e retornar 0, 1 ou -1, de acordo com qualquer critério estabelecido pelo usuário. &lt;br /&gt;
uasort&lt;br /&gt;
void uasort(array &amp;amp;arr, function compara);&lt;br /&gt;
&lt;br /&gt;
Esta função também utiliza outra função como parâmetro. Ordena os elementos de um array e mantém os relacionamentos com os índices, utilizando para efeito de comparação uma função definida pelo usuário, que deve comparar dois elementos do array e retornar 0, 1 ou -1, de acordo com qualquer critério estabelecido pelo usuário.&lt;br /&gt;
&lt;br /&gt;
uksort&lt;br /&gt;
void uksort(array &amp;amp;arr, function compara);&lt;br /&gt;
&lt;br /&gt;
Esta função ordena o array&amp;nbsp; através dos índices, mantendo os relacionamentos com os elementos., e utiliza para efeito de comparação uma função definida pelo usuário, que deve comparar dois índices do array e retornar 0, 1 ou -1, de acordo com qualquer critério estabelecido pelo usuário.</content><link rel='replies' type='application/atom+xml' href='http://vetortecinformatica.blogspot.com/feeds/4934482129765921870/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://vetortecinformatica.blogspot.com/2010/12/tutorial-de-php.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/547239981044631330/posts/default/4934482129765921870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/547239981044631330/posts/default/4934482129765921870'/><link rel='alternate' type='text/html' href='http://vetortecinformatica.blogspot.com/2010/12/tutorial-de-php.html' title='Tutorial de PHP'/><author><name>vetortec informatica</name><uri>http://www.blogger.com/profile/01557177860168805694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-547239981044631330.post-556447237704774194</id><published>2010-12-02T17:23:00.000-02:00</published><updated>2010-12-02T17:23:53.538-02:00</updated><title type='text'>curso de HTML</title><content type='html'>&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:WordDocument&gt;   &lt;w:View&gt;Normal&lt;/w:View&gt;   &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:HyphenationZone&gt;21&lt;/w:HyphenationZone&gt;   &lt;w:PunctuationKerning/&gt;   &lt;w:ValidateAgainstSchemas/&gt;   &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:Compatibility&gt;    &lt;w:BreakWrappedTables/&gt;    &lt;w:SnapToGridInCell/&gt;    &lt;w:WrapTextWithPunct/&gt;    &lt;w:UseAsianBreakRules/&gt;    &lt;w:DontGrowAutofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:LatentStyles DefLockedState=&quot;false&quot; LatentStyleCount=&quot;156&quot;&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if !mso]&gt;&lt;img src=&quot;http://img2.blogblog.com/img/video_object.png&quot; style=&quot;background-color: #b2b2b2; &quot; class=&quot;BLOGGER-object-element tr_noresize tr_placeholder&quot; id=&quot;ieooui&quot; data-original-id=&quot;ieooui&quot; /&gt; &lt;style&gt;
st1\:*{behavior:url(#ieooui) }
&lt;/style&gt; &lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:&quot;Tabela normal&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-parent:&quot;&quot;;
 mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
 mso-para-margin:0cm;
 mso-para-margin-bottom:.0001pt;
 mso-pagination:widow-orphan;
 font-size:10.0pt;
 font-family:&quot;Times New Roman&quot;;
 mso-ansi-language:#0400;
 mso-fareast-language:#0400;
 mso-bidi-language:#0400;}
&lt;/style&gt; &lt;![endif]--&gt;  &lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: TTFF4B8290t00; font-size: 54pt;&quot;&gt;Curso de HTML&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: TTFF4B8290t00; font-size: 24pt;&quot;&gt;Lição 1: Vamos começar&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Nesta primeira lição apresentaremos as ferramentas necessárias à construção de um website.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;O que é necessário?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;É muito provável que você já tenha as ferramentas que precisa.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Você tem um &quot;navegador&quot;. Navegador é um programa que permite visualizar e navegar por páginas&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;na Internet. Você está lendo está página em um navegador.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Não importa qual navegador você usa. O mais comum é o Microsoft Internet Explorer. Mais&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;existem outros, tais como, Opera e Mozilla Firefox que podem ser usados.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Você já deve ter ouvido falar ou até mesmo pode já ter usado programas tais como, Microsoft&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;FrontPage, Macromedia Dreamweaver ou mesmo Microsoft Word, que podem - pelo menos&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;anunciam que podem - criar websites para você. Por ora, esqueça estes programas! Eles não têm&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;qualquer utilidade para você na tarefa de codificar seu website.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Você precisará de um simples editor de textos. Se você tem instalado o Windows, poderá usar o&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Notepad, que normalmente pode ser encontrado no menu Programs em Accessories (Programas »&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Acessórios):&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Se você não tem o Windows, use um editor de texto similar. Por exemplo, Pico (Linux) ou Simple&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Text (Mac).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Notepad é um editor de texto básico e simples, mas excelente para codificação, porque não interfere&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;no que você está digitando. Com ele o controle é todo e somente seu. O problema com programas&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;que criam o website para você, é que eles vêm com uma série de funções pré-instaladas para você&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;escolher. Tudo deverá ser projetado para se encaixar nestas funções padrão. Assim, muitas vezes&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;não é possível criar exatamente aquilo que você planejou. Ou - mais frustante ainda - os programas&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;inserem modificações no código que você cria. Usando o Notepad ou qualquer editor de textos&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;simples você é o único responsável pelo acertos ou pelos erros do seu código.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Um navegador e o Notepad (ou editor similar) é tudo o que você precisa para acompanhar este&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;tutorial e construir seu website.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Preciso estar online?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Não. Você não precisa estar conectado à Internet - tanto para ler este tutorial como para construir&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;seus websites.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Se você quer desconetar-se enquanto lê este tutorial, você poderá imprimir ou simplesmente&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;desconectar-se da Internet enquanto lê a tela. Você pode construir seu website no HD do seu&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;computador e fazer o upload para a Internet quando terminar.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;O que vem a seguir?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Passe para a próxima lição e leia sobre o HTML antes de começarmos a diversão a partir da Lição&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;3.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: TTFF4B8290t00; font-size: 24pt;&quot;&gt;Lição 2: O que é HTML?&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Esta lição apresentará à você seu novo amigo, o HTML.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;O que é HTML?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;HTML é a &quot;língua mãe&quot; do seu navegador.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Resumindo uma longa história, HTML foi inventado em 1990 por um cientista chamado Tim&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Berners-Lee. A finalidade inicial era a de tornar possível o acesso e a troca de informações e de&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;documentação de pesquisas, entre cientistas de diferentes universidades. O projeto inicial tornou-se&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;um sucesso jamais imaginado por Tim Berners-Lee. Ao inventar o HTML ele lançou as fundações&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;da Internet tal como a conhecemos atualmente.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;HTML é uma linguagem que possibilita apresentar informações (documentação de pesquisas&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;científicas) na Internet. Aquilo que você vê quando abre uma página na Internet é a interpretação&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;que seu navegador faz do HTML. Para visualizar o código HTML de uma página use o menu&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;&quot;View&quot; (Ver) no topo do seu navegador e escolha a opção &quot;Source&quot; (Código fonte).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Para quem não conhece, o código HTML pode parecer complicado, mas este tutorial irá tornar as&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;coisas claras para você.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;&amp;nbsp;Para que devo usar o HTML?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Se você quer construir websites terá que conhecer HTML. Mesmo que você use um programa para&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;criar seu website, tal como o Dreamweaver, um conhecimento básico de HTML será necessário&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;para tornar as coisas mais simples e para criar um website de melhor qualidade. A boa notícia é que&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;HTML é fácil de aprender e de usar. A partir das duas próximas lições você já terá aprendido como&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;construir seu primeiro website.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;HTML é usado para construir websites. É simples!&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;OK, mas o que significa H-T-M-L?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;HTML é a abreviatura de &quot;HyperText Mark-up Language&quot; - e isto é tudo o que você precisa saber&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;por enquanto. Contudo, vamos detalhar isto.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: TTFF4E6BF0t00; font-size: 9pt;&quot;&gt;• &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Hyper &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;é o oposto de linear. Nos tempos antigos - quando mouse era apenas um rato caçado&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;por gatos - os programas de computadores rodavam linearmente: quando o programa&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;executava uma ação tinha que esperar a próxima linha de comando para executar a próxima&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;ação e assim por diante de linha em linha. Com HTML as coisas são diferentes - você pode&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;ir de onde estiver para onde quiser. Exemplificando: não é necessário que você tenha&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;visitado o site MSN.com antes de visitar o site HTML.net.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: TTFF4E6BF0t00; font-size: 9pt;&quot;&gt;• &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Text &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;é texto e não há mais nada a acresentar.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: TTFF4E6BF0t00; font-size: 9pt;&quot;&gt;• &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Mark-up &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;significa marcação e é o texto que você escreve. Você cria a marcação da mesma&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;forma que escreve em um editor seus cabeçalhos, marcadores, negrito, etc&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: TTFF4E6BF0t00; font-size: 9pt;&quot;&gt;• &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Language &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;significa linguagem e é exatamente o que HTML é; uma linguagem. A linguagem&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;HTML usa muitas palavras do inglês.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Neste tutorial você aprenderá XHTML (Extensible HyperText Mark-up Language) que nada mais é&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;do que uma maneira mais bem estruturada de escrever HTML.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Agora que você já sabe o que é HTML (e XHTML) vamos começar aplicando eles para: construir&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;websites.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: TTFF4B8290t00; font-size: 24pt;&quot;&gt;Lição 3: O que são tags HTML?&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Você já está em condições de aprender a chave do HTML - tags.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;&quot;Tags&quot;?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Tags são rótulos usados para informar ao navegador como deve ser apresentado o website.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Todas as tags têm o mesmo formato: começam com um sinal de menor &quot;&amp;lt;&quot; e acabam com um sinal&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;de maior &quot;&amp;gt;&quot;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Genericamente falando, existem dois tipos de tags - tags de abertura: &amp;lt;comando&amp;gt; e tags de&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;fechamento: &amp;lt;/comando&amp;gt;. A diferença entre elas é que na tag de fechamento existe um barra &quot;/&quot;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Tudo que estiver contido entre uma tag de abertura e uma tag de fechamento será processado&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;segundo o comando contido na tag.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Mas, como toda regra tem sua exceção, aqui no HTML a exceção é que para algumas tags a&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;abertura e o fechamento se dá na mesma tag. Tais tags contém comandos que não necessitam de um&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;conteúdo para serem processados, isto é, são tags de comandos isolados, por exemplo, um pulo de&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;linha é conseguido com a tag &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;HTML é tag - e nada mais do que tags. Aprender HTML é aprender como usar as diferentes tags.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Você pode mostrar alguns exemplos?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;OK, a tag &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;b&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;informa ao navegador que todo o texto colocado entre &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;b&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;e &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;/b&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;deve ser&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;mostrado em negrito. (O comando &quot;b&quot; é uma abreviação para &quot;bold&quot; - negrito.)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 1:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;b&amp;gt;Este texto deve ser em negrito.&amp;lt;/b&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Vai ser apresentado no navegador, como mostrado a seguir:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Courier-Bold;&quot;&gt;Este texto deve ser em negrito&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;As tags &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;h2&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;h3&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;h4&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;h5&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;e &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;h6&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;informam ao navegador que trata-se de um&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;cabeçalho (h vem de &quot;heading&quot; - cabeçalho ), sendo &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;h1&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;o cabeçalho de primeiro nível e aquele&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;apresentado com o maior tamanho de texto, &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;h2&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;o cabeçalho de segundo nível e aquele&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;apresentado com tamanho de texto um pouco menor e &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;h6&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;o cabeçalho de sexto nível e aquele&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;apresentado com o menor tamanho de texto.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 2:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;h1&amp;gt;Este é um título&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;h2&amp;gt;Este é um sub título&amp;lt;/h2&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Vai ser apresentado no navegador, como mostrado a seguir:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 24pt;&quot;&gt;Este é um título&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Este é um subtítulo&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;As tags devem ser escritas com letras maiúsculas ou&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;minúsculas?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Para a maioria dos navegadores é indiferente se você usa maiúscula, minúscula ou mesmo uma&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;mistura delas.&amp;lt;COMANDO&amp;gt;, &amp;lt;comando&amp;gt; ou &amp;lt;CoMaNdo&amp;gt; normalmente tem o mesmo efeito.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Contudo a maneira &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;correta &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;é usar minúsculas. Então, crie o &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;hábito de escrever suas tags com&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;minúsculas.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Onde devo colocar todas estas tags?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Você deve escrever suas tags em um documento HTML. Um website é constituido por um ou mais&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;documentos HTML. Quando você navega na Web, você está abrindo diferentes documentos HTML.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Se você passar para a próxima lição, em dez minutos estará construindo seu primeiro website.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: TTFF4B8290t00; font-size: 24pt;&quot;&gt;Lição 4: Criando seu primeiro website&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Com o que você aprendeu nas lições anteriores está a alguns minutos de criar seu primeiro website.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Como?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Na lição 1 vimos o que é necessário para construir um website: um navegador e o Notepad (ou um&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;editor de texto similar). Uma vez que você esta lendo esta página, provavelmente está com seu&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;navegador aberto. Agora abra outra janela do seu navegador de modo que você tenha duas janelas&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;na tela, uma para ler este tutorial e outra para visualizar o website que você vai construir.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Abra também o Notepad ( Iniciar » Programas » Acessórios):&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Agora, estamos prontos para começar!&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;O que posso fazer?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Vamos começar com algo simples. Que tal uma página que diga: &quot;Hurrah! Esta é a minha primeira&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;página web.&quot; Continue e você verá como isto é simples de fazer.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;HTML é simples e lógico. &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;O navegador lê  HTML de modo idêntico ao que você lê um texto&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;qualquer, de cima para baixo e da esquerda para a direita. &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Assim um documento HTML inicia&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;com aquilo que deve ser a primeira coisa aparecer na página e termina com a última coisa a&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;aparecer.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;A primeira coisa a fazer é dizer ao navegador que você vai &quot;falar&quot; com ele na linguagem HTML.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Isto é feito com a tag &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;html&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;(nenhuma novidade nisto). Então, antes de mais nada digite&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;&quot; na primeira linha do documento, no Notepad.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Como sabemos das lições anteriores, &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;html&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;é uma tag de abertura e deve ser fechada com a tag&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;de fechamento quando você acabar de digitar seu documento HTML. Para termos certeza que não&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;iremos esquecer de fechar a tag HTML, faça isso agora mesmo, digitando &quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;&quot; localizada a&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;algumas linhas abaixo, assim você irá escrever seu documento entre as tags digitadas &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;html&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;e&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;A próxima coisa que o documento precisa é um &quot;head&quot; (cabeça), que fornece informações sobre o&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;documento e um &quot;body&quot; (corpo), que abriga o conteúdo do documento. Como HTML não seria&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;nada se não fosse lógico, a &quot;cabeça&quot; (&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;head&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;e &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;) fica em cima do &quot;corpo&quot; (&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;body&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;e&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Seu documento agora está como mostrado abaixo:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Notar como estruturamos o código em linhas diferentes (usar a tecla &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;Enter &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;para pular para&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;próxima linha) e também a indentação (recuos) do código (usar a tecla &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;Tab &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;para indentar). A&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;príncipio não faz qualquer diferença a maneira como você estrutura (linhas e recuos na digitação)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;seu documento HTML. Mas um código bem estruturado é mais fácil de ler e entender, &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;é altamente&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;recomendado que você adote uma estrutura clara e nítida para seu HTML, usando linhas e&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;indentação (recuos)&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;, como mostrado no exemplo acima.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Se o seu documento está como o mostrado acima, você construiu sua primeira página web - uma&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;página particularmente chata e provalvelmente nada parecido com o que você sonhou fazer quando&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;começou a ler este tutorial, mas de qualquer forma um tipo de website. Isto que você fez será um&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;template base para seus futuros documentos HTML.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Até aqui tudo bem, mas como colocar conteúdo no meu&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;website?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Como você já aprendeu, seu documento HTML é composto de duas partes: um head e um body. &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Na&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;seção head você escreve informações sobre a página e na seção body você coloca as&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;informações que constituem a página.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Por exemplo, para dar um título ao documento, título este que apareça no topo da barra do&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;navegador você deverá usar a seção&quot;head&quot;. A tag para acresentar um título é &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;title&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;title&amp;gt;Minha primeira página web&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Notar que o título não aparece na página propriamente dita. Tudo que você quer que apareça na&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;página é conteúdo e deverá ser colocado entre as tags &quot;body&quot;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Conforme combinamos, queremos uma página dizendo, &quot;Hurrah! Esta é a minha primeira página&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;web.&quot; Este é o texto que queremos comunicar e ele deverá ser colocado na seção body. Então digite&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;na seção body o seguinte:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;p&amp;gt;Hurrah! Esta é a minha primeira página web.&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;A letra p na tag &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;p&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;é a abreviatura para &quot;paragraph&quot; (parágrafo) que é exatamente o que o texto é -&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;um texto parágrafo.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Seu documento HTML agora está como mostrado a seguir:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;title&amp;gt;Minha primeira página web&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;p&amp;gt;Hurrah! Esta é a minha primeira página web.&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Pronto! Você acaba de construir seu primeiro website!&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Agora basta que você salve seu trabalho no HD e depois visualize no navegador:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: TTFF4E6BF0t00; font-size: 9pt;&quot;&gt;• &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;No Notepad vá ao menu &quot;Arquivo&quot; no topo da janela e escolha a opção &quot;Salvar como...&quot;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: TTFF4E6BF0t00; font-size: 9pt;&quot;&gt;• &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Escolha &quot;Todos os arquivos&quot; no box &quot;Salvar como tipo&quot;. Isto é muito importante - caso você&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;não faça isto, o arquivo será salvo como texto e não como documento HTML.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: TTFF4E6BF0t00; font-size: 9pt;&quot;&gt;• &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Salve seu documento com o nome &quot;page1.htm&quot; (a extensão &quot;.htm&quot; indica que se trata de um&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;documento HTML. A extensão &quot;.html&quot; dá o mesmo resultado. Eu sempre uso &quot;.htm&quot;, mas&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;você pode escolher a que você preferir .htm ou .html). Você pode salvar o documento onde&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;você quiser no seu HD - esteja certo de salvar em um lugar que depois você possa achar com&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;facilidade.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Agora vá ao seu navegador:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: TTFF4E6BF0t00; font-size: 9pt;&quot;&gt;• &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;No menu existente no topo do navegador vá em &quot;Arquivo&quot; e escolha a opção &quot;Abrir&quot;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: TTFF4E6BF0t00; font-size: 9pt;&quot;&gt;• &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Clique em &quot;Procurar&quot; no box que aparece.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: TTFF4E6BF0t00; font-size: 9pt;&quot;&gt;• &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Localize o seu documento HTML e clique em &quot;Abrir&quot;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Você deverá ver no seu navegador: &quot;Hurrah! Esta é a minha primeira página web.&quot; Parabéns!&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Se você quer que o mundo todo veja sua página, vá direto para a Lição 14 e aprenda como fazer&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;upload da sua página para a Internet. Se não, tenha paciência e continue lendo. A brincadeira apenas&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;começou.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: TTFF4B8290t00; font-size: 24pt;&quot;&gt;Lição 5: O que você já aprendeu?&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Comece sempre com o template básico que construímos na lição anterior:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Coloque sempre o título do seu documento na seção head: &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;title&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Título da sua&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;página&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;. Ver na figura abaixo como o título aparece no topo superior esquerdo do&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;navegador:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;O título é muito importante porque é usado pelos mecanismos de busca (tais como o Google) para&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;indexar seu website como mostrado a seguir para o site CSS para Web Design:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Na seção body você escreve o conteúdo da sua página. Você conhece algumas das mais importantes&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;tags:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;p&amp;gt;É usado para parágraos.&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;b&amp;gt;Torna o texto negrito.&amp;lt;/b&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;h1&amp;gt;Cabeçalho&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;h2&amp;gt;Subtítulo&amp;lt;/h2&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;h3&amp;gt;Sub-subtítulo&amp;lt;/h3&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Lembre-se, o único caminho para aprender HTML é por ensaio e erro. Mas, não se preocupe, você&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;não destruirá seu computador e nem a Internet. Então, faça seus experimentos e testes - esta é a&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;melhor maneira de ganhar experiência.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;O que significa isto?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Ninguém se tornará um bom criador de websites aprendendo os exemplos contidos neste tutorial. O&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;que você aprenderá neste tutorial é simplesmente o básico para criação - para se tornar um bom&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;desenvolvedor você deverá descobrir caminhos por si mesmo em maneiras criativas.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Então mãos à obra. Comece suas experiências com tudo que você aprendeu até agora.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;O que fazer agora?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Tente criar algumas páginas. Por exemplo, construa uma página com um título, um cabeçalho,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;algum texto, um subtítulo e mais algum texto. Não há nada contra fazer uma consulta no tutorial&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;para construir as páginas, ou seja, a &quot;cola&quot; é permitida. Porém, mais a frente, tente criar sem&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;consultar - &quot;cola&quot; não permitida.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: TTFF4B8290t00; font-size: 24pt;&quot;&gt;Lição 6: Mais tags HTML&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;E aí? Você construiu algumas páginas como sugerimos na lição anterior? Não? Sim? Bem, a seguir&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;um exemplo:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;title&amp;gt;Meu website&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;h1&amp;gt;Um cabeçalho&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;p&amp;gt;texto, texto texto, texto&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;h2&amp;gt;Subtítulo&amp;lt;/h2&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;p&amp;gt;texto, texto texto, texto&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;E agora?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Agora vamos aprender mais sete tags.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Você já sabe que pode obter negrito com a tag &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;b&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;, agora saiba que pode obter itálico - letras&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;inclinadas - com a tag &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;i&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;. Já percebeu não é?, &quot;i&quot; vem de &quot;italic&quot;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 1:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;i&amp;gt;Este texto deve ser itálico.&amp;lt;/i&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Será renderizado no navegador assim:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: black; font-family: Times-Italic;&quot;&gt;Este texto deve ser itálico.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;De modo similar você pode fazer seu texto com letra menores usando a tag &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;small&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 2:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;small&amp;gt;Este texto deve ser com letras em tamanho small.&amp;lt;/small&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Será renderizado no navegador assim:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman; font-size: 10pt;&quot;&gt;Este texto deve ser com letras em tamanho small.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Posso usar várias tags simultaneamente?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Sim você pode usar quantas tags queira &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;desde de que as aninhe convenientemente&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;. Veja como&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;fazer isto no exemplo abaixo:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 3:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Para escrever um texto em negrito e itálico faça como mostrado a seguir:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;Texto em negrito e itálico.&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;E não assim:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;Texto em negrito e itálico.&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Observe que no primeiro exemplo a primeira tag de abertura &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;b&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;corresponde a última tag de&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;fechamento &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;/b&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;, e o aninhamento está certo. Isto evita confusão para quem escreve o código e&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;para o navegador que lê o código.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Mais tags!&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Como foi dito na Lição 4 &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;existem tags que são abertas e fechadas em única tag&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;. Estas tags são&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;comandos isolados, ou seja, não contém nenhum texto dentro delas para poder funcionar. Um&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;exemplo é a tag &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;br /&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;que serve para criar uma quebra de linha:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 4:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;Um texto&amp;lt;br /&amp;gt; e mais texto em nova linha&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Será renderizado no navegador assim:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Um texto&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;e mais texto em nova linha&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Notar que a tag é escrita como se fosse uma mistura de tag de abertura e de fechamento com uma&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;barra &quot;/&quot; no final: &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;. A princípio podemos escrever também &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;br&amp;gt;&amp;lt;/br&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;(sem conteúdo),&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;mas para que complicar?&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Outra tag de comando é &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;hr /&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;que serve para definir uma linha horizontal (&quot;hr&quot; vem &quot;horizontal&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;rule&quot; - régua horizontal ):&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 5:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;hr /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Será renderizado no navegador assim:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 6:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;ul&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;li&amp;gt;Um item de lista&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;li&amp;gt;Outro item de lista&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Será renderizado no navegador assim:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: TTFF4E6BF0t00; font-size: 9pt;&quot;&gt;• &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Um item de lista&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: TTFF4E6BF0t00; font-size: 9pt;&quot;&gt;• &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Outro item de lista&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 7:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;ol&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;li&amp;gt;Primeiro item da lista&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;li&amp;gt;Segundo item da lista&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/ol&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Será renderizado no navegador assim:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;1. Primeiro item da lista&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;2. Segundo item da lista&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Uau! Isto é tudo?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Sim, por enquanto isto é tudo. Aconselhamos, novamente, a fazer seus próprios experimentos,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;construindo algumas páginas usando as sete tags ensinadas nesta lição:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;i&amp;gt;Itálico&amp;lt;/i&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;small&amp;gt;Texto tamanho small&amp;lt;/small&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;br /&amp;gt; Pula linha&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;hr /&amp;gt; Linha Horizontal&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;blockquote&amp;gt;Indentação&amp;lt;/blockquote&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;ul&amp;gt;Lista&amp;lt;ul&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;ol&amp;gt;Lista ordenada&amp;lt;ol&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;li&amp;gt;Item de lista&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: TTFF4B8290t00; font-size: 24pt;&quot;&gt;Lição 7: Atributos&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Você pode adicionar atributos às tags.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;O que é atributo?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Como você deve estar lembrado, uma tag é um comando para o navegador (por exemplo, &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;é um comando para mudar de linha). Em algumas tags você pode ser mais específico, acresentando&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;na tag, informações adicionais de comando. Isto é feito através dos atributos.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 1:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;h2 style=&quot;background-color:#ff0000;&quot;&amp;gt;Eu adoro HTML&amp;lt;/h2&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Atributos são escritos dentro da tag, seguidos por um sinal de igual e depois entre aspas são&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;declaradas as informações do atributo. As informações quando mais de uma, devem ser separadas&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;por ponto e vírgula, tudo conforme mostrado no exemplo acima. Adiante voltaremos a este assunto.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Como é isto?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Existem vários atributos. O primeiro que você aprenderá é o atributo style. &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Com o atributo style&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;você pode adicionar estilização e layout ao seu website&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;. Por exemplo, uma cor de fundo:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 2:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;body style=&quot;background-color:#ff0000;&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;O código acima renderiza uma página com cor de fundo vermelha - vá em frente! experimente você&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;mesmo, construa uma página vermelha. A seguir explicaremos como funcionam as cores.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Notar que algumas tags e atributos usam nomes do idioma inglês dos E.U.A. É muito importante&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;que você use os nomes exatamente como mostrados neste tutorial - se você mudar uma letra que&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;seja, o navegador não irá entender seu código. É importante também que você não se esqueça de&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;fechar as aspas nas informações do atributo.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Como a página ficou vermelha?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;No exemplo acima nós usamos o código &quot;#ff0000&quot; para fazer a página na cor vermelha. Eate é o&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;código para a cor vermelha no sistema chamado de números hexadecimal (HEX). &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Cada cor é&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;representada por um número hexadecimal&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;. A seguir alguns exemplos:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Branco: #ffffff&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Preto: #000000 (zeros)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Vermelho: #ff0000&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Azul: #0000ff&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Verde: #00ff00&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Amarelo: #ffff00&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Um código hexadecimal para cores é formado por um sinal # seguido de seis dígitos e/ou letras.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Existe mais de 1000 códigos HEX e não é fácil decorar o código para todas as cores. Para facilitar&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;as coisas nós desenvolvemos uma carta com as 216 cores mais usadas na web: Carta das 216 cores&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;seguras para a Web.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Para algumas cores, você pode usar o nome das cores em inglês (white, black, red, blue, green e&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;yellow - branco, preto, vermelho, azul, verde, amarelo).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 3:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;body style=&quot;background-color: red;&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Chega de cores. Voltemos aos atributos.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;&amp;nbsp;Quais tags podem usar atributos?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Atributos podem ser aplicados à maioria das tags&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Você normalmente usará atributos com mais freqüência em algumas tags, tais como a tag &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;body &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;e&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;raramente usará em outras, como por exemplo, a tag &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;br &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;que é um comando para pular de linha e&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;não precisa de nenhuma informação adicional.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Assim como existem muitas tags, também existem muitos atributos. Alguns atributos são&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;empregados em tags específicas enquanto outros servem para várias tags. E vice-versa: algumas&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;tags podem conter somente um tipo de atributo, enquanto outras podem conter vários tipos.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Isto pode parecer um pouco confuso, mas à medida que você for praticando vai constatar que tudo é&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;fácil e lógico, bem como vai verificar as inúmeras possibilidades que os atributos oferecem.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Este tutorial apresentou a você, os atributos.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Então, quais são as partes que constituem uma tag?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;A constituição básica de uma tag é denominada elemento &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;(por exemplo p em &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;). Assim, uma&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;tag é constituida de um elemento (por exemplo &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;), ou por um elemento e um ou mais atributos&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Times-Roman;&quot;&gt;(por exemplo &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;p style=&quot;background-color:#ff0000;&quot;&amp;gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Times-Roman;&quot;&gt;). &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Simples!&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: TTFF4B8290t00; font-size: 24pt;&quot;&gt;Lição 8: Links&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Nesta lição você aprenderá como construir links entre páginas.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;O que eu preciso para construir um link?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Para construir um link você usa o que tem usado até agora para codificar HTML: uma tag. &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Uma&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;simples e pequenina tag com um elemento e um atributo é suficiente para você construir links&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;para onde quiser. &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;A seguir um exemplo de link para o site HTML.net:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 14pt;&quot;&gt;Exemplo 1:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;a href=&quot;http://www.html.net/&quot;&amp;gt;Aqui um link para HTML.net&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Será renderizado no navegador assim:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: navy; font-family: Times-Roman;&quot;&gt;Aqui um link para HTML.net&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;O elemento &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;a &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;refere-se a &quot;anchor&quot; - âncora . O atribuito &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;href &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;é abreviação para &quot;hypertext&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;reference&quot; - referência a hypertexto - e especifica o destino do link - que normalmente é um&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;endereço na Internet ou um arquivo.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;No exemplo acima o atributo &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;href &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;tem o valor &quot;http://www.html.net&quot;, que é o endereço completo&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;do site HTML.net e é chamado de URL (Uniform Resource Locator). Notar que &quot;http://&quot; deve&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;sempre ser incluido nas URLs. A frase &quot;Aqui um link para HTML.net&quot; é o texto mostrado no&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;navegador como link. Lembre-se de fechar a tag com um &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Como são os links entre minhas próprias páginas?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Se você quer construir links entre páginas de um mesmo website você não precisa escrever o&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;endereço completo de cada página (URL). Por exemplo, se você tem duas páginas (vamos chamálas&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;de pagina1.htm e pagina2.htm) e salvou as duas em um mesmo diretório você constrói um link&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;de uma para a outra usando somente o nome do arquivo no link. Nestas condições, um link da&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;página1.htm para a pagina2.htm é como mostrado abaixo:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 14pt;&quot;&gt;Exemplo 2:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;a href=&quot;page2.htm&quot;&amp;gt;Aqui um link para a pagina 2&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Se a pagina2 for colocada em um subdiretório (chamado de &quot;subdiretorio&quot;), o link é como mostrado&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;abaixo:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 14pt;&quot;&gt;Exemplo 3:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;a href=&quot;subdiretorio/pagina2.htm&quot;&amp;gt;Aqui um link para a pagina 2&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Por outro lado, um link da pagina2 no &quot;subdiretorio&quot; para a pagina1 é como mostrado a seguir:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 14pt;&quot;&gt;Exemplo 4:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;a href=&quot;../pagina1.htm&quot;&amp;gt;Aqui um link para a pagina 1&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;&quot;../&quot; aponta para o diretório a um nível acima do arquivo onde foi feito o link. Seguindo o mesmo&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;princípio você pode apontar para dois (ou mais) níveis acima, escrevendo &quot;../../&quot;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Você entendeu? Como alternativa você pode usar sempre o endereço completo do arquivo (URL).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Como são os links dentro de uma mesma página?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Você pode criar links internos, dentro da própria página - por exemplo, uma tabela de conteúdos ou&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;índice com links para cada um dos capítulos em uma página. Tudo o que você precisa é usar o&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;atributo id e o símbolo &quot;#&quot;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Use o atributo id para marcar o elemento que é o destino do link. Por exemplo:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;h1 id=&quot;heading1&quot;&amp;gt;Cabeçalho 1&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Você agora pode criar um link que leve àquele elemento usando o símbolo &quot;#&quot; no atributo do link.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;O símbolo &quot;#&quot; informa ao navegador para ficar na mesma página que está. O símbolo &quot;#&quot; deve ser&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;seguido pelo valor atribuido a id para onde o link vai. Por exemplo:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;a href=&quot;#heading1&quot;&amp;gt;Link para o cabeçalho 1&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Tudo fica claro com um exemplo:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Times-Bold; font-size: 14pt;&quot;&gt;Exemplo 5:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;p&amp;gt;&amp;lt;a href=&quot;#heading1&quot;&amp;gt;Link para cabeçalho 1&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;p&amp;gt;&amp;lt;a href=&quot;#heading2&quot;&amp;gt;Link para cabeçalho 2&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;h1 id=&quot;heading1&quot;&amp;gt;Cabeçalho 1&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;p&amp;gt;Texto texto texto texto&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;h1 id=&quot;heading2&quot;&amp;gt;Cabeçalho 2&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;p&amp;gt;Texto texto texto texto&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Será renderizado no navegador assim (clique nos dois links):&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Link para cabeçalho 1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Link para cabeçalho 2&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 24pt;&quot;&gt;Cabeçalho 1&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Texto texto texto texto&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 24pt;&quot;&gt;Cabeçalho 2&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Texto texto texto texto&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;(Nota: O nome de um atributo id deve começar com uma letra)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 24pt;&quot;&gt;Posso criar link para mais alguma coisa?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Você pode criar link para um endereço de e-mail. Isto é feito de modo semelhante aos links para&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;documentos.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 14pt;&quot;&gt;Exemplo 6:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;a href=&quot;mailto:nobody@html.net&quot;&amp;gt;Enviar e-mail para nobody em HTML.net&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Será renderizado no navegador assim:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: navy; font-family: Courier;&quot;&gt;Enviar e-mail para nobody em HTML.net&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;A única diferença é que no lugar do endereço do documento você escreve &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;mailto: &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;seguido pelo&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;endereço de e-mail. Quando o link é clicado o programa de e-mail padrão do usuário é aberto com o&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;endereço do link já digitado na linha para destinatário. Mas, atenção, isto só irá funcionar se o&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;usuário tiver um programa de e-mail instalado na sua máquina. Faça uma experiência com este tipo&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;de link clicando no exemplo acima.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Existem outros atributos que eu deva conhecer?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Par criar links você sempre usa o atributo &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;href&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;. Adicionalmente você pode usar um &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;title&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;(título) &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;para seu link:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 14pt;&quot;&gt;Exemplo 7:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;a href=&quot;http://www.html.net/&quot; title=&quot;Visite HTML.net e aprenda&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;HTML&quot;&amp;gt;HTML.net&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Será renderizado no navegador assim:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: navy; font-family: Times-Roman;&quot;&gt;HTML.net&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;O atributo title é usado para fornecer uma breve descrição do link. Se você - sem clicar no link -&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;colocar o cursor do mouse sobre o link, vai aparecer o texto &quot;Visite o site HTML.net e aprenda&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;HTML&quot;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: TTFF4B8290t00; font-size: 24pt;&quot;&gt;Lição 9: Imagens&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;O que você acha de poder adicionar uma imagem do Tim Bernes-Lee o inventor do HTML no&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;centro da sua página?&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Ops, isto soa como um desafio...&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Talvez, mas é muito fácil de fazer. Tudo o que você precisa é da nossa já conhecida tag:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 1:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;img src=&quot;paisagem1.jpg&quot; alt=&quot;Paisagem1&quot; /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Será renderizado no navegador assim:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;O que você tem a fazer é dizer ao navegador que quer inserir uma imagem (&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;img&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;) e depois informar&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;onde a imagem esta localizada (&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;, abreviatura para &quot;source&quot; - local de armazenagem ).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Notar que a tag imagem é do tipo comando isolado, isto é, uma só tag de abertuta e fechamento.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Semelhante a tag &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;br /&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;que não precisa de um texto inserido nela.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;&quot;tim.jpg&quot; é o nome do arquivo da imagem que você quer inserir na página. &quot;.jpg&quot; é a extensão do&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;tipo de imagem. Tal como a extensão &quot;.htm&quot; para arquivos de documentos HTML, &quot;.jpg&quot; informa&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;ao navegador que o arquivo é uma imagem. São três os tipos de imagens que você pode inserir na&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Times-Roman;&quot;&gt;sua página:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTFF4E6BF0t00; font-size: 9pt;&quot;&gt;• &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Times-Roman;&quot;&gt;GIF (Graphics Interchange Format)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: TTFF4E6BF0t00; font-size: 9pt;&quot;&gt;• &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Times-Roman;&quot;&gt;JPG / JPEG (Joint Photographic Experts Group)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: TTFF4E6BF0t00; font-size: 9pt;&quot;&gt;• &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;PNG (Portable Network Graphics)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Em geral imagens GIF são melhores para gráficos e desenhos e imagens JPEG são melhores&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;para fotografia&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;. Existem duas razões para isto: primeiro, imagens GIF são constituidas por 256&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;cores, e imagens JPEG por milhões de cores, segundo, imagens GIF são melhores otimizadas para&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;imagens simples ao passo que imagens JPEG são melhores otimizadas para imagens complexas.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Quanto melhor a compressão tanto menor o tamanho do arquivo e tanto mais rápido a página é&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;carregada no navegador. Como você deve saber por experiência própria, páginas&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;desnecessariamente &quot;pesadas&quot; para carregar são frustantes para o usuário.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Tradicionalmente os formatos GIF e JPEG tem sido os mais empregados, mas ultimamente o&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;formato PNG tem se tornado cada vez mais popular (notadamente em detrimento do formato GIF).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;O formato PNG é em vários aspectos melhor que os formatos JPEG e GIF: milhões de cores e&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;efetiva compressão.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Onde consigo minhas imagens?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Para criar suas próprias imagens você precisa de um programa de edição de imagens. &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Um&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;programa de edição de imagens é a ferramenta essencial para criação de websites com grande&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;impacto visual.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Lamentavelmente, nenhum editor de imagem vem instalado com o Windows ou qualquer outro&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;sistema operacional. Assim, você deve considerar a aquisição do Paint Shop Pro, do PhotoShop ou&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;do Macromedia Fireworks, que são os três melhores editores de imagens atualmente existentes no&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;mercado.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Contudo, como já dissemos, não há necessidade de comprar um programa caro para acompanhar&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;este tutorial. Por enquanto, você poderá fazer o download de um exelente editor de imagens&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;chamado &lt;/span&gt;&lt;span style=&quot;color: navy; font-family: Times-Roman;&quot;&gt;Irfan View &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;que é freeware, isto é, não custa nada.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Ou você pode fazer download de imagens existentes na web. Mas, por favor, se optar por fazer o&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;download de imagens da Internet, cuidado para não violar direitos autorais de terceiros. A seguir&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;mostro como fazer o download de uma imagem existente na Internet:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;1. Clique com o botão direito do mouse na imagem da Internet.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;2. No menu que aparece escolha a opção &quot;Salvar imagem como...&quot;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;3. Na janela que se abre, escolha o lugar no seu computador para salvar e clique &quot;Salvar&quot;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Faça isto com a imagem abaixo e salve no seu computador no mesmo local onde está localizado&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;seus documentos HTML. (Notar que deverá ser salvo o arquivo com formato PNG: logo.png):&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Agora você pode inserir a imagem nos seus documentos. Tente fazer isto em um documento que&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;você criou neste tutorial.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Isto é tudo o que eu preciso saber sobre imagens?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Existem mais algumas coisinhas que você precisa saber.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Primeiro, você pode inserir imagens que estão localizadas em outros diretórios ou até mesmo em&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;outros websites:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 2:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;img src=&quot;images/cursoht.jpg&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 3:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;img src=&quot;http://www.html.net/cursoht.jpg&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Segundo, imagens podem ser links:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 4:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;a href=&quot;http://www.html.net&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;img src=&quot;cursoht.jpg&quot;&amp;gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Será renderizado no navegador assim: (clique na imagem):&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Existem outros atributos que eu deva conhecer?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Você sempre terá que usar o atributo &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;, que diz ao navegador onde a imagem está localizada.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Além dele existem alguns outros atributos que podem ser bastante úteis quando você insere imagens&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;em uma página.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;O atributo &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;alt &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;é usado para fornecer uma descrição textual alternativa da imagem caso por alguma&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;razão a imagem não seja renderizada para o usuário. Isto é particularmente importante para usuários&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;com restrições visuais ou quando a imagem é carregada muito lentamente. Em conseqüência,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;sempre use o atributo &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;alt&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 5:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;img src=&quot;cursoht.jpg&quot; alt=&quot;logotipo do HTML.net&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Alguns navegadores mostram uma caixa pop-up com o conteúdo do atributo &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;alt &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;quando o usuário&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;passa o mouse sobre a imagem. Tenha em mente que a finalidade principal do atributo &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;alt &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;é a de&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;fornecer uma alternativa textual para imagem. O atributo &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;alt &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;não deve ser usado para criar&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;mensagens pop-up uma vez que os leitores de tela passarão uma mensagem que não descreve a&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;imagem para os usuários com restrições visuais.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;O atributo &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;title &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;pode ser usado para fornecer uma curta descrição da imagem:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 6:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;img src=&quot;cursoht.jpg&quot; title=&quot;Aprenda HTML no site HTML.net&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Será renderizado no navegador assim:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Coloque o ponteiro do mouse sobre a imagem, sem clicar e aparecerá uma caixa pop-up com o texto&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;&quot;Aprenda HTML no site HTML.net&quot; .&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Dois outros atributos importantes são &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;width &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;e &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 7:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;img src=&quot;cursoht.jpg&quot; width=&quot;141&quot; height=&quot;32&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Será renderizado no navegador assim:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Os atributos &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;width &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;e &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;height &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;podem ser usados para definir respectivamente, a largura e a altura&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;da imagem. O valor adotado para medidas é o pixel. Pixel é a unidade de medida usada para medir a&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;resolução da tela. (As resoluções de tela mais comuns são de 800x600 e 1024x768 pixels). Ao&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;contrário de centímetros, pixel é uma inidade de medida relativa que depende da resolução da tela.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Usuários com grande resolução de tela terão 25 pixels em 1 centímetro de tela enquanto aqueles&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;com baixa resolução de tela terão os mesmos 25 pixels em 1,5 cm de tela.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Se não forem definidos os valores para width eheight, a imagem será inserida com seu tamanho&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;real. Com width e height você pode alterar o tamanho da imagem:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 8:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;img src=&quot;logo.gif&quot; width=&quot;32&quot; height=&quot;32&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Será renderizado no navegador assim:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Contudo, o tempo de descarga da imagem será sempre aquele requerido como se ela tivesse suas&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;dimensões reais, mesmo que você diminua seu tamanho com uso destes atributos. Assim, &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;você não&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;deve diminuir o tamanho das imagens com o uso dos atributos width e height&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;. Se você precisa&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;diminuir a imagem diminua suas dimensões reais em um editor de imagem para tornar suas páginas&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;mais leves e mais rápidas.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Dito isto, acrescentamos que é sempre uma boa idéia definir os atributos width e height para&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;imagens, pois assim fazendo o navegador reservará o espaço para descarga da imagem previamente.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Isto acaba por permitir ao navegador, saber com antecedência (antes de descarregar as imagens)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;como será o layout da página.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Por enquanto isto é tudo sobre o Tim Berners-Lee e sobre imagens.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: TTFF4B8290t00; font-size: 24pt;&quot;&gt;Lição 10: Tabelas&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Tabelas são usadas para apresentar &quot;dados tabulares&quot; &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;, isto é, informação que deva ser&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;apresentada em linhas e colunas, de forma lógica.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;É difícil?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Criar tabelas em HTML pode parecer complicado, mas se você ficar frio e acompanhar passo a&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;passo a explicação, verá que tudo é evidente - tal como acontece com tudo no HTML.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 1:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;table&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 1&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 2&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 3&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 4&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/table&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Será renderizado no navegador assim:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Célula 1 Célula 2&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Célula 3 Célula 4&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Qual a diferença entre &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Courier-Bold; font-size: 18pt;&quot;&gt;&amp;lt;tr&amp;gt; &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;e &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Courier-Bold; font-size: 18pt;&quot;&gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Como você deve ter visto no exemplo acima, este foi o código HTML mais complicado que&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;escrevemos até agora. Vamos analisar isto por partes e explicar as diferentes tags:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;3 tags básicas são usadas para inserir tabelas:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: TTFF4E6BF0t00; font-size: 9pt;&quot;&gt;• &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;table&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;começa e termina uma tabela. Evidente.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: TTFF4E6BF0t00; font-size: 9pt;&quot;&gt;• &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;tr&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;significa &quot;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;t&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;able &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;r&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;ow&quot; - linha de tabela - começa e termina e uma linha horizontal da&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;tabela. Também evidente.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: TTFF4E6BF0t00; font-size: 9pt;&quot;&gt;• &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;td&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;significa &quot;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;t&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;able &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;d&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;ata&quot; - dados da tabela. começa e termina cada célula contida nas&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;linhas da tabela. Tudo simples e evidente.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Eis o acontece no Exemplo 1: a tabela começa com &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;table&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;, segue-se uma &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;, que indica o&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;início de uma nova linha. Duas células são então inseridas na linha: &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Célula 1&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;/td&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;e&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Célula 2&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;. A linha termina com &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;/tr&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;e uma nova linha &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;tr&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;começa imediatamente&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;a seguir. A nova linha também contém duas células. A tabela termina com &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;/table&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Para esclarecer: &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;linhas são horizontais e colunas são verticais, ambas contendo células&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Célula 1 Célula 2&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Célula 3 Célula 4&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Célula 1 e Célula 2 formam uma linha. Célula 1 e Célula 3 formam uma coluna.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;No exemplo acima a tabela tem duas linhas e duas colunas. Uma tabela pode conter um número&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;ilimitado de linhas e colunas.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 2:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;table&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 1&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 2&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 3&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 4&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 5&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 6&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 7&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 8&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 9&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 10&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 11&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 12&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/table&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Será renderizado no navegador assim:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Célula 1 Célula 2 Célula 3 Célula 4&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Célula 5 Célula 6 Célula 7 Célula 8&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Célula 9 Célula 10 Célula 11 Célula 12&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Existem atributos?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Claro! existem atributos. Por exemplo, o atributo border que é usado para definir a espessura de&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;uma borda em volta da tabela:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 3:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;table border=&quot;1&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 1&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 2&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 3&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 4&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/table&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Será renderizado no navegador assim:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Célula 1 Célula 2&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Célula 3 Célula 4&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;A espessura da borda é especificada em pixels (&lt;/span&gt;&lt;span style=&quot;color: navy; font-family: Times-Roman;&quot;&gt;Ver lição 9&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Tal como fizemos com as imagens, podemos definir width - largura - em pixels, para uma tabela -&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;ou alternativamente em percentagem da tela:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 4:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;table border=&quot;1&quot; width=&quot;30%&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Este exemplo renderiza no navegador uma tabela com largura igual a 30% da largura da tela. Tente&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;você mesmo.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Mais atributos?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Existe uma grande quantidade de atributos para tabelas. A seguir mais dois:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: TTFF4E6BF0t00; font-size: 9pt;&quot;&gt;• &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;align: define o alinhamento horizontal do conteúdo da tabela, de uma linha ou de uma&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;célula. Por exemplo, left, centre ou right (à esquerda, no centro ou à direita).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: TTFF4E6BF0t00; font-size: 9pt;&quot;&gt;• &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;valign: define o alinhamento vertical do conteúdo de uma célula. Por exemplo, top, middle&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;ou bottom (em cima, no meio ou em baixo).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 5:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td align=&quot;right&quot; valign=&quot;top&quot;&amp;gt;Célula 1&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;O que posso inserir em tabelas?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Teoricamente você pode inserir qualquer coisa em uma tabela: texto, links e imagens... &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;MAS,&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;tabelas destinam-se a apresentar dados tabulares &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;(isto é, dados que por sua natureza devam ser&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;apresentados em linhas e colunas) então abstenha-se de colocar coisas dentro de tabela&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;simplesmente porque você deseja que elas estejam próximas umas às outras.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Nos primórdios da Internet - isto é, há poucos anos atrás - tabelas eram usadas como ferramenta&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;para construir layout. Se você quer controlar a apresentação de textos e imagens, existe uma&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;maneira bem mais racional (dica:CSS). Adiante veremos isto.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Agora, coloque em prática tudo que você aprendeu e crie várias tabelas de diferentes tamanhos,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;usando diferentes atributos e conteúdos. Isto irá ocupar você por horas.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: TTFF4B8290t00; font-size: 24pt;&quot;&gt;Lição 11: Mais tabelas&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;O título &quot;Mais tabelas&quot; pode sugerir uma lição enfadonha. Mas, veja as coisas pelo lado positivo,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;depois que você se tornar um mestre em tabelas nada mais do HTML poderá desafiá-lo.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;O que mais existe?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Os dois atributos &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;colspan &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;e &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;rowspan &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;são usados para criar tabelas singulares.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;Colspan &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;é a abreviação para &quot;column span&quot;. &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;Colspan &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;é usada na tag &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;td&amp;gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;para indicar&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;quantas colunas estarão contidas em uma célula.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 1:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;table border=&quot;1&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td colspan=&quot;3&quot;&amp;gt;Célula 1&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 2&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 3&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 4&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/table&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Será renderizado no navegador assim:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Célula 1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Célula 2 Célula 3 Célula 4&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Definindo &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;colspan &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;em &quot;3&quot;, a célula na primeira linha conterá três colunas. Se você definir&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;colspan &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;em &quot;2&quot;, a célula conterá duas colunas e assim será necessário inserir mais uma célula na&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;primeira linha para que tenhamos na primeira linha as colunas em acordo com as da segunda linha.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 2:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;table border=&quot;1&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td colspan=&quot;2&quot;&amp;gt;Célula 1&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 2&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 3&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 4&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 5&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/table&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Será renderizado no navegador assim:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Célula 1 Célula 2&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Célula 3 Célula 4 Célula 5&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Que tal rowspan?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Como você já deve ter concluido, &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;rowspan &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;especifica quantas linhas estarão contidas em uma&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;célula:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 3:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;table border=&quot;1&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td rowspan=&quot;3&quot;&amp;gt;Célula 1&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 2&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 3&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;td&amp;gt;Célula 4&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/table&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Será renderizado no navegador assim:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Célula 1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Célula 2&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Célula 3&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Célula 4&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;No exemplo acima &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;rowspan &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;é definido em &quot;3&quot; na Célula 1. Isto especifica que uma célula deve&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;conter 3 linhas. Célula 1 e Célula 2 estão na mesma linha, enquanto Célula 3 e Célula 4 formam&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;duas linhas independentes.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Confuso? Bem, isto na verdade não é descomplicado e você pode se perder. Assim, é sempre uma&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;boa idéia, desenhar a tabela em uma folha de papel antes de começar a codificação HTML.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Não está confuso? Então vá em frente e crie algumas tabela com uso de &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;colspan &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;e &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;rowspan&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: TTFF4B8290t00; font-size: 24pt;&quot;&gt;Lição 12: Layout (CSS)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Não seria ótimo se você pudesse dar à sua página o layout que ela merece?&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Claro! mas como faço isto?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Para o layout da sua página use Cascading Style Sheets (CSS) - Folhas de Estilo em Cascata&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Nesta lição você terá uma breve introdução às CSS. Depois você poderá aprender CSS desde o&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;início no &lt;/span&gt;&lt;span style=&quot;color: navy; font-family: Times-Roman;&quot;&gt;nosso tutorial CSS&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;. Assim, considere esta lição apenas um aperitivo.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;CSS é a melhor metade do HTML. Codificando, não há melhor parceria: &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;HTML é responsável&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;pelo trabalho pesado (a estrutura), enquanto CSS dá o toque de elegância (layout)&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Como mostrado na &lt;/span&gt;&lt;span style=&quot;color: navy; font-family: Times-Roman;&quot;&gt;Lição 7&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;, &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;CSS pode ser adicionado com uso do atributo style&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;. Por exemplo,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;você pode definir o tipo e o tamanho da fonte em um parágrafo:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 1:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;p &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Courier-Bold; font-size: 10pt;&quot;&gt;style=&quot;font-size:20px;&quot;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;gt;Este parágrafo em tamanho de fonte igual a 20px&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;p &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier-Bold; font-size: 10pt;&quot;&gt;style=&quot;font-family:courier;&quot;&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;gt;Este parágrafo em fonte Courier&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;p &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier-Bold; font-size: 10pt;&quot;&gt;style=&quot;font-size:20px; font-family:courier&quot;&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;gt;Este parágrafo em  fonte Courier e&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;tamanho 20px&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Será renderizado no navegador assim:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman; font-size: 15pt;&quot;&gt;Este parágrafo em tamanho de fonte igual a 20px&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;Este parágrafo em fonte  Courier&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 15pt;&quot;&gt;Este parágrafo em  fonte Courier e tamanho 20px&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;No exemplo acima usamos o atributo &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;style &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;para definir o tipo de fonte usado (com a propriedade&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;font-family&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;) e o tamanho da fonte (com a propriedade &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;font-size&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;). Notar que no último&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;parágrafo do exemplo definimos tanto o tipo como o tamanho da fonte separados por um ponto e&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;vírgula.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Está parecendo que há uma grande quantidade de trabalho a&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;executar&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Uma das funcionalidades mais inteligentes das CSS é a possibilidade de controlar o layout de&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;um arquivo central&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;. Em lugar de se usar o atributo &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;style &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;em cada tag, você pode dizer ao&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;navegador como deve ser o layout de todos os textos em uma página:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 2:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;title&amp;gt;Minha primeira página CSS&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier-Bold; font-size: 10pt;&quot;&gt;&amp;lt;style type=&quot;text/css&quot;&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier-Bold; font-size: 10pt;&quot;&gt;h1 {font-size: 30px; font-family: arial}&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier-Bold; font-size: 10pt;&quot;&gt;h2 {font-size: 15px; font-family: courier}&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier-Bold; font-size: 10pt;&quot;&gt;p {font-size: 8px; font-family: times new roman}&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Courier-Bold; font-size: 10pt;&quot;&gt;&amp;lt;/style&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;h1&amp;gt;Minha primeira página CSS&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;h2&amp;gt;Bem vindo à minha primeira página CSS&amp;lt;/h2&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;p&amp;gt;Aqui você verá como funciona CSS&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;No exemplo acima &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;inserimos as CSS na seção head do documento, assim ela se aplica à página&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;inteira &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;. Para fazer isto use a tag &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;&amp;lt;style type=&quot;text/css&quot;&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;que informa ao navegador que&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;você está digitando CSS.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;No exemplo, todos os cabeçalhos da página serão em fonte Arial e tamanho 30px. Todos os&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;subtítulos serão em fonte Courier tamanho 15. E, todos os textos dos parágrafos serão em fonte&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Times New Roman tamanho 8.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Uma outra opção é a de digitar as CSS em um documento separado. &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Com as CSS em um&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;documento separado você pode gerenciar o layout de muitas páginas ao mesmo tempo. &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Muito&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;inteligente, pois você pode mudar de uma só vez, o tipo ou o tamanho da fonte de todo o site, quer&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;ele tenha centenas ou milhares de páginas. Nós não nos aprofundaremos em CSS agora, mas você&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;pode aprender tudo, no futuro, em nosso tutorial CSS.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;O que mais posso fazer com CSS?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;CSS faz muito mais do que definir tipos e tamanhos de fontes. Por exemplo, você pode adicionar&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;cores e fundos. A seguir alguns exemplos para você praticar:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;p &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier-Bold; font-size: 10pt;&quot;&gt;style=&quot;color:green;&quot;&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;gt;Texto verde&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;h1 &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier-Bold; font-size: 10pt;&quot;&gt;style=&quot;background-color: blue;&quot;&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;gt;Cabeçalho com fundo azul&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;body &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier-Bold; font-size: 10pt;&quot;&gt;style=&quot;background-image: url(&#39;http://www.html.net/logo.png&#39;);&quot;&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Tente inserir estes códigos em algumas das suas páginas - experimente as duas formas de inserir,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;tanto como mostrado acima como colocando as CSS na seção head do documento.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;CSS não é nada mais do que cores e tipos de fontes?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Além de cores, tipos de fontes, etc., &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;CSS pode ser usado para controlar a configuração e a&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;apresentação da página &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;(margens, flutuações, alinhamentos, larguras, alturas, etc.) Controlando os&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;diferentes elementos com CSS você será capaz de criar layouts elegantes e precisos.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 3:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;p &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Courier-Bold; font-size: 10pt;&quot;&gt;style=&quot;padding:25px;border:1px solid red;&quot;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;gt;Eu amo CSS&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Será renderizado no navegador assim:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Eu amo CSS&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Com a propriedade &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;float &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;um elemento poderá &quot;flutuar&quot; à esquerda ou à direita. O exemplo&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;seguinte ilustra este princípio:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 4:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;img src=&quot;bill.jpg&quot; alt=&quot;Bill Gates&quot; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Courier-Bold; font-size: 10pt;&quot;&gt;style= &quot;float:left;&quot; &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;sed diam nonummy nibh euismod tincidunt ut laoreet dolore&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;magna aliquam erat volutpat. Ut wisi enim ad minim veniam,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;quis nostrud exerci tation ullamcorper suscipit&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;lobortis nisl ut aliquip ex ea commodo consequat...&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Será renderizado no navegador assim:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Times-Roman;&quot;&gt;nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat...&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;No exemplo mostrado, um elemento (a imagem) flutua à esquerda e o outro&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;elemento (o texto) preenche o espaço deixado à direita.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Com a propriedade &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;position&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;, você pode posicionar um elemento em&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;qualquer lugar da página, com precisão:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 5:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;img src=&quot;bill.jpg&quot; alt=&quot;Bill Gates&quot;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier-Bold; font-size: 10pt;&quot;&gt;style=&quot;position:absolute;bottom:50px;right:10px;&quot; &lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;No exemplo mostrado a imagem foi posicionada a 50 pixels da borda inferior e a 10 pixels da borda&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;direita do navegador. Você pode colocar em qualquer lugar na página. Tente você mesmo. Fácil e&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;legal, eh?&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Legal sim. Mas, fácil?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Você não aprende CSS em 10 minutos&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;. E como foi dito acima, nesta lição você teve apenas uma&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;breve introdução às CSS. No futuro aprenda mais no nosso &lt;/span&gt;&lt;span style=&quot;color: navy; font-family: Times-Roman;&quot;&gt;Tutorial CSS&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Por enquanto concentre-se no HTML, e passe para a próxima lição onde você aprenderá como&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;publicar seu website na Internet para que o mundo todo o veja!&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: maroon; font-family: TT2Bo00;&quot;&gt;Erro de leitura&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: TTFF4B8290t00; font-size: 24pt;&quot;&gt;Lição 13: Uploading páginas&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Até agora somente você conseguiu visualizar suas páginas. Chegou a hora de mostrá-las para o&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;mundo todo.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;O mundo está preparado para ver suas páginas?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;O mundo está preparado sim - você, em breve, estará também. &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Para publicar seu trabalho na&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Internet, você precisa somente de espaço em um servidor e um programa FTP gratuito.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Se você costuma acessar a Internet já deve ter visto que existem vários serviços gratutitos de&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;hospedagem de sites. Seu endereço no servidor será alguma coisa parecida com&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;http://home.servidor.com/~nomedousuario. Você tem que ativar o serviço. Informe-se como fazer&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;isto na documentação fornecida pelo serviço de hospedagem.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Outra opção é obter um espaço gratuito de um servidor na Internet. Isto é igual a registrar uma&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;conta de e-mail (como por exemplo, obter um endereço de e-mail do hotmail) &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;você pode registrarse&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;gratuitamente para obter um espaço em um servidor na Internet&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;. Existem várias companhias&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;que oferecem este serviço gratuito - entre elas a &lt;/span&gt;&lt;span style=&quot;color: navy; font-family: Times-Roman;&quot;&gt;Angelfire &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;(clique em &quot;Sign Up&quot; e escolha membro&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;gratuito - ou faça uma busca no Google para encontrar um serviço gratuito com registro em&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;português) - isto é um processo bem rápido.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Para acessar o servidor você precisa conhecer o &quot;Nome do seu servidor&quot; (Por exemplo,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;ftp.angelfire.com) e ter um nome de usuário e senha.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Isto é tudo que eu preciso?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Para acessar o servidor e publicar as páginas você precisa de um programa FTP. Você não deve ter&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;um programa destes ainda, mas existem vários deles na Internet para download e são gratuitos.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Existem muitos programas FTP. Um dos melhores é o FileZilla, e é gratuito &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;. Você pode obter o&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;FileZilla em &lt;/span&gt;&lt;span style=&quot;color: navy; font-family: Times-Roman;&quot;&gt;filezilla.sourceforge.net&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Como eu faço o upload das páginas?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Abaixo fornecemos um exemplo de como fazer isto usando o servidor Angelfire e o programa&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;FileZilla. Este procedimento é mais ou menos igual para qualquer programa FTP.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Conecte-se à Internet e abra o programa FTP. &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Insira &quot;Host Name&quot; (&quot;ftp.angelfire.com&quot; no&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;&quot;Address&quot;), nome do usuário (em &quot;User&quot;) e senha (em &quot;Password&quot;) clique &quot;Connect&quot;. Você agora&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;tem acesso ao servidor. Em um lado da janela do programa você verá os diretórios e arquivos do seu&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;computador (&quot;Local Site&quot;), e no outro o do servidor (&quot;Remote Site&quot;):&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Ache os seus documentos HTML e imagens a serem publicadas (no &quot;Local site&quot;) e transfira para o&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;servidor (&quot;Remote site&quot;) simplesmente dando um clique duplo nos arquivos. Agora o mundo todo&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;poderá ver seu site! (Por exemplo, no endereço&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;http://www.angelfire.com/folk/htmlnet/pagina1.htm).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Dê a uma das páginas o nome de &quot;index.htm&quot; (ou &quot;index.html&quot;) e ela será automaticamente a&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;página de entrada no site, ou seja, basta digitar http://www.angelfire.com/folk/htmlnet (sem&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;qualquer nome de arquivo) e abrirá http://www.angelfire.com/folk/htmlnet/index.htm.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Para mais adiante será uma boa idéia comprar um domínio (espaço no servidor) só para você&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;(www.seu-nome.com) e assim ter um nome do site bem mais curto e fácil de guardar que aqueles&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;fornecidos por um serviço gratuito da Internet. Você pode encontrar na Internet várias firmas que&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;vendem domínio. Faça uma busca do Google.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: TTFF4B8290t00; font-size: 24pt;&quot;&gt;Lição 14: Web standards e validação&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Nesta lição você aprenderá mais alguns conceitos teóricos do HTML.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;O que mais há para conhecer sobre HTML?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;HTML pode ser escrito de várias maneiras. O navegador está apto a ler HTML escrito de várias&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;maneiras. Podemos dizer que &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;HTML tem muitos dialetos&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;. Esta é a razão porquê alguns websites&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;são apresentados de formas diversas em diferentes navegadores.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Desde o aparecimento da Internet tem sido feitas várias tentativas para se normatizar o&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;HTML notadamente através do &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: navy; font-family: Times-Bold;&quot;&gt;World Wide Web Consortium (W3C) &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;fundado por Tim&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Berners-Lee (yep! o grande sujeito que inventou o HTML). Mas, este tem sido um árduo e longo&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;caminho.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;No passado - quando você tinha que comprar um navegador - Netscape dominava o mercado de&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;navegadores. Àquela época as normas para o HTML estavam nas suas versões 2.0 e 3.2. Mas pelo&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;fato de dominar 90% do mercado a Netscape não teria - e não teve - que se preocupar muito com&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;normas. Pelo contrário, a Netscape inventava seus próprios elementos de marcação que não&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;funcionavam em outros navegadores.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Por muitos anos a Microsoft ignorou completamente a Internet. Em determinado momento,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;resolveu competir com a Netscape e lançou seu navegador próprio. A primeira versão do navegador&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;da Microsoft&#39;s, o Internet Explorer, não era melhor do que o Netscape no suporte às normas do&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;HTML. Mas, a Microsoft resolveu distribuir seu navegador gratuitamente (isto sempre agrada a&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;todos) e o Internet Explorer em pouco tempo tornou-se o navegador mais usado e mais popular.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;A partir das versões 4 e 5 a Microsoft anunciava que seus navegadores ofereciam cada vez maior&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;suporte às normas HTML do W3C. A Netscape não se movimentou para atualizar seu navegador e&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;continuou a colocar no mercado a velha e desatualizada versão 4.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;O que vem a seguir é história. Nos dias atuais as normas HTML estão na sua versão 4.01 e no&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;XHTML. Hoje em dia é o Internet Explorer que detém quase 90% do mercado. O Internet Explorer&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;ainda tem seus elementos próprios, mas oferece suporte para as normas HTML do W3C. Os&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;navegadores Mozilla, Opera e Netscape também suportam as normas.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Então, quando você codifica HTML de acordo com as normas do W3C, você está construindo&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;um website para ser visualizado em todos os navegadores &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;- não só agora mas também no futuro.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;E felizmente, &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;tudo o que você aprendeu neste tutorial está de acordo com a mais nova versão&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;do HTML, que é o XHTML&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Legal! Posso anunciar?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Devido a existência de diferentes tipos de HTML, você precisa informar ao navegador qual é o&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;&quot;dialeto&quot; do HTML e no seu caso você aprendeu XHTML. Para informar ao navegador, você usa o&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Document Type Definition. O Document Type Definition deve ser escrito &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;sempre &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;no topo do&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Times-Roman;&quot;&gt;documento:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Times-Bold;&quot;&gt;Exemplo 1:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier-Bold; font-size: 10pt;&quot;&gt;&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier-Bold; font-size: 10pt;&quot;&gt;&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier-Bold; font-size: 10pt;&quot;&gt;&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; lang=&quot;pt-br&quot;&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;title&amp;gt;Título&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;p&amp;gt;texto texto&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Além do Document Type Definition (escrito na primeira linha no exemplo acima), que informa ao&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;navegador que você está codificando XHTML, você precisa ainda adicionar informação extra na tag&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;html, usando os atributos &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;xmlns &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;e &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;lang&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;xmlns &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;é abreviação de &quot;XML-Name-Space&quot; e deve ter sempre o valor&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold;&quot;&gt;http://www.w3.org/1999/xhtml&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;. Isto é tudo o que você precisa saber. Se você tem o hábito ou&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;gosta de se aprofundar e conhecer coisas complicadas poderá ler mais sobre namespaces no &lt;/span&gt;&lt;span style=&quot;color: navy; font-family: Times-Roman;&quot;&gt;site do&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: navy; font-family: Times-Roman;&quot;&gt;W3C&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;No atributo &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Courier;&quot;&gt;lang &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;você específica em que língua (aqui trata-se de linguagem humana) o documento&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;é escrito. As abreviaturas para as línguas existentes no mundo todo, estão nas &lt;/span&gt;&lt;span style=&quot;color: navy; font-family: Times-Roman;&quot;&gt;ISO 639 standard &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;. No&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;exemplo acima a língua definida no atributo é o português do Brasil (&quot;pt-br&quot;).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Uma DTD informará ao navegador como deve ser lido e renderizado o HTML. Use o exemplo&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;mostrado, como um template para todos os seus futuros documentos HTML.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;O DTD é importaante ainda, para a validação da página.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Times-Bold; font-size: 18pt;&quot;&gt;Validação? Porquê deveria eu fazer isto?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Insira o DTD nas suas páginas e poderá verificar erros no seu HTML, usando o &lt;/span&gt;&lt;span style=&quot;color: navy; font-family: Times-Roman;&quot;&gt;validador gratuito&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: navy; font-family: Times-Roman;&quot;&gt;do W3C&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Para testar o validador faça o seguinte: crie uma página e publique na Internet. A seguir entre em&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: navy; font-family: Times-Roman;&quot;&gt;validator.w3.org &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;e lá digite o endereço (a URL) da sua página, depois clique no botão validar. Se&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;seu HTML estiver correto, vai aparecer uma mensagem de congratulações. Se não, será apresentada&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;uma lista de erros, informando o quê está errado e onde. Cometa alguns erros propositais no seu&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;código para verificar o que acontece.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;O validador não é útil somente no encontro de erros. Alguns navegadores tentam interpretar os erros&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;cometidos pelos desenvolvedores e consertar o código mostrando a página corretamente. Em&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;navegadores assim você nunca encontrará erros no próprio navegador. Já outros navegadores não&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;aceitam o erro e apresentam a página arruinada ou mesmo nem apresentam. O validador então ajuda&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;você a encontrar erros que você não tenha nem idéia de que existiam&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;Sempre valide suas páginas, para ter certeza que elas serão mostradas corretamente em todos os&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: Times-Roman;&quot;&gt;navegadores.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vetortecinformatica.blogspot.com/feeds/556447237704774194/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://vetortecinformatica.blogspot.com/2010/12/curso-de-html.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/547239981044631330/posts/default/556447237704774194'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/547239981044631330/posts/default/556447237704774194'/><link rel='alternate' type='text/html' href='http://vetortecinformatica.blogspot.com/2010/12/curso-de-html.html' title='curso de HTML'/><author><name>vetortec informatica</name><uri>http://www.blogger.com/profile/01557177860168805694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-547239981044631330.post-1042663459347486874</id><published>2010-11-23T15:14:00.000-02:00</published><updated>2010-11-23T15:14:18.845-02:00</updated><title type='text'>provedor Wireless</title><content type='html'>&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:WordDocument&gt;   &lt;w:View&gt;Normal&lt;/w:View&gt;   &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:HyphenationZone&gt;21&lt;/w:HyphenationZone&gt;   &lt;w:PunctuationKerning/&gt;   &lt;w:ValidateAgainstSchemas/&gt;   &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:Compatibility&gt;    &lt;w:BreakWrappedTables/&gt;    &lt;w:SnapToGridInCell/&gt;    &lt;w:WrapTextWithPunct/&gt;    &lt;w:UseAsianBreakRules/&gt;    &lt;w:DontGrowAutofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:LatentStyles DefLockedState=&quot;false&quot; LatentStyleCount=&quot;156&quot;&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if !mso]&gt;&lt;img src=&quot;http://img2.blogblog.com/img/video_object.png&quot; style=&quot;background-color: #b2b2b2; &quot; class=&quot;BLOGGER-object-element tr_noresize tr_placeholder&quot; id=&quot;ieooui&quot; data-original-id=&quot;ieooui&quot; /&gt; &lt;style&gt;
st1\:*{behavior:url(#ieooui) }
&lt;/style&gt; &lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:&quot;Tabela normal&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-parent:&quot;&quot;;
 mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
 mso-para-margin:0cm;
 mso-para-margin-bottom:.0001pt;
 mso-pagination:widow-orphan;
 font-size:10.0pt;
 font-family:&quot;Times New Roman&quot;;
 mso-ansi-language:#0400;
 mso-fareast-language:#0400;
 mso-bidi-language:#0400;}
&lt;/style&gt; &lt;![endif]--&gt;  &lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: #0000c0; font-family: Verdana;&quot;&gt;&lt;u&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;Montando um provedor de acesso wireless.&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;/u&gt; &lt;br style=&quot;color: #073763;&quot; /&gt; &lt;br /&gt;
&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Verdana;&quot;&gt;Como começar a montagem do provedor?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #0000c0; font-family: Verdana;&quot;&gt; &lt;br /&gt;
&lt;br /&gt;
O primeiro passo só pode ser dado se tiver o &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Verdana;&quot;&gt;link Internet&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #0000c0; font-family: Verdana;&quot;&gt;, esse link pode ser adquirido de várias maneiras.&lt;br /&gt;
&lt;br /&gt;
Geralmente o link é adquirido de uma operadora de telecomunicação ativa na região onde é pretendida a distribuição do sinal, o custo depende da operadora e da região, são links mais &quot;potentes&quot; que garantem qualidade e a velocidade de banda, e justamente por ter estas propriedades é que tem valor mais elevado. &lt;br /&gt;
&lt;br /&gt;
Também pode ser usado o sinal de um ADSL ou de um CableModem, mas neste caso o sistema fica com um link &quot;menos potente&quot; porque que não tem garantia de banda, e com isso repassando um serviço menos &lt;a href=&quot;http://www.ibytes.com.br/dicas.php?id=322&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;profissional&lt;/span&gt;&lt;/a&gt; para seu cliente, em contra partida, o valor é bem mais acessível.&lt;br /&gt;
&lt;br /&gt;
Se por acaso opte por este tipo de serviço não deve ser ofertada a venda de IPs válidos, isto quer dizer que empresas que necessitam de servidores com IP´s válidos na Internet para hospedagem de sites, VPN ou banco de dados estão fora da lista de possíveis clientes. &lt;br /&gt;
&lt;br /&gt;
Se for adquirir de um provedor de internet que já possui um link grande, você deve ter uma pessoa na qual você tenha muita confiança, pois na maioria dos casos o provedor cobra um valor menor que uma operadora de telecomunicação, mas não &quot;agüenta o tranco&quot; e diminui a velocidade do link aos poucos sem que seja percebida, atingindo seu cliente diretamente e gerando má qualidade de serviços para seu negócio. &lt;br /&gt;
&lt;br /&gt;
Para que quem quer ser profissional deve comprar um link de uma operadora de telecomunicações que seja grande e que esteja estável, apesar do custo ser maior, o serviço será de qualidade e seriedade. &lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Verdana;&quot;&gt;É preciso ter um projeto:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #0000c0; font-family: Verdana;&quot;&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Verdana;&quot;&gt;Visada:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #0000c0; font-family: Verdana;&quot;&gt; é preciso saber se os pontos onde você irá atender os clientes possui visada direta, é o mesmo que dizer que os pontos devem ser visíveis e diretos para todos os pontos remotos. &lt;br /&gt;
Um bom local sugerido é um prédio grande ou uma torre bem alta, na verdade, um prédio é até melhor, nesse caso, os condôminos poderiam acessar internet através de cabos LAN que são baratos e assim já é vendida assinatura dos apartamentos. &lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Verdana;&quot;&gt;Saber o número máximo de clientes:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #0000c0; font-family: Verdana;&quot;&gt; tenha certeza da média de clientes atendidos na região, um bom número de clientes para cada Access Point é de no máximo 30 clientes Wlan, ou seja, kits PCI, Kits cliente ou Ethernet Converters, e anexos à ela.&lt;br /&gt;
Depois de uns 30 clientes o equipamento começa a ficar lento, e começa a perder pacotes, e fica impossível trabalhar com níveis de segurança e com qualidade. &lt;br /&gt;
Quando o equipamento começar a ficar lento, será necessária a implementação de novos equipamentos ou novos pontos de distribuição.&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Verdana;&quot;&gt;Quantidade de repetidoras:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #0000c0; font-family: Verdana;&quot;&gt; para cada nova repetidora serão necessários vários novos equipamentos, mas é bom saber que em prédios ou torres próximas uma à outra possibilita a &lt;a href=&quot;http://www.ibytes.com.br/dicas.php?id=322&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;instalação&lt;/span&gt;&lt;/a&gt; de novos pontos de distribuição. &lt;br /&gt;
Para cada novo ponto serão necessários 2 rádios somente para enviar o sinal de um ponto ao outro, mais um equipamento para distribuir o sinal em modo Access Point. &lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Verdana;&quot;&gt;As antenas:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #0000c0; font-family: Verdana;&quot;&gt; utilize sempre antenas direcionais de ganhos menores mas de boa qualidade, são antenas mais caras mas garantem uma uma grande redução no problema de interferências e de ruídos.&lt;br /&gt;
O mesmo se aplica aos amplificadores de potência, só devem ser utilizados amplificadores de potência quando não for realmente possível o enlace, em caso contrário, quanto menos amplificação melhor. &lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Verdana;&quot;&gt;Origem dos Produtos:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #0000c0; font-family: Verdana;&quot;&gt; por novas normas da Anatel, é necessário que sejam utilizados produtos registrados e homologados, só são aceitos novos provedores com projetos de infra-estrutura e licença de funcionamento SCM, e para que isso seja possível a Anatel exige a certificação do fabricante e um projeto assinado por um engenheiro de redes ou elétrico.&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Verdana;&quot;&gt;Atender a prédios:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #0000c0; font-family: Verdana;&quot;&gt; se a finalidade é atender somente prédios, convém centralizar o provedor em locais onde existem vários condomínios, mas antes tenha certeza de que o local onde está sendo instalado não existe concorrência, e nunca utilize duas antenas omni no mesmo local, se utilizar duas antenas omni certamente surgirão problemas de interferência, o modo de interligação entre prédios deve ser realizado com protocolos de comunicação especiais desenvolvidos para redes externas, como o MultiLink da Samsung, TurboCell da Karlnet ou Worp da Proxim, esses são protocolos específicos para conexão em espaço aberto (outdoor) e garantem melhor desempenho e qualidade no link entre os pontos de conexão diminuindo problemas com interferências e aumentando o nível de Throughput.&lt;br /&gt;
É altamente recomendável que seja dada preferência para equipamentos de 5.8 Ghz para fazer a ligação entre as torres de transmissão (backbone), assim o sistema de distribuição fica livre de interferências e garante uma boa performance. &lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Verdana;&quot;&gt;Atender a residências:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #0000c0; font-family: Verdana;&quot;&gt; se o cliente for um &lt;i&gt;Access Point Client&lt;/i&gt;, isso significa que o sistema está trabalhando com o equipamento em modo 802.11b Open Share, e neste modo de operação as distâncias são limitadas entre 3 a 4 Km no máximo, por isso, deve ser escolhido um local onde a abrangência aos clientes seja bem grande para garantir o uso total do equipamento.&lt;br /&gt;
Se o interesse é em trabalhar com clientes residenciais e condomínios ao mesmo tempo, deve-se utilizar um equipamento diferente para cada finalidade.&lt;br /&gt;
Uma central irá fazer o trabalho de Access Point e a outra vai fazer o MultiLink para os prédios. &lt;br /&gt;
Procedendo dessa forma evita-se o comprometimento do link com os clientes evitando saturação da banda para determinados locais.&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Verdana;&quot;&gt;Os custos:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #0000c0; font-family: Verdana;&quot;&gt; se for ofertado aos clientes 256 Kbps compartilhado, significa que cada estação chave irá receber 256K bps 24 horas por dia nos 7 dias por semana.&lt;br /&gt;
Com isso, é preciso estar atento ao consumo de banda em excesso pois o &lt;a href=&quot;http://www.ibytes.com.br/dicas.php?id=322&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;lucro&lt;/span&gt;&lt;/a&gt; vem da utilização do link ou da não utilização.&lt;br /&gt;
Um cliente empresarial utiliza maior quantidade de banda que um cliente residencial, por isso o valor da mensalidade do cliente empresarial deve ser maior que um cliente residencial.&lt;br /&gt;
Ainda deve ser lembrado que um cliente empresarial exige mais seriedade no link, deve-se ter o menor nível de problemas possível, menor nível de problemas que um usuário residencial.&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Verdana;&quot;&gt;Macete:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #0000c0; font-family: Verdana;&quot;&gt; em regra geral, a média é de 10 para 1, isso quer dizer que para cada 256 Kbps verdadeiros, podem ser &quot;pendurados&quot; até dez clientes com a mesma velocidade, e com o tempo, a otimização do consumo deverá ser adequada para cada caso.&lt;br /&gt;
&lt;br /&gt;
É comum pensar que se 1 Mbps tem 4 X 256 Kbps, é possível colocar até 40 clientes em cada Mb, mas não é bem assim, em cada caso deve ser analisado o consumo da banda, e sendo assim, a otimização do sistema é fundamental, se existirem clientes residenciais e clientes empresariais, um alerta é que o consumo da residência é na maioria dos casos durante a noite, e ao contrário, o consumo de uma empresa é durante o dia.&lt;br /&gt;
&lt;br /&gt;
Note que cada caso deve ser estudado com muito cuidado, pois o truque para ganhar dinheiro está justamente na análise do consumo de banda, e é claro, na correta configuração da largura de banda para cada cliente, por isso, é &lt;a href=&quot;http://www.ibytes.com.br/dicas.php?id=322&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;importante&lt;/span&gt;&lt;/a&gt; a escolha de equipamentos.&lt;br /&gt;
&lt;br /&gt;
Em pouco tempo já se sabe se o empreendedor irá crescer ou se vai afundar, mas o segredo é não ter pressa para vender e fazer vendas bem feitas, como se sabe, muitos precisam do acesso, e todos querem ganhar dinheiro, não é verdade?&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vetortecinformatica.blogspot.com/feeds/1042663459347486874/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://vetortecinformatica.blogspot.com/2010/11/provedor-wireless.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/547239981044631330/posts/default/1042663459347486874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/547239981044631330/posts/default/1042663459347486874'/><link rel='alternate' type='text/html' href='http://vetortecinformatica.blogspot.com/2010/11/provedor-wireless.html' title='provedor Wireless'/><author><name>vetortec informatica</name><uri>http://www.blogger.com/profile/01557177860168805694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-547239981044631330.post-7180826271727648466</id><published>2010-11-23T00:03:00.000-02:00</published><updated>2010-11-23T00:03:14.239-02:00</updated><title type='text'>Uma das melhores apostilas sobre Rede de Computadores que ja vi</title><content type='html'>&lt;!--[if !mso]&gt; &lt;style&gt;
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
&lt;/style&gt; &lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:WordDocument&gt;   &lt;w:View&gt;Normal&lt;/w:View&gt;   &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:HyphenationZone&gt;21&lt;/w:HyphenationZone&gt;   &lt;w:PunctuationKerning/&gt;   &lt;w:ValidateAgainstSchemas/&gt;   &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:Compatibility&gt;    &lt;w:BreakWrappedTables/&gt;    &lt;w:SnapToGridInCell/&gt;    &lt;w:WrapTextWithPunct/&gt;    &lt;w:UseAsianBreakRules/&gt;    &lt;w:DontGrowAutofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:LatentStyles DefLockedState=&quot;false&quot; LatentStyleCount=&quot;156&quot;&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if !mso]&gt;&lt;img src=&quot;http://img2.blogblog.com/img/video_object.png&quot; style=&quot;background-color: #b2b2b2; &quot; class=&quot;BLOGGER-object-element tr_noresize tr_placeholder&quot; id=&quot;ieooui&quot; data-original-id=&quot;ieooui&quot; /&gt; &lt;style&gt;
st1\:*{behavior:url(#ieooui) }
&lt;/style&gt; &lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:&quot;Tabela normal&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-parent:&quot;&quot;;
 mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
 mso-para-margin:0cm;
 mso-para-margin-bottom:.0001pt;
 mso-pagination:widow-orphan;
 font-size:10.0pt;
 font-family:&quot;Times New Roman&quot;;
 mso-ansi-language:#0400;
 mso-fareast-language:#0400;
 mso-bidi-language:#0400;}
&lt;/style&gt; &lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1032&quot;/&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;   &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot;/&gt;  &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;br clear=&quot;all&quot; style=&quot;page-break-before: always;&quot; /&gt; &lt;/span&gt;  &lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;position: relative; z-index: 6;&quot;&gt;&lt;span style=&quot;height: 132px; left: 36px; position: absolute; top: -50px; width: 481px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Tahoma;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br clear=&quot;ALL&quot; /&gt;  &lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Nesta apostila você verá como nasceu a idéia da Rede entre computadores, o seu principal padrão mundialmente utilizado, as topologias, os tipos de cabos, como confeccioná-los, o cabeamento estruturado, os principais equipamentos para uma rede de computadores: Repetidores, Hub, Switch, Roteadores entre muitas outras informações. Qualquer critica, sugestão, apoio, dicas é muito bem vinda, para o enriquecimento deste material.&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: navy;&quot;&gt;Historia&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: navy;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;O primeiro experimento conhecido de conexão de computadores em rede foi feito em 1965, nos estados unidos, por obra de dois cientistas: Lawrence Roberts e Thomas Merril. A experiência foi realizada por meio de uma linha telefônica discada de baixa velocidade, fazendo a conexão entre dois centros de pesquisa em Massachusetts e na Califórnia. Estava plantada ali a semente para o que hoje é a Internet – mãe de todas as redes. &lt;br /&gt;
&lt;br /&gt;
O nascimento das redes de computadores, não por acaso, esta associada a corrida espacial. Boa parte dos elementos e aplicações essenciais para a comunicação entre computadores, como o protocolo TCP/IP, a tecnologia de comutação de pacotes de dados e o correio eletrônico, estão relacionados ao desenvolvimento da Arpanet, a rede que deu origem a internet. Ela foi criada por um programa desenvolvido pela Advanced Research Projects Agency (ARPA) mais tarde rebatizada como DARPA.&lt;br /&gt;
&lt;br /&gt;
A agencia nasceu de uma iniciativa do departamento de defesa dos estados unidos, na época preocupado em não perder terreno na corrida tecnológica deflagrada pelos russos com o lançamento do satélite Sputinik, em 1957. Roberts, acadêmico do MIT (Instituto de Tecnologia de Massachusetts), era um dos integrantes da DARPA e um dos pais da Arpanet, que começou em 1969 conectando quatro universidades: UCLA – Universidade da Califórnia em Los Angeles, Stanford, Santa Bárbara e Utah. A separação dos militares da Arpanet só ocorreu em 1983, com a criação da Milnet. &lt;br /&gt;
&lt;br /&gt;
Alguns dos marcos importantes para a evolução das redes locais de computadores ocorreram nos anos 70. Ate a década anterior os computadores eram maquinas gigantescas que processavam informações por meio da leitura de cartões ou fitas magnéticas. Não havia interação entre o usuário e a maquina. No final dos anos 60 ocorreram os primeiros avanços que resultaram nos sistemas multiusuários de tempo compartilhado. Por meio de terminais interativos, diferentes usuários revezavam-se na utilização do computador central. A IBM reinava praticamente sozinha nessa época. &lt;br /&gt;
&lt;br /&gt;
A partir de 1970, com o desenvolvimento dos minicomputadores de 32 bits, os grandes fabricantes, como IBM, HP e Digital, já começavam a planejar soluções com o objetivo de distribuir o poder de processamento dos mainframes e assim facilitar o acesso às informações. O lançamento do VAX pela Digital, em 1977, estava calcado numa estratégia de criar uma arquitetura de rede de computadores. Com isso, a empresa esperava levar vantagem sobre a rival Big Blue.&lt;br /&gt;
&lt;br /&gt;
Quando um Vax era iniciado, ele já começava a procurar por outras maquinas para se comunicar, um procedimento ousado numa época em que poucas pessoas tinham idéia do que era uma rede. A estratégia deu certo e o VAX alcançou grande popularidade, principalmente em aplicações cientificas e de engenharia. Muitos anos depois, a Digital acabaria sendo comprada pela Compaq, que por sua vez, foi incorporada a HP. Mas as inovações surgidas com o VAX e seu sistema operacional, o VMS, teriam grandes influencias nos computadores que viriam depois. &lt;br /&gt;
&lt;br /&gt;
O sistema operacional Unix, desenvolvido em 1969 nos laboratórios Bell, trouxe inovações que logo o tornou popular nas universidades e nos centros de pesquisa a partir de 1974. Era um sistema portável e modular, capaz de rodar em vários computadores e evoluir junto com o hardware. Os sistemas operacionais da época eram escritos em assembly, linguagem especifica para a plataforma de hardware. O Unix foi escrito quase totalmente em C, uma linguagem de alto nível. Isso deu a ele uma inédita flexibilidade. No começo da década, ferramentas importantes foram criadas para o Unix, como o e-mail, o Telnet, que permitia o uso de terminais remotos, e o FTP, que se transformou no padrão de transferência de arquivos entre computadores em  rede. Foi essa plataforma que nasceu a maior parte das tecnologias que hoje formam a Internet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: navy;&quot;&gt;Ethernet&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10pt;&quot;&gt;Um dos principais saltos tecnológicos que permitiram a popularização das redes foi o desenvolvimento da tecnologia ethernet. Para se ter uma idéia do avanço que essa invenção representou, basta lembrar que, até aquela época, os computadores não compartilhavam um cabo comum de conexão. Cada estação era ligada a outra numa distancia não superior a 2  metros. O pai da Ethernet é Robert Metcalfe, um dos gênios produzidos pelo MIT e por Harvard e fundador da 3Com. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Metcalfe era um dos pesquisadores do laboratório Parc, que a Xerox mantém até hoje em Palo Alto, na Califórnia. Em 1972, ele recebeu a missão de criar um sistema que permitisse a conexão das estações Xerox Alto entre si e com os servidores. A idéia era que todos os pesquisadores do Parc pudessem compartilhar as recém-desenvolvidas impressoras a laser.&lt;br /&gt;
&lt;br /&gt;
Uma das lendas a respeito da criação da Ethernet é que Metcalfe e sua equipe tomaram por base um sistema desenvolvido por um casal de estudantes da universidade de Aloha, no Havaí. Utilizando um cabo coaxial, eles interligaram computadores em duas ilhas para poder conversar. O fato é que, antes de chamar-se Ethernet, a partir de 1973, o sistema de Metcalfe tinha o nome de Alto Aloha Network. Ele mudou a denominação, primeiramente para deixar claro que a Ethernet poderia funcionar em qualquer computador e não apenas nas estações Xerox. E também para reforçar a diferença em relação ao método de acesso CSMA (Carrier Sense Multiple Access) do sistema Aloha. A palavra ether foi uma referencia à propagação de ondas pelo espaço.&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10pt;&quot;&gt;O sistema de Metcalfe acrescentou duas letras, CD (de Collision Detection) à sigla CSMA. Um detalhe importante, porque o recurso de detecção de colisão impede que dois dispositivos acessem o mesmo nó de forma simultânea. Assim, o sistema Ethernet verifica se a rede está livre para enviar a mensagem. Se não estiver a mensagem fica numa fila de espera para ser transmitida. A ethernet começou com uma banda de 2Mbps que permitia conectar 100 estações em até 1 quilometro de cabo. &lt;br /&gt;
&lt;br /&gt;
No inicio, usava-se um cabo coaxial chamado yellow cable, de diâmetro avantajado. A topologia era um desenho de barramento (algo parecido com um varal) no qual o computador ia sendo pendurado. O conector desse sistema foi apelidado de vampiro, porque “mordia” o cabo em pontos determinados. Dali saia um cabo serial que se ligava à placa de rede. O yellow cable podia ser instalado no teto ou no chão, conectado ao cabo menor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;O Mercado da Informação&lt;/b&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10pt;&quot;&gt;A Ethernet não foi a única tecnologia de acesso para redes locais criada nessa época, mas certamente se tornou o padrão mais difundido, por sua simplicidade e eficiência, chegando a mais de 100 milhões de nós no mundo todo. As tecnologias Token Ring, da IBM, e a Arcnet, da Datapoint, chegaram a ter seus dias de gloria (esta ultima ainda é largamente empregada no Japão para processos de automação industrial), mas perderam terreno para a poderosa concorrente. O primeiro impulso para difusão do padrão Ethernet ocorreu quando a Digital, a Intel e a Xerox, em 1980 formaram um consorcio (DIX) para desenvolver e disseminar o padrão que rapidamente evoluiu de 2Mbps para 10Mbps. &lt;br /&gt;
&lt;br /&gt;
O sistema Ethernet foi padronizado pelas especificações do IEEE (Instituto dos Engenheiros de Eletricidade e Eletrônica), órgão que, entre outras funções, elabora normas técnicas de engenharia eletrônica. O protocolo Ethernet corresponde à especificação 802.3 do IEEE, publicada pela primeira vez em 1985. A conexão Ethernet utilizava, inicialmente, dois tipos de cabos coaxiais, um mais grosso (10 Base5) e outro mais fino (10 Base2). A partir de 1990, com o aumento da velocidade para 100Mbps, passou-se a usar o cabo de par trançado (10Base-T e 100Base-T), que tem a vantagem de ser mais flexível e de baixo custo. Com o advento da fibra ótica, o padrão Ethernet já esta em sua terceira geração. A Gigabit Ethernet, com velocidade de até 1Gbps.&lt;br /&gt;
&lt;br /&gt;
Na década de 80, com a chegada dos computadores pessoais, as redes locais começaram a ganhar impulso. O mercado corporativo demandava soluções para compartilhar os elementos mais caros da infra-estrutura de TI (impressoras e discos rígidos). A Novell, uma empresa fundada por mórmons em Salt Lake City, no estado americano de Utah, desenvolveu em 1983, o sistema operacional NetWare para servidores, que usava o protocolo de comunicação IPX, mais simples que o TCP/IP. O protocolo rapidamente ganhou força e chegou a dominar 70% do mercado mundial até meados de 1993.  A década de 80 foi marcada pela dificuldade de comunicação entres redes locais que e formavam e que eram vistas pelo mercado como ilhas de computadores com soluções proprietárias, como SNA, da IBM, DECnet, da Digital, NetWare, da Novell, e NetBIOS da Microsoft. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10pt;&quot;&gt;Esse problema fez com que um casal de namorados da universidade de Stanford, Sandra Lerner e Leonard Bosack, decidisse encontrar uma solução para que as redes locais de cada departamento da universidade pudessem conversar. Diz à lenda que a preocupação do casal, que mais tarde fundaria a Cisco, era trocar e-mails. E por isso inventaram o roteador, o equipamento que permitiu a conexão de duas redes normalmente incompatíveis. &lt;br /&gt;
&lt;br /&gt;
A verdade é que eles não inventaram, mas aperfeiçoaram e muito o projeto inical de um engenheiro chamado Bill Yeager. O produto foi lançado comercialmente em 1987. A Cisco hoje vale Bilhões e o resto é Historia. O quebra-cabeça das redes começa a se fechar a partir do momento que a Arpanet, em 1983, passa a ser de fato a Internet, adotando definitivamente a família de protocolos TCP/IP. No ano seguinte, surge outra grande inovaçã o DNS (Domain Name System), mecanismo para resolver o problema de nome e endereços de servidores na rede. Com a criação da World Wide Web, em 1991, e o desenvolvimento do browser pelo fundador da Netscape, Marc Andreesen, a Internet deslanchou para se tornar a grande rede mundial de computadores. &lt;br /&gt;
&lt;br /&gt;
A difusão do protocolo TCP/IP no mundo corporativo que passou a ser a linguagem universal dos computadores se deu a partir das plataformas Unix da Sun e da HP. Nos anos 90, as empresas já estavam empenhadas em usar a informática para melhorar o processo produtivo. O mercado começou a migrar de plataformas proprietárias para sistemas abertos. A questão não era tecnologia, mas economia. O sistema Unix tinha vários fornecedores, uma plataforma de desenvolvimento mais simples e mais versátil que os tradicionais mainframes. A pluralidade de plataformas passou a ser a regra nas empresas. Isso só foi possível porque os obstáculos à interligação de sistemas de diferentes fabricantes já haviam sido superados.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;A Evolução&lt;/b&gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Tahoma; font-size: 10pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10pt;&quot;&gt;Em 1988, Dave Cutler, líder da equipe da Digital que havia criado o VMS, o arrojado sistema operacional do VAX, foi contratado pela Microsoft. A empresa já havia fracassado em uma tentativa anterior de competir com a Novell. Seu primeiro sistema operacional de rede, o LAN Manager, desenvolvido em conjunto com a IBM, não era páreo para o NetWare. Culter levou para lá boa parte da sua antiga equipe de programadores e também a filosofia que havia norteado a criação do VAX, de que a comunicação em rede deve ser um atributo básico do sistema operacional. Ele liderou o desenvolvimento do Windows NT, lançado em 1993. Com ele, a Microsoft finalmente conseguiu conquistar algum espaço nos servidores. O NT também foi base para o desenvolvimento do Windows 2000 e do Windows XP. De certa forma o XP é neto do velho VMS. &lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10pt;&quot;&gt;Se, há 40 anos, a idéia de uma rede de computadores era a de vários aparelhos conectados, hoje a rede transformou-se numa dos principais meios de interação entre pessoas, de disseminação da informação e da realização de negócios. O radio levou 38 anos até formar um publico de 50 milhões de pessoas. A TV levou 13 anos. A Internet precisou apenas quatro anos para alcançar essa marca. É um salto e tanto para toda a humanidade&lt;/span&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;&lt;img align=&quot;left&quot; height=&quot;143&quot; hspace=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image003.jpg&quot; vspace=&quot;10&quot; width=&quot;175&quot; /&gt;&lt;span style=&quot;color: navy; font-family: Verdana;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;color: navy; font-family: Verdana;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;&lt;img align=&quot;left&quot; height=&quot;161&quot; hspace=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image005.jpg&quot; vspace=&quot;10&quot; width=&quot;252&quot; /&gt;&lt;span style=&quot;color: navy; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;&lt;img height=&quot;124&quot; hspace=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image007.jpg&quot; vspace=&quot;10&quot; width=&quot;293&quot; /&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: navy; font-family: Verdana;&quot;&gt;Topologias das Redes de Computadores&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: navy; font-family: Verdana;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10pt;&quot;&gt;Ao longo da historia das redes, varias topologias foram experimentadas, com maior ou menor sucesso. Os três tipos abaixo são esquemas básicos empregados na conexão dos computadores. Os outros são variantes deles:&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;br /&gt;
Estrela &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Tahoma; font-size: 10pt;&quot;&gt;- &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10pt;&quot;&gt;Todas as conexões partem de um ponto central (concentrador), normalmente um hub ou switch. É o modelo mais utilizado atualmente.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #333399; font-family: Verdana;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: navy; font-family: Verdana;&quot;&gt;Anel &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Verdana;&quot;&gt;- Todos os computadores são conectados em um anel. É a topologia das redes Token Ring, popularizadas pela IBM nos anos 80. Hoje, esse modelo é mais utilizado em sistemas de automação industrial.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;b&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt;Barramento&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10pt;&quot;&gt;- Os computadores são conectados num sistema linear de cabeamento em seqüência. Esse arranjo era usado nas primeiras gerações de redes Ethernet. Está sendo lentamente abandonado.&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;br /&gt;
Cabos&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;O projeto de cabeamento de uma rede, que faz parte do meio físico usado para interligar computadores, é um fator de extrema importância para o bom desempenho de uma rede. Esse projeto envolve aspectos sobre a taxa de transmissão, largura de banda, facilidade de instalação, imunidade a ruídos, confiabilidade, custos de interface, exigências geográficas, conformidade com padrões internacionais e disponibilidades de componentes.&lt;br /&gt;
&lt;br /&gt;
O sistema de cabeamento determina a estabilidade de uma rede. Pesquisas revelam que cerca de 80% dos problemas físicos ocorridos atualmente em uma rede tem origem no cabeamento, afetando de forma considerável a confiabilidade da mesma. O custo para a implantação do cabeamento corresponde a aproximadamente 6% do custo total de uma rede, mais 70% da manutenção de uma rede é direcionada aos problemas oriundos do cabeamento.&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;196&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image008.jpg&quot; width=&quot;217&quot; /&gt;&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Em matéria de cabos, os mais utilizados são os cabos de par trançado, &amp;nbsp;os cabos coaxiais e cabos de fibra óptica. Cada categoria tem suas próprias vantagens e limitações, sendo mais adequado para um tipo específico de rede. &lt;br /&gt;
&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&lt;b&gt;Os cabos de par trançado&lt;/b&gt; são os mais usados pois tem um melhor custo beneficio, ele pode ser comprado pronto em lojas de informática, ou feito sob medida, ou ainda produzido pelo próprio usuário, e ainda são 10 vezes mais rápidos que os cabos coaxiais.&lt;br /&gt;
&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&lt;b&gt;Os cabos coaxiais&lt;/b&gt; permitem que os dados sejam transmitidos através de uma distância maior que a permitida pelos cabos de par trançado sem blindagem (UTP), mas por outro, lado não são tão flexíveis e são mais caros que eles. Outra desvantagem é que a maioria delas requerem o barramento ISA, não encontradas nas Placas mães novas.&lt;br /&gt;
&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&lt;b&gt;Os cabos de fibra óptica&lt;/b&gt; permitem transmissões de dados a velocidades muito maiores e são completamente imunes a qualquer tipo de interferência eletromagnética, porém, são muito mais caros e difíceis de instalar, demandando equipamentos mais caros e mão de obra mais especializada. Apesar da alta velocidade de transferência, as fibras ainda não são uma boa opção para pequenas redes devido ao custo.&lt;/span&gt; &lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;br /&gt;
Cabos de Fibra Óptica&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;Sem as fibras ópticas, a Internet e até o sistema telefônico que temos hoje seriam inviáveis. Com a migração das tecnologias de rede para padrões de maiores velocidades como ATM, Gigabit Ethernet e 10 Gigabit Ethernet, o uso de fibras ópticas vem ganhando força também nas redes locais. O produto começou a ser fabricado em 1978 e passou a substituir os cabos coaxiais nos Estados Unidos na segunda metade dos anos 80. Em 1988, o primeiro cabo submarino de fibras ópticas mergulhou no oceano, dando inicio a superestrada da informação. O físico indiano Narinder Singh Kanpany é o inventor da fibra óptica, que passou a ter aplicações praticas na década de 60 com o advento da criação de fontes de luz de estado sólido, como o raio laser e o LED, diodo emissor de luz. Sua origem, porem, data do século 19, com os primeiros estudos sobre os efeitos da luz. Existem dois tipos de fibras ópticas: As fibras multímodo e as monomodo. A escolha de um desses tipos dependera da aplicação da fibra. As fibras multímodo são mais utilizadas em aplicações de rede locais (LAN), enquanto as monomodo são mais utilizadas para aplicações de rede de longa distancia (WAN). São mais caras, mas também mais eficientes que as multímodo. Aqui no Brasil, a utilização mais ampla da fibra óptica teve inicio ma segunda metade dos anos 90, impulsionada pela implementação dos backbones das operadoras de redes metropolitanas.&lt;br /&gt;
&lt;br /&gt;
Em 1966, num comunicado dirigido à Bristish Association for the Advancement of Science, os pesquisadores K.C.Kao e G.A.Hockham da Inglaterra propuseram o uso de fibras de vidro, e luz, em lugar de eletricidade e condutores de cobre na transmissão de mensagens telefônicas. &lt;span style=&quot;color: red;&quot;&gt;Aqui parou&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Ao contrário dos cabos coaxiais e de par trançado, que nada mais são do que fios de cobre que transportam sinais elétricos, a fibra óptica transmite luz e por isso é totalmente imune a qualquer tipo de interferência eletromagnética. Além disso, como os cabos são feitos de plástico e fibra de vidro (ao invés de metal), são resistentes à corrosão.&lt;br /&gt;
&lt;br /&gt;
O cabo de fibra óptica é formado por um núcleo extremamente fino de vidro, ou mesmo de um tipo especial de plástico. Uma nova cobertura de fibra de vidro, bem mais grossa envolve e protege o núcleo. Em seguida temos uma camada de plástico protetora chamada de cladding, uma nova camada de isolamento e finalmente uma capa externa chamada bainha &lt;span style=&quot;color: red;&quot;&gt;parouaqui&lt;/span&gt;&lt;b&gt;&lt;img height=&quot;130&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image011.jpg&quot; width=&quot;476&quot; /&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;br /&gt;
A transmissão de dados por fibra óptica é realizada pelo envio de um sinal de luz codificado, dentro do domínio de freqüência do infravermelho a uma velocidade de 10 a 15 MHz. As fontes de transmissão de luz podem ser diodos emissores de luz (LED) ou lasers semicondutores. O cabo óptico com transmissão de raio laser é o mais eficiente em potência devido a sua espessura reduzida. Já os cabos com diodos emissores de luz são muito baratos, além de serem mais adaptáveis à temperatura ambiente e de terem um ciclo de vida maior que o do laser. &lt;br /&gt;
&lt;br /&gt;
O cabo de fibra óptica pode ser utilizado tanto em ligações ponto a ponto quanto em ligações multímodo. A fibra óptica permite a transmissão de muitos canais de informação de forma simultânea pelo mesmo cabo. Utiliza, por isso, a técnica conhecida como multiplexação onde cada sinal é transmitido numa freqüência ou num intervalo de tempo diferente. &lt;span style=&quot;color: red;&quot;&gt;parou aqui&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;191&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image012.jpg&quot; width=&quot;362&quot; /&gt;&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;A fibra óptica tem inúmeras vantagens sobre os condutores de cobre, sendo as principais:&lt;br /&gt;
&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp; Maior alcance &lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;Maior velocidade &lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;Imunidade a interferências eletromagnéticas &lt;br /&gt;
&lt;br /&gt;
O custo do metro de cabo de fibra óptica não é elevado em comparação com os cabos convencionais. Entretanto seus conectores são bastante caros, assim como a mão de obra necessária para a sua montagem. A montagem desses conectores, além de um curso de especialização, requer instrumentos especiais, como microscópios, ferramentas especiais para corte e polimento, medidores e outros aparelhos sofisticados.&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;247&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image013.jpg&quot; width=&quot;242&quot; /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;Devido ao seu elevado custo, os cabos de fibras ópticas são usados apenas quando é necessário atingir grandes distâncias em redes que permitem segmentos de até 1 KM, enquanto alguns tipos de cabos especiais podem conservar o sinal por até 5 KM (distâncias maiores são obtidas usando repetidores). &lt;span style=&quot;color: red;&quot;&gt;Parou aqui&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Mesmo permitindo distâncias tão grandes, os cabos de fibra óptica permitem taxas de transferências de até 155 mbps, sendo especialmente úteis em ambientes que demandam uma grande transferência de dados. Como não soltam faíscas, os cabos de fibra óptica são mais seguros em ambientes onde existe perigo de incêndio ou explosões. E para completar, o sinal transmitido através dos cabos de fibra é mais difícil de interceptar, sendo os cabos mais seguros para transmissões sigilosas. A seguir veremos os padrões mais comuns de redes usando fibra ótica:&lt;br /&gt;
&lt;br /&gt;
- FDDI (Fiber Distributed Data Interface)&lt;br /&gt;
- FOIRL (Fiber- Optic InterRepeater Link)&lt;br /&gt;
- 10BaseFL&lt;br /&gt;
- 100BaseFX&lt;br /&gt;
- 1000BaseSX&lt;br /&gt;
- 1000BaseLX&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;br /&gt;
Cabo Coaxial&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;O cabo coaxial foi o primeiro cabo disponível no mercado, e era até a alguns anos atrás o meio de transmissão mais moderno que existia em termos de transporte de dados, existem 4 tipos diferentes de cabos coaxiais, chamados de 10Base5, 10Base2, RG-59/U e RG-62/U.&lt;br /&gt;
&lt;br /&gt;
O cabo 10Base5 é o mais antigo, usado geralmente em redes baseadas em mainframes. Este cabo é muito grosso, tem cerca de 0.4 polegadas, ou quase 1 cm de diâmetro e por isso é muito caro e difícil de instalar devido à baixa flexibilidade. Outro tipo de cabo coaxial é o RG62/U, usado em redes Arcnet. Temos também o cabo RG-59/U, usado na fiação de antenas de TV.&lt;br /&gt;
&lt;br /&gt;
Os cabos 10Base2, também chamados de cabos coaxiais finos, ou cabos Thinnet, são os cabos coaxiais usados atualmente em redes Ethernet, e por isso, são os cabos que você receberá quando pedir por “cabos coaxiais de rede”. Seu diâmetro é de apenas 0.18 polegadas, cerca de 4.7 milímetros, o que os torna razoavelmente flexíveis.&lt;br /&gt;
&lt;br /&gt;
Os cabos coaxiais são cabos constituídos de 4 camadas: um condutor interno, o fio de cobre que transmite os dados; uma camada isolante de plástico, chamada de dielétrico que envolve o cabo interno; uma malha de metal que protege as duas camadas internas e, finalmente, uma nova camada de revestimento, chamada de jaqueta.&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;98&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image014.jpg&quot; width=&quot;517&quot; /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;O cabo Thin Ethernet deve formar uma linha que vai do primeiro ao último PC da rede, sem formar desvios. Não é possível portanto formar configurações nas quais o cabo forma um “Y”, ou que usem qualquer tipo de derivação. Apenas o primeiro e o último micro do cabo devem utilizar o terminador BNC.&lt;br /&gt;
&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;179&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image015.jpg&quot; width=&quot;325&quot; /&gt;&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;O Cabo 10base2 tem a vantagem de dispensar hubs, pois a ligação entre os micros é feita através do conector “T”, mesmo assim o cabo coaxial caiu em desuso devido às suas desvantagens:&lt;br /&gt;
&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;Custo elevado, &lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;Instalação mais difícil e mais fragilidade, &lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;Se o terminador for retirado do cabo, toda a rede sai do ar.&lt;br /&gt;
&lt;br /&gt;
Redes formadas por cabos Thin Ethernet são de implementação um pouco complicada. É preciso adquirir ou construir cabos com medidas de acordo com a localização física dos PCs. Se um dos PCs for reinstalado em outro local é preciso utilizar novos cabos, de acordo com as novas distâncias entre os PCs. Pode ser preciso alterar duas ou mais seções de cabo de acordo com a nova localização dos computadores. Além disso, os cabos coaxiais são mais caros que os do tipo par trançado.&lt;br /&gt;
&lt;/span&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;216&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image016.jpg&quot; width=&quot;310&quot; /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;br /&gt;
O “10” na sigla 10Base2, significa que os cabos podem transmitir dados a uma velocidade de até 10 megabits por segundo, “Base” significa “banda base” e se refere à distância máxima para que o sinal pode percorrer através do cabo, no caso o “2” que teoricamente significaria 200 metros, mas que na prática é apenas um arredondamento, pois nos cabos 10Base2 a distância máxima utilizável é de 185 metros.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;162&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image017.jpg&quot; width=&quot;239&quot; /&gt;&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Usando cabos 10Base2, o comprimento do cabo que liga um micro ao outro deve ser de no mínimo 50 centímetros, e o comprimento total do cabo (do primeiro ao último micro) não pode superar os 185 metros. É permitido ligar até 30 micros no mesmo cabo, pois acima disso, o grande número de colisões de pacotes irá prejudicar o desempenho da rede, chegando a ponto de praticamente impedir a comunicação entre os micros em casos extremos.&lt;/span&gt; &lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;br /&gt;
Cabo Par Trançado&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;O cabo par trançado surgiu com a necessidade de se ter cabos mais flexíveis e com maior velocidade de transmissão, ele vem substituindo os cabos coaxiais desde o início da década de 90. Hoje em dia é muito raro alguém ainda utilizar cabos coaxiais em novas instalações de rede, apesar do custo adicional decorrente da utilização de hubs e outros concentradores. O custo do cabo é mais baixo, e a instalação é mais simples.&lt;br /&gt;
&lt;br /&gt;
O nome “par trançado” é muito conveniente, pois estes cabos são constituídos justamente por 4 pares de cabos entrelaçados. Os cabos coaxiais usam uma malha de metal que protege o cabo de dados contra interferências externas; os cabos de par trançado por sua vez, usam um tipo de proteção mais sutil: o entrelaçamento dos cabos cria um campo eletromagnético que oferece uma razoável proteção contra interferências externas.&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;img height=&quot;86&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image018.jpg&quot; width=&quot;293&quot; /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Existem basicamente dois tipos de cabo par trançad Os Cabos sem blindagem chamados de UTP (Unshielded Twisted Pair) e os blindados conhecidos como STP (Shielded Twisted Pair). A única diferença entre eles é que os cabos blindados além de contarem com a proteção do entrelaçamento dos fios, possuem uma blindagem externa (assim como os cabos coaxiais), sendo mais adequados a ambientes com fortes fontes de interferências, como grandes motores elétricos e estações de rádio que estejam muito próximas. Outras fontes menores de interferências são as lâmpadas fluorescentes (principalmente lâmpadas cansadas que ficam piscando), cabos elétricos quando colocados lado a lado com os cabos de rede e mesmo telefones celulares muito próximos dos cabos.&lt;br /&gt;
&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;168&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image019.jpg&quot; width=&quot;207&quot; /&gt;&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Na realidade o par trançado sem blindagem possui uma ótima proteção contra ruídos, só que usando uma técnica de &lt;i&gt;cancelamento&lt;/i&gt; e não através de uma blindagem. Através dessa técnica, as informações circulam repetidas em dois fios, sendo que no segundo fio a informação possui a polaridade invertida. Todo fio produz um campo eletromagnético ao seu redor quando um dado é transmitido. Se esse campo for forte o suficiente, ele irá corromper os dados que estejam circulando no fio ao lado (isto é, gera Ruído). Em inglês esse problema é conhecido como cross-talk.&lt;br /&gt;
&lt;br /&gt;
A direção desse campo eletromagnético depende do sentido da corrente que esta circulando no fio, isto é, se é positiva ou então negativa. No esquema usado pelo par trançado, como cada par transmite a mesma informação só que com a polaridade invertida, cada fio gera um campo eletromagnético de mesma intensidade mas em sentido contrario. Com isso, o campo eletromagnético gerado por um dos fios é anulado pelo campo eletromagnético gerado pelo outro fio.&lt;br /&gt;
&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;184&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image020.jpg&quot; width=&quot;312&quot; /&gt;&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Além disso, como a informação é transmitida duplicada, o receptor pode facilmente verificar se ela chegou ou não corrompida. Tudo o que circula em um dos fios deve existir no outro fio com intensidade igual, só que com a polaridade invertida. Com isso, aquilo que for diferente nos dois sinais é ruído e o receptor tem como facilmente identificá-lo e eliminá-lo.&lt;br /&gt;
&lt;br /&gt;
Quanto maior for o nível de interferência, menor será o desempenho da rede, menor será a distância que poderá ser usada entre os micros e mais vantajosa será a instalação de cabos blindados. Em ambientes normais porém os cabos sem blindagem costumam funcionar bem.&lt;br /&gt;
&lt;br /&gt;
Existem no total, 5 categorias de cabos de par trançado. Em todas as categorias a distância máxima permitida é de 100 metros. O que muda é a taxa máxima de transferência de dados e o nível de imunidade a interferências. Os cabos de categoria 5 que tem a grande vantagem sobre os outros 4 que é a taxa de transferência que pode chegar até 100 mbps, e são praticamente os únicos que ainda podem ser encontrados à venda, mas em caso de dúvida basta checas as inscrições no cabo, entre elas está a categoria do cabo, como na foto abaix&lt;br /&gt;
&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;82&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image021.jpg&quot; width=&quot;317&quot; /&gt;&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;A utilização do cabo de par trançado tem suas vantagens e desvantagens, vejamos as principais:&lt;/span&gt; &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;u&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Vantagens&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;&lt;b&gt;Preço&lt;/b&gt;. Mesma com a obrigação da utilização de outros equipamentos na rede, a relação custo beneficia se torna positiva.&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;&lt;b&gt;Flexibilidade&lt;/b&gt;. Como ele é bastante flexível, ele pode ser facilmente passado por dentro de conduítes embutidos em paredes.&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;&lt;b&gt;Facilidade&lt;/b&gt;. A facilidade com que se pode adquirir os cabos, pois em qualquer loja de informática existe esse cabo para venda, ou até mesmo para o próprio usuário confeccionar os cabos.&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;&lt;b&gt;Velocidade&lt;/b&gt;. Atualmente esse cabo trabalha com uma taxa de transferência de 100 Mbps.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;i&gt;&lt;u&gt;Desvantagens&lt;br /&gt;
&lt;br /&gt;
&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp; &lt;b&gt;Comprimento. &lt;/b&gt;Sua principal desvantagem é o limite de comprimento do cabo que é de aproximadamente 100 por trecho.&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;&lt;b&gt;Interferência. &lt;/b&gt;A sua baixa imunidade à interferência eletromagnética, sendo fator preocupante em ambientes industriais.&lt;br /&gt;
&lt;br /&gt;
No cabo de par trançado tradicional existem quatro pares de fio. Dois deles não são utilizados pois os outros dois pares, um é utilizado para a transmissão de dados (TD) e outro para a recepção de dados (RD). Entre os fios de números 1 e 2 (chamados de TD+ e TD– ) a placa envia o sinal de transmissão de dados, e entre os fios de números 3 e 6 (chamados de RD+ e RD– ) a placa recebe os dados. Nos hubs e switches, os papéis desses pinos são invertidos. A transmissão é feita pelos pinos 3 e 6, e a recepção é feita pelos pinos 1 e 2. Em outras palavras, o transmissor da placa de rede é ligado no receptor do hub ou switch, e vice-versa.&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Tahoma;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Tahoma; font-size: 10pt;&quot;&gt;&lt;img height=&quot;242&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image022.jpg&quot; width=&quot;247&quot; /&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;(obs.) Um cuidado importante a ser tomado é que sistemas de telefonia utilizam cabos do tipo par trançado, só que este tipo de cabo não serve para redes locais.&lt;/span&gt; &lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;u&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt;Como confeccionar os Cabos&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;A montagem do cabo par trançado é relativamente simples. Além do cabo, você precisará de um conector RJ-45 de pressão para cada extremidade do cabo e de um alicate de pressão para conectores RJ-45 também chamado de Alicate crimpador. Tome cuidado, pois existe um modelo que é usado para conectores RJ-11, que têm 4 contatos e são usados para conexões telefônicas&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;230&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image023.jpg&quot; width=&quot;302&quot; /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;Assim como ocorre com o cabo coaxial, fica muito difícil passar o cabo por conduítes e por estruturas usadas para ocultar o cabo depois que os plugues RJ-45 estão instalados. Por isso, passe o cabo primeiro antes de instalar os plugues. Corte o cabo no comprimento desejado. Lembre de deixar uma folga de alguns centímetros, já que o micro poderá posteriormente precisar mudar de lugar além disso você poderá errar na hora de instalar o plugue RJ-45, fazendo com que você precise cortar alguns poucos centímetros do cabo para instalar novamente outro plugue.&lt;br /&gt;
&lt;br /&gt;
Para quem vai utilizar apenas alguns poucos cabos, vale a pena comprá-los prontos. Para quem vai precisar de muitos cabos, ou para quem vai trabalhar com instalação e manutenção de redes, vale a pena ter os recursos necessários para construir cabos. Devem ser comprados os conectores RJ-45, algumas um rolo de cabo, um alicate para fixação do conector e um testador de cabos. Não vale a pena economizar comprando conectores e cabos baratos, comprometendo a confiabilidade.&lt;br /&gt;
&lt;br /&gt;
O alicate possui duas lâminas e uma fenda para o conector. A lâmina indicada com (1) é usada para cortar o fio. A lâmina (2) serve para desencapar a extremidade do cabo, deixando os quatro pares expostos. A fenda central serve para prender o cabo no conector.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;239&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image024.jpg&quot; width=&quot;362&quot; /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;(1): Lâmina para corte do fio&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;(2): Lâmina para desencapar o fio&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;(3): Fenda para crimpar o conector&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;Corte a ponta do cabo com a parte (2) do alicate do tamanho que você vai precisar, desencape (A lâmina deve cortar superficialmente a capa plástica, porém sem atingir os fios) utilizando a parte (1) do alicate aproximadamente 2 cm do cabo. Pois o que protege os cabos contra as interferências externas são justamente as tranças. À parte destrançada que entra no conector é o ponto fraco do cabo, onde ele é mais vulnerável a todo tipo de interferência Remova somente a proteção externa do cabo, &lt;b&gt;&lt;i&gt;não desencape os fios.&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;116&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image025.jpg&quot; width=&quot;261&quot; /&gt;&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;Identifique os fios do cabo com as seguintes cores:&lt;br /&gt;
&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;Branco com verde&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;Verde&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;Branco com laranja&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;Laranja&lt;/span&gt;&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;Branco com azul&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;Azul&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;Branco com marrom&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;Marrom &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;Desenrole os fios que ficaram para fora do cabo, ou seja, deixe-os “retos” e não trançados na ordem acima citada, como mostra a figura abaix&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;171&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image026.jpg&quot; width=&quot;415&quot; /&gt;&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Corte os fios com a parte (1) do alicate em aproximadamente 1,5cm do invólucro do cabo.Observe que no conector RJ-45 que para cada pino existe um pequeno “tubo” onde o fio deve ser inserido. Insira cada fio em seu “tubo”, até que atinja o final do conector. Lembrando que não é necessário desencapar o fio, pois isto ao invés de ajudar, serviria apenas para causar mau contato, deixado o encaixe com os pinos do conector “folgado”.&lt;br /&gt;
&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;103&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image027.jpg&quot; width=&quot;222&quot; /&gt;&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Ao terminar de inserir os fios no conector RJ-45, basta inserir o conector na parte (3) do alicate e pressioná-lo. A função do alicate neste momento é fornecer pressão suficiente para que os pinos do conector RJ-45, que internamente possuem a forma de lâminas, esmaguem os fios do cabo, alcançando o fio de cobre e criando o contato, ao mesmo tempo, uma parte do conector irá prender com força a parte do cabo que está com a capa plástica externa. O cabo ficará definitivamente fixo no conector.&lt;br /&gt;
&lt;br /&gt;
Após pressionar o alicate, remova o conector do alicate e verifique se o cabo ficou bom, par isso puxe o cabo para ver se não há nenhum fio que ficou solto ou folgado.&lt;br /&gt;
&lt;br /&gt;
Uma dica que ajuda bastante e a utilização das borrachas protetoras dos conectores RJ-45 pois o uso desses traz vários benefícios com facilita a identificação do cabo com o uso de cores diferentes, mantém o conector mais limpo, aumenta a durabilidade do conector nas operações de encaixe e desencaixe, dá ao cabo um acabamento profissional.&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;183&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image028.jpg&quot; width=&quot;550&quot; /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;Montar um cabo de rede com esses protetores é fácil. Cada protetor deve ser instalado no cabo antes do respectivo conector RJ-45. Depois que o conector é instalado, ajuste o protetor ao conector.&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;br /&gt;
Testar o Cabo&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;Para testar o cabo é muito fácil utilizando os testadores de cabos disponíveis no mercado. Normalmente esses testadores são compostos de duas unidades independentes. A vantagem disso é que o cabo pode ser testado no próprio local onde fica instalado, muitas vezes com as extremidades localizadas em recintos diferentes. Chamaremos os dois componentes do testador: um de testador e o outro de terminador. Uma das extremidades do cabo deve ser ligada ao testador, no qual pressionamos o botão ON/OFF. O terminador deve ser levado até o local onde está a outra extremidade do cabo, e nele encaixamos o outro conector RJ-45.&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;228&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image030.jpg&quot; width=&quot;287&quot; /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Uma vez estando pressionado o botão ON/OFF no testador, um LED irá piscar. No terminador, quatro LEDs piscarão em seqüência, indicando que cada um dos quatro pares está corretamente ligado. Observe que este testador não é capaz de distinguir ligações erradas quando são feitas de forma idêntica nas duas extremidades. Por exemplo, se os fios azul e verde forem ligados em posições invertidas em ambas as extremidades do cabo, o terminador apresentará os LEDs piscando na seqüência normal. Cabe ao usuário ou técnico que monta o cabo, conferir se os fios em cada conector estão ligados nas posições corretas.&lt;br /&gt;
&lt;br /&gt;
Para quem faz instalações de redes com freqüência, é conveniente adquirir testadores de cabos, lojas especializadas em equipamentos para redes fornecem cabos, conectores, o alicate e os testadores de cabos, além de vários outros equipamentos. Mais se você quer apenas fazer um cabo para sua rede, existe um teste simples para saber se o cabo foi crimpado corretamente: basta conectar o cabo à placa de rede do micro e ao hub. Tanto o LED da placa quanto o do hub deverão acender. Naturalmente, tanto o micro quanto o hub deverão estar ligados.&lt;br /&gt;
&lt;br /&gt;
Não fique chateado se não conseguir na primeira vez, pois a experiência mostra que para chegar à perfeição é preciso muita prática, e até lá é comum estragar muitos conectores. Para minimizar os estragos, faça a crimpagem apenas quando perceber que os oito fios chegaram até o final do conector. Não fixe o conector se perceber que alguns fios estão parcialmente encaixados. Se isso acontecer, tente empurrar mais os fios para que encaixem até o fim. Se não conseguir, retire o cabo do conector, realinhe os oito fios e faça o encaixe novamente.&lt;/span&gt;&amp;nbsp; &lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;br /&gt;
Cabeamento Estruturado&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;As redes mais populares utilizam a arquitetura Ethernet usando cabo par trançado sem blindagem (UTP). Nessa arquitetura, há a necessidade de um dispositivo concentrador, tipicamente um hub, para fazer a conexão entre os computadores.&lt;br /&gt;
Em redes pequenas, o cabeamento não é um ponto que atrapalhe o dia-a-dia da empresa, já que apenas um ou dois hubs são necessários para interligar todos os micros. Entretanto, em redes médias e grandes a quantidade de cabos e o gerenciamento dessas conexões pode atrapalhar o dia-a-dia da empresa. A simples conexão de um novo micro na rede pode significar horas e horas de trabalho (passando cabos e tentando achar uma porta livre em um hub).&lt;br /&gt;
&lt;br /&gt;
É aí que entra o Cabeamento Estruturado. A idéia básica do cabeamento estruturado fornece ao ambiente de trabalho um sistema de cabeamento que facilite a instalação e remoção de equipamentos, sem muita perda de tempo. Dessa forma, o sistema mais simples de cabeamento estruturado é aquele que provê tomadas RJ-45 para os micros da rede em vez de conectarem o hub diretamente aos micros. Podendo haver vários pontos de rede já preparados para receber novas maquinas. Assim, ao trocar um micro de lugar ou na instalação de um novo micro, não haverá a necessidade de se fazer o cabeamento do micro até o hub; este cabeamento já estará feito, agilizando o dia-a-dia da empresa.&lt;br /&gt;
&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;217&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image032.jpg&quot; width=&quot;279&quot; /&gt;&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;A idéia do cabeamento estruturado vai muito alem disso. Além do uso de tomadas, o sistema de cabeamento estruturado utiliza um concentrador de cabos chamado Patch Panel (Painel de Conexões). Em vez de os cabos que vêm das tomadas conectarem-se diretamente ao hub, eles são conectados ao patch panel. Dessa forma, o patch panel funciona como um grande concentrador de tomadas&lt;br /&gt;
&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;187&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image034.jpg&quot; width=&quot;391&quot; /&gt;&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;O patch panel é um sistema passivo, ele não possui nenhum circuito eletrônico. Trata-se somente de um painel contendo conectores. Esse painel é construído com um tamanho padrão, de forma que ele possa ser instalado em um rack.&lt;br /&gt;
&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;img align=&quot;left&quot; height=&quot;252&quot; hspace=&quot;12&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image036.jpg&quot; width=&quot;231&quot; /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;O uso do patch panel facilita enormemente a manutenção de redes medis e grandes. Por exemplo, se for necessário trocar dispositivos, adicionar novos dispositivos (hubs e switches, por exemplo) alterar a configuração de cabos, etc., basta trocar a conexão dos dispositivos no patch panel, sem a necessidade de alterar os cabos que vão até os micros. Em redes grandes é comum haver mais de um local contendo patch panel. Assim, as portas dos patch panels não conectam somente os micros da rede, mas também fazem a ligação entre patch panels.&lt;br /&gt;
&lt;br /&gt;
Para uma melhor organização das portas no patch panel, este possui uma pequena área para poder rotular cada porta, isto é, colocar uma etiqueta informando onde a porta esta fisicamente instalada.&lt;br /&gt;
&lt;br /&gt;
Dessa forma, a essência do cabeamento estruturado é o projeto do cabeamento da rede. O cabeamento deve ser projetado sempre pensado na futura expansão da rede e na facilitação de manutenção. Devemos lembrar sempre que, ao contrario de micros e de programas que se tornam obsoletos com certa facilidade, o cabeamento de rede não é algo que fica obsoleto com o passar dos anos. Com isso, na maioria das vezes vale à pena investir em montar um sistema de cabeamento estruturado.&lt;br /&gt;
&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt;Repetidores&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;O repetidor é um dispositivo responsável por ampliar o tamanho máximo do cabeamento da rede. Ele funciona como um amplificador de sinais, regenerando os sinais recebidos e transmitindo esses sinais para outro segmento da rede.&lt;br /&gt;
&lt;br /&gt;
Como o nome sugere, ele repete as informações recebidas em sua porta de entrada na sua porta de saída. Isso significa que os dados que ele mandar para um micro em um segmento, estes dados estarão disponíveis em todos os segmentos, pois o repetidor é um elemento que não analisa os quadros de dados para verificar para qual segmento o quadro é destinado. Assim ele realmente funciona como um “extensor” do cabeamento da rede. É como se todos os segmentos de rede estivessem fisicamente instalados no mesmo segmento.&lt;br /&gt;
&lt;br /&gt;
Apesar de aumentar o comprimento da rede, o repetidor traz como desvantagem diminuir o desempenho da rede. Isso ocorre porque, como existirão mais maquinas na rede, as chances de o cabeamento estar livre para o envio de um dado serão menores. E quando o cabeamento esta livre, as chances de uma colisão serão maiores, já que teremos mais maquinas na rede.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana;&quot;&gt;Atualmente você provavelmente não encontrara repetidores como equipamento independentes, esse equipamento esta embutido dentro de outros, especialmente do hub. O hub é, na verdade, um repetidor (mas nem todo repetidor é um hub), já que ele repete os dados que chegam em uma de suas portas para todas as demais portas existentes.&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt;Hubs&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;Os Hubs são dispositivos concentradores, responsáveis por centralizar a distribuição dos quadros de dados em redes fisicamente ligadas em estrelas. Funcionando assim como uma peça central, que recebe os sinais transmitidos pelas estações e os retransmite para todas as demais.&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;226&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image037.jpg&quot; width=&quot;583&quot; /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;Existem vários tipos de hubs, vejamos:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;&lt;b&gt;Passivos&lt;/b&gt;: O termo “Hub” é um termo muito genérico usado para definir qualquer tipo de dispositivo concentrador. Concentradores de cabos que não possuem qualquer tipo de alimentação elétrica são chamados hubs passivos funcionando como um espelho, refletindo os sinais recebidos para todas as estações a ele conectadas. Como ele apenas distribui o sinal, sem fazer qualquer tipo de amplificação, o comprimento total dos dois trechos de cabo entre um micro e outro, passando pelo hub, não pode exceder os 100 metros permitidos pelos cabos de par trançado.&lt;br /&gt;
&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;&lt;b&gt;Ativos&lt;/b&gt;: São hubs que regeneram os sinais que recebem de suas portas antes de enviá-los para todas as portas. Funcionando como repetidores. Na maioria das vezes, quando falamos somente “hub” estamos nos referindo a esse tipo de hub. Enquanto usando um Hub passivo o sinal pode trafegar apenas 100 metros somados os dois trechos de cabos entre as estações, usando um hub ativo o sinal pode trafegar por 100 metros até o hub, e após ser retransmitido por ele trafegar mais 100 metros completos.&lt;br /&gt;
&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&lt;b&gt;Inteligentes&lt;/b&gt;: São hubs que permitem qualquer tipo de monitoramento. Este tipo de monitoramento, que é feito via software capaz de detectar e se preciso desconectar da rede estações com problemas que prejudiquem o tráfego ou mesmo derrube a rede inteira; detectar pontos de congestionamento na rede, fazendo o possível para normalizar o tráfego; detectar e impedir tentativas de invasão ou acesso não autorizado à rede entre outras funções, que variam de acordo com a fabricante e o modelo do Hub.&lt;br /&gt;
&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;&lt;b&gt;Empilháveis&lt;/b&gt;: Também chamado xxxxxxável (stackable). Esse tipo de hub permite a ampliação do seu número de portas.Veremos esse tipo de hub mais detalhadamente adiante.&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;br /&gt;
Cascateamento&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;Existe a possibilidade de conectar dois ou mais hubs entre si. Quase todos os hubs possuem uma porta chamada “Up Link” que se destina justamente a esta conexão. Basta ligar as portas Up Link de ambos os hubs, usando um cabo de rede normal para que os hubs passem a se enxergar.&lt;br /&gt;
&lt;br /&gt;
Sendo que existem alguns hubs mais baratos não possuem a porta “Up Link”, mais com um cabo cross-over pode-se conectar dois hubs. A única diferença neste caso é que ao invés de usar as portas Up Link, usará duas portas comuns.&lt;br /&gt;
&lt;br /&gt;
Note que caso você esteja interligando hubs passivos, a distância total entre dois micros da rede, incluindo o trecho entre os hubs, não poderá ser maior que 100 metros, o que é bem pouco no caso de uma rede grande. Neste caso, seria mais recomendável usar hubs ativos, que amplificam o sinal.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;122&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image038.jpg&quot; width=&quot;351&quot; /&gt;&lt;br /&gt;
&amp;nbsp;&lt;i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/i&gt;&lt;span style=&quot;color: navy;&quot;&gt;Empilhamento&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;O recurso de conectar hubs usando a porta Up Link, ou usando cabos cross-over, é utilizável apenas em redes pequenas, pois qualquer sinal transmitido por um micro da rede será retransmitido para todos os outros. Quanto mais Computadores tivermos na rede, maior será o tráfego e mais lenta a rede será e apesar de existirem limites para conexão entre hubs e repetidores, não há qualquer limite para o número de portas que um hub pode ter. Assim, para resolver esses problemas os fabricantes desenvolveram o hub empilhável.&lt;br /&gt;
&lt;br /&gt;
Esse hub possui uma porta especial em sua parte traseira, que permite a conexão entre dois ou mais hubs. Essa conexão especial faz com que os hubs sejam considerados pela rede um só hub e não hubs separados, eliminando estes problemas. O empilhamento só funciona com hubs da mesma marca.&lt;br /&gt;
&lt;br /&gt;
A interligação através de porta especifica com o cabo de empilhamento (stack) tem velocidade de transmissão maior que a velocidade das portas.&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;205&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image039.jpg&quot; width=&quot;272&quot; /&gt;&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt;Bridges (Pontes)&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;Como vimos anteriormente que os repetidores transmitem todos os dados que recebe para todas as suas saídas. Assim, quando uma máquina transmite dados para outra máquina presente no mesmo segmento, todas as maquinas da rede recebem esses dados, mesmo aquelas que estão em outro segmento.&lt;br /&gt;
&lt;br /&gt;
A ponte é um repetidor Inteligente. Ela tem a capacidade de ler e analisar os quadros de dados que estão circulando na rede. Com isso ela consegue ler os campos de endereçamentos MAC do quadro de dados. Fazendo com que a ponte não replique para outros segmentos dados que tenham como destino o mesmo segmento de origem. Outro papel que a ponte em principio poderia ter é o de interligar redes que possuem arquiteturas diferentes.&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;br /&gt;
Switches&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;O switch é um hub que, em vez de ser um repetidor é uma ponte. Com isso, em vez dele replicar os dados recebidos para todas as suas portas, ele envia os dados somente para o micro que requisitou os dados através da análise da Camada de link de dados onde possui o endereço MAC da placa de rede do micro, dando a idéia assim de que o switch é um hub Inteligente, além do fato dos switches trazerem micros processadores internos, que garantem ao aparelho um poder de processamento capaz de traçar os melhores caminhos para o trafego dos dados, evitando a colisão dos pacotes e ainda conseguindo tornar a rede mais confiável e estável.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;232&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image041.jpg&quot; width=&quot;356&quot; /&gt;&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;De maneira geral a função do switch é muito parecida com a de um bridge, com a exceção que um switch tem mais portas e um melhor desempenho, já que manterá o cabeamento da rede livre. Outra vantagem é que mais de uma comunicação pode ser estabelecida simultaneamente, desde que as comunicações não envolvam portas de origem ou destino que já estejam sendo usadas em outras comunicações.&lt;br /&gt;
&lt;br /&gt;
Existem duas arquiteturas básicas de Switches de rede: &quot;cut-through&quot; e &quot;store-and-forward&quot;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&lt;b&gt;Cut-through&lt;/b&gt;: apenas examina o endereço de destino antes de reencaminhar o pacote.&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;&lt;b&gt;Store-and-forward&lt;/b&gt;: aceita e analisa o pacote inteiro antes de o reencaminhar. Este método permite detectar alguns erros, evitando a sua propagação pela rede.&lt;br /&gt;
&lt;br /&gt;
Hoje em dia, existem diversos tipos de Switches híbridos que misturam ambas as arquiteturas.&lt;/span&gt; &lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;br /&gt;
Diferença entre Hubs e Switches&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;Um hub simplesmente retransmite todos os dados que chegam para todas as estações conectadas a ele, como um espelho. Causando o famoso broadcast que causa muito conflitos de pacotes e faz com que a rede fica muito lenta.&lt;br /&gt;
&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;O switch ao invés de simplesmente encaminhar os pacotes para todas as estações, encaminha apenas para o destinatário correto pois ele identifica as maquinas pelo o MAC addrees que é estático. Isto traz uma vantagem considerável em termos desempenho para redes congestionadas, além de permitir que, em casos de redes, onde são misturadas placas 10/10 e 10/100, as comunicações possam ser feitas na velocidade das placas envolvidas. Ou seja, quando duas placas 10/100 trocarem dados, a comunicação será feita a 100M bits. Quando uma das placas de 10M bits estiver envolvida, será feita a 10M bits.&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt;Roteadores&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;Roteadores são pontes que operam na camada de Rede do modelo OSI (camada três), essa camada é produzida não pelos componentes físicos da rede (Endereço MAC das placas de rede, que são valores físicos e fixos), mais sim pelo protocolo mais usado hoje em dia, o TCP/IP, o protocolo IP é o responsável por criar o conteúdo dessa camada.&lt;br /&gt;
&lt;br /&gt;
Isso Significa que os roteadores não analisam os quadros físicos que estão sendo transmitidos, mas sim os datagramas produzidos pelo protocolo que no caso é o TCP/IP, os roteadores são capazes de ler e analisar os datagramas IP contidos nos quadros transmitidos pela rede.&lt;br /&gt;
O papel fundamental do roteador é poder escolher um caminho para o datagrama chegar até seu destino. Em redes grandes pode haver mais de um caminho, e o roteador é o elemento responsável por tomar a decisão de qual caminho percorrer. Em outras palavras, o roteador é um dispositivo responsável por interligar redes diferentes, inclusive podendo interligar redes que possuam arquiteturas diferentes (por exemplo, conectar uma rede Token Ring a uma rede Ethernet, uma rede Ethernet a uma rede x-25&lt;/span&gt;&lt;br /&gt;
&lt;span&gt;  &lt;table align=&quot;left&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;   &lt;td height=&quot;13&quot; width=&quot;36&quot;&gt;&lt;br /&gt;
&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td&gt;&lt;br /&gt;
&lt;/td&gt;   &lt;td&gt;&lt;img height=&quot;144&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image043.jpg&quot; width=&quot;528&quot; /&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br clear=&quot;ALL&quot; /&gt;  &lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;Na figura seguinte é mostrado um exemplo de uso de roteadores. Como você pode perceber, há dois caminhos para o micro da “rede 1” mandar dados para o micro da “rede 6”, através da “rede 2” ou através da “rede 4”. &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;256&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image044.jpg&quot; width=&quot;559&quot; /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Os roteadores podem decidir qual caminho tomar através de dois critérios: o caminho mais curto (que seria através da “rede 4”) ou o caminho mais descongestionado (que não podemos determinar nesse exemplo; se o caminho do roteador da “rede 4” estiver congestionado, o caminho do roteador da “rede 2”, apesar de mais longo, pode acabar sendo mais rápido).&lt;br /&gt;
&lt;br /&gt;
A grande diferença entre uma ponte e um roteador é que o endereçamento que a ponte utiliza é o endereçamento usado na camada de Link de Dados do modelo OSI, ou seja, o endereçamento MAC das placas de rede, que é um endereçamento físico. O roteador, por operar na camada de Rede, usa o sistema de endereçamento dessa camada, que é um endereçamento lógico. No caso do TCP/IP esse endereçamento é o endereço IP.&lt;br /&gt;
&lt;br /&gt;
Em redes grandes, a Internet é o melhor exemplo, é praticamente impossível para uma ponte saber os endereços MAC de todas as placas de rede existentes na rede. Quando uma ponte não sabe um endereço MAC, ela envia o pacote de dados para todas as suas portas. Agora imagine se na Internet cada roteador enviasse para todas as suas portas dados toda vez que ele não soubesse um endereço MAC, a Internet simplesmente não funcionaria, por caso do excesso de dados.&lt;/span&gt; &lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Devido a isso, os roteadores operam com os endereços lógicos, que trabalham em uma estrutura onde o endereço físico não é importante e a conversão do endereço lógico (Endereço IP) para o endereço físico (endereço MAC) é feita somente quando o data grama chega à rede de destino.&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;img align=&quot;left&quot; height=&quot;146&quot; hspace=&quot;12&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image046.jpg&quot; width=&quot;210&quot; /&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;A vantagem do uso de endereços lógicos em redes grandes é que eles são mais fáceis de serem organizados hierarquicamente, isto é, de uma forma padronizada. Mesmo que um roteador não saiba onde esta fisicamente localizada uma máquina que possua um determinado endereço, ele envia o pacote de dados para um outro roteador que tenha probabilidade de saber onde esse pacote deve ser entregue (roteador hierarquicamente superior). Esse processo continua até o pacote atingir a rede de destino, onde o pacote atingira a máquina de destino. Outra vantagem é que no caso da troca do endereço físico de uma máquina em uma rede, a troca da placa de rede defeituosa não fará com que o endereço lógico dessa máquina seja alterado.&lt;br /&gt;
&lt;br /&gt;
É importante notar, que o papel do roteador é interligar redes diferentes (redes independentes), enquanto que papel dos repetidores, hub, pontes e switches são de interligar segmentos pertencentes a uma mesma rede.&lt;/span&gt; &lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;br /&gt;
Protocolos&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Os roteadores possuem uma tabela interna que lista as redes que eles conhecem, chamada tabela de roteamento. Essa tabela possui ainda uma entrada informando o que fazer quando chegar um datagrama com endereço desconhecido. Essa entrada é conhecida como rota default ou default gateway.&lt;br /&gt;
&lt;br /&gt;
Assim, ao receber um datagrama destinado a uma rede que ele conhece, o roteador envia esse datagrama a essa rede, através do caminho conhecido. Caso ele receba um datagrama destinado a uma rede cujo caminho ele não conhece, esse datagrama é enviado para o roteador listado como sendo o default gateway. Esse roteador irá encaminhar o datagrama usando o mesmo processo. Caso ele conheça a rede de destino, ele enviará o datagrama diretamente a ela. Caso não conheça, enviará ao roteador listado como seu default gateway. Esse processo continua até o datagrama atingir a sua rede de destino ou o tempo de vida do datagrama ter se excedido o que indica que o datagrama se perdeu no meio do caminho.&lt;br /&gt;
&lt;br /&gt;
As informações de rotas para a propagação de pacotes podem ser configuradas de forma estática pelo administrador da rede ou serem coletadas através de processos dinâmicos executando na rede, chamados protocolos de roteamento. Note-se que roteamento é o ato de passar adiante pacotes baseando-se em informações da tabela de roteamento. Protocolos de roteamento são protocolos que trocam informações utilizadas para construir tabelas de roteamento.&lt;br /&gt;
&lt;br /&gt;
É importante distinguir a diferença entre protocolos de roteamento (routing protocols) e protocolos roteados (routed protocols). Protocolo roteado é aquele que fornece informação adequada em seu endereçamento de rede para que seus pacotes sejam roteados, como o TCP/IP e o IPX. Um protocolo de roteamento possui mecanismos para o compartilhamento de informações de rotas entre os dispositivos de roteamento de uma rede, permitindo o roteamento dos pacotes de um protocolo roteado. Note-se que um protocolo de roteamento usa um protocolo roteado para trocar informações entre dispositivos roteadores. Exemplos de protocolos de roteamento são o RIP (com implementações para TCP/IP e IPX) e o EGRP.&lt;/span&gt; &lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt;Roteamento estático e roteamento dinâmico&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;A configuração de roteamento de uma rede específica nem sempre necessita de protocolos de roteamento. Existem situações onde as informações de roteamento não sofrem alterações, por exemplo, quando só existe uma rota possível, o administrador do sistema normalmente monta uma tabela de roteamento estática manualmente. Algumas redes não têm acesso a qualquer outra rede e, portanto não necessitam de tabela de roteamento. Dessa forma, as configurações de roteamento mais comuns sã&lt;br /&gt;
&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&lt;b&gt;Roteamento estático&lt;/b&gt;: uma rede com um número limitado de roteadores para outras redes pode ser configurada com roteamento estático. Uma tabela de roteamento estático é construída manualmente pelo administrador do sistema, e pode ou não ser divulgada para outros dispositivos de roteamento na rede. Tabelas estáticas não se ajustam automaticamente a alterações na rede, portanto devem ser utilizadas somente onde as rotas não sofrem alterações. Algumas vantagens do roteamento estático são a segurança obtida pela não divulgação de rotas que devem permanecer escondidas; e a redução do overhead introduzido pela troca de mensagens de roteamento na rede.&lt;br /&gt;
&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&lt;b&gt;Roteamento dinâmico&lt;/b&gt;: redes com mais de uma rota possível para o mesmo ponto devem utilizar roteamento dinâmico. Uma tabela de roteamento dinâmico é construída a partir de informações trocadas entre protocolos de roteamento. Os protocolos são desenvolvidos para distribuir informações que ajustam rotas dinamicamente para refletir alterações nas condições da rede. Protocolos de roteamento podem resolver situações complexas de roteamento mais rápida e eficientemente que o administrador do sistema. Protocolos de roteamento são desenvolvidos para trocar para uma rota alternativa quando a rota primária se torna inoperável e para decidir qual é a rota preferida para um destino. Em redes onde existem várias alternativas de rotas para um destino devem ser utilizados protocolos de roteamento.&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;br /&gt;
Protocolos de roteamento&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;Todos os protocolos de roteamento realizam as mesmas funções básicas. Eles determinam a rota preferida para cada destino e distribuem informações de roteamento entre os sistemas da rede. Como eles realizam estas funções, em particular eles decide qual é a melhor rota, é a principal diferença entre os protocolos de roteamento.&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;br /&gt;
Tipos de Protocolos&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;IGP (interior gateway protocol)&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt; - Estes são utilizados para realizar o roteamento dentro de um Sistema Autônomo. Existem vários protocolos IGP, vejamos alguns:&lt;br /&gt;
&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;RIP (Routing Information Protocol)&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;IGRP (Interior Gateway Routing Protocol) &lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;Enhanced IGRP &lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;OSPF (Open Shortest Path First) &lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;IS-IS (Intermediate System-to-Intermediate System) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;EGP (exterior gateway protocol)&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt; - Estes são utilizados para realizar o roteamento entre Sistemas Autônomos diferentes. É dividido em:&lt;br /&gt;
&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;EGP (Exterior Gateway Protocol) - protocolo tem o mesmo nome que o seu tipo. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;BGP (Border Gateway Protocol)&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: navy; font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;br /&gt;
Características&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;Quando se fala em roteadores, pensamos em basicamente três usos: conexão Internet, conexão de redes locais (LAN) ou conexão de longo alcance (WAN).Relembrando como vimos anteriormente podemos definir esse equipamento como sendo um modulo processador que interliga duas ou mais redes.&lt;br /&gt;
&lt;br /&gt;
Para ficar mais claro seu uso, vamos dar o exemplo do uso de roteadores na interligação entre duas redes: a Internet e a rede local de uma empresa, veja figura:&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;152&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image048.jpg&quot; width=&quot;441&quot; /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;O roteador típico para esse uso deve possuir basicamente duas portas: uma porta chamada WAN e uma porta chamada LAN. A porta WAN recebe o cabo que vem do backbone da Internet. Normalmente essa conexão na porta WAN é feita através de um conector chamado V.35 que é um conector de 34 Pinos. A porta LAN é conectada à sua rede local. Essa porta também pode ser chamada Eth0 ou saída Ethernet, já que a maioria das redes locais usa essa arquitetura. Existem outros tipos de conexões com o roteador, a ligação de duas redes locais (LAN), ligação de duas redes geograficamente separadas (WAN).&lt;br /&gt;
&lt;br /&gt;
O roteador acima mostrado é apenas um exemplo ilustrativo, pois normalmente os roteadores vêm com mais de uma porta WAN e com mais de uma porta LAN, sendo que essas portas têm características de desempenho muito distintas, definidas pelo modelo e marca de cada roteador.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;br /&gt;
Cada uma das portas / interfaces do roteador deve receber um endereço lógico (no caso do TCP/IP, um número IP) que esteja em uma rede diferente do endereço colocado nas outras portas. Se você rodar um traceroute através de um roteador conhecido, verá que dois endereços IP aparecem para ele. Um refere-se à sua interface WAN e outro à sua interface LAN.&lt;br /&gt;
&lt;br /&gt;
Na hora de se escolher um roteador ou desenhar um esquema de rede com roteadores, deve-se levar em consideração algumas características básicas encontradas nos roteadores:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;Número de portas WAN&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;Número de portas LAN&lt;/span&gt;&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;Velocidade das portas WAN&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;Velocidade das portas LAN&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;Redundância&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;Tolerância a falhas&lt;br /&gt;
&lt;img height=&quot;10&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image009.gif&quot; width=&quot;10&quot; /&gt;&amp;nbsp;&amp;nbsp;Balanceamento de carga&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;Alguns roteadores possuem um recurso chamado &lt;i&gt;redundância de call-up&lt;/i&gt;. Esse recurso permite ligar o roteador a um modem através de um cabo serial e, caso o link WAN principal falhar, o modem disca para um provedor e se conecta mantendo a conexão da rede local com a Internet no ar.&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt;&quot;&gt;&lt;img height=&quot;111&quot; src=&quot;file:///C:/DOCUME%7E1/ADMINI%7E1/CONFIG%7E1/Temp/msohtml1/01/clip_image050.jpg&quot; width=&quot;452&quot; /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Alguns roteadores trazem a solução para esse problema através de recursos de redundância e tolerância à falhas. Através desse recurso, o roteador continua operando mesmo quando ele se danifica. Para entender isso, basta imaginar um roteador que possua, na realidade, dois dentro roteadores dentro dele. Caso o primeiro falhe, o segundo entra em ação imediatamente. Isso permite que a rede não saia do ar no caso de uma falha em um roteador.&lt;br /&gt;
&lt;br /&gt;
Existem ainda roteadores capazes de gerenciar duas ou mais conexões entre ele e outro roteador, permitindo dividir o tráfego entre esses links, otimizando as conexões. Essa característica, chamada balanceamento de carga, é utilizada, por exemplo, em conexões ter filiais de empresas.</content><link rel='replies' type='application/atom+xml' href='http://vetortecinformatica.blogspot.com/feeds/7180826271727648466/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://vetortecinformatica.blogspot.com/2010/11/uma-das-melhores-apostilas-sobre-rede.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/547239981044631330/posts/default/7180826271727648466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/547239981044631330/posts/default/7180826271727648466'/><link rel='alternate' type='text/html' href='http://vetortecinformatica.blogspot.com/2010/11/uma-das-melhores-apostilas-sobre-rede.html' title='Uma das melhores apostilas sobre Rede de Computadores que ja vi'/><author><name>vetortec informatica</name><uri>http://www.blogger.com/profile/01557177860168805694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>