O que são tags HTML?

“Tags”?

Tags são rótulos usados para informar ao navegador como deve ser apresentado o website.

Todas as tags têm o mesmo formato: começam com um sinal de menor “<” e acabam com um sinal de maior “>”.

Genericamente falando, existem dois tipos de tags – tags de abertura: <comando> e tags de fechamento: </comando>. A diferença entre elas é que na tag de fechamento existe um barra “/”.

Tudo que estiver contido entre uma tag de abertura e uma tag de fechamento será processado segundo o comando contido na tag.

Mas, como toda regra tem sua exceção, aqui no HTML a exceção é que para algumas tags a abertura e o fechamento se dá na mesma tag. Tais tags contém comandos que não necessitam de um conteúdo para serem processados, isto é, são tags de comandos isolados, por exemplo, um pulo de linha é conseguido com a tag <br />.

HTML é tag – e nada mais do que tags. Aprender HTML é aprender como usar as diferentes tags.

Você pode mostrar alguns exemplos?

OK, a tag <b> informa ao navegador que todo o texto colocado entre <b> e </b> deve ser mostrado em negrito. (O comando “b” é uma abreviação para “bold” – negrito.)

Exemplo 1:


	<b>Este texto deve ser em negrito.</b>
	

Vai ser apresentado no navegador, como mostrado a seguir:

Este texto deve ser em negrito.

As tags <h1>, <h2>, <h3>, <h4>, <h5> e <h6> informam ao navegador que trata-se de um cabeçalho (h vem de “heading” – cabeçalho ), sendo <h1> o cabeçalho de primeiro nível e aquele apresentado com o maior tamanho de texto, <h2> o cabeçalho de segundo nível e aquele apresentado com tamanho de texto um pouco menor e <h6> o cabeçalho de sexto nível e aquele apresentado com o menor tamanho de texto.

Exemplo 2:


	<h1>Este é um título</h1>
	<h2>Este é um sub título</h2>
	

Vai ser apresentado no navegador, como mostrado a seguir:

Este é um título

Este é um subtítulo

As tags devem ser escritas com letras maiúsculas ou minúsculas?

Para a maioria dos navegadores é indiferente se você usa maiúscula, minúscula ou mesmo uma mistura delas.<COMANDO>, <comando> ou <CoMaNdo> normalmente tem o mesmo efeito. Contudo a maneira correta é usar minúsculas. Então, crie o hábito de escrever suas tags com minúsculas.

Onde devo colocar todas estas tags?

Você deve escrever suas tags em um documento HTML. Um website é constituido por um ou mais documentos HTML. Quando você navega na Web, você está abrindo diferentes documentos HTML.

O artigo ajudou ?
SimNão

37 Comments

Uczyniłeś złożoną teza dostępną Pojemną pracę|To post to klejnot Więc zadowolony jak poncz znalazłem to|Ty zmusić, aby zadziwiające pojemność do pióra angażująca treść|To pismo na najwyższym poziomie zdobyłeś unfamiliar obserwującego|Twój post był zarówno wnikliwy, jak i pięknie napisany|Jestem zdumiony podczas jak wiele dobrze wykształcony z tego posta|wykonujesz adept pracę To dispatch jest dowodem o tym} {https://kredytero.pl|kredytero.pl|kredyt|kredyty|kredyt online|kredyty online|kredyt przez internet|kredyty przez internet}!

I simply got here throughout your enter and turned into promptly captivated with the aid your insights. Your apex is both uncomplicated and concept-provoking. it is evident that you’ve achieved brobdingnagian delve into, and your capacity to today the facts in an attracting manner is wonderful. this is a submit i’ve been interested in after a while, and your fill someone in on has provided me with a brand renewed outlook. thanks exchange for sharing your https://cialisbov.com/.

There are actually a number of particulars like that to take into consideration. That could be a great point to convey up. I supply the thoughts above as general inspiration however clearly there are questions like the one you bring up where a very powerful factor shall be working in sincere good faith. I don?t know if best practices have emerged round things like that, but I’m sure that your job is clearly recognized as a good game. Each boys and girls feel the impression of only a moment’s pleasure, for the rest of their lives.

After study just a few of the blog posts in your web site now, and I actually like your manner of blogging. I bookmarked it to my bookmark website record and might be checking back soon. Pls try my web site as well and let me know what you think.

I in addition to my buddies were found to be taking note of the best thoughts found on your website and suddenly developed a terrible suspicion I had not thanked the web blog owner for those strategies. The young men were for that reason stimulated to learn all of them and have actually been tapping into these things. I appreciate you for simply being well accommodating and for deciding on certain fine things most people are really desperate to understand about. Our own honest apologies for not expressing gratitude to you earlier.

A formidable share, I just given this onto a colleague who was doing a bit analysis on this. And he the truth is bought me breakfast as a result of I found it for him.. smile. So let me reword that: Thnx for the treat! But yeah Thnkx for spending the time to discuss this, I really feel strongly about it and love studying extra on this topic. If attainable, as you develop into experience, would you thoughts updating your weblog with extra details? It’s highly helpful for me. Huge thumb up for this blog publish!

Deixe uma resposta