Como Criar um Botão em HTML para um Link

Baixe em PDFBaixe em PDF

Esse artigo mostrará como criar um botão em HTML para um link. Ele se comporta semelhante a um hiperlink normal, mas em vez disso é um botão.

  1. How.com.vn Português: Step 1 Abra seu arquivo HTML com o seu editor de texto preferido, como o Bloco de Notas ou o TextEdit.
  2. How.com.vn Português: Step 2 Adicione o seguinte código à área onde você deseja que o botão apareça.


    <form method="get" action=" http://pt.wikihow.com/P%C3%A1gina-principal"><button type="submit">Página Inicial</button></form>
  3. How.com.vn Português: Step 3 Altere o link.
    Atualmente, o código aponta para a página inicial do How.com.vn. Substitua-o pela URL da página que você deseja redirecionar.
  4. How.com.vn Português: Step 4 Mude o texto do botão.
    Atualmente, o botão diz "Página Inicial". Você pode alterar o nome e inserir o que desejar.
  5. How.com.vn Português: Step 5 Teste o link.
    Clique com o botão esquerdo do mouse no link para verificar se ele funciona. Se funcionar, então não é preciso fazer mais nada. Caso contrário, você deve procurar por erros no seu código e corrigi-los.
    Publicidade

Materiais Necessários

  • Editor de texto.

Sobre este guia How.com.vn

O How.com.vn é uma "wiki"; ou seja, muitos de nossos artigos são escritos em parceria com várias pessoas. Para criar este artigo, autores voluntários trabalharam para editá-lo e melhorá-lo desde seu início. Este artigo foi visualizado 84 770 vezes.
Categorias: Programação
Esta página foi acessada 84 770 vezes.

Este artigo foi útil?

⚠️ Disclaimer:

Content from Wiki How Português language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

Notices:
  • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
  • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
  • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
  • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

Publicidade