Why is every HTML tag use < > and <\ > | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Why is every HTML tag use < > and <\ >

18th Sep 2016, 2:54 PM
Will Bernau
Will Bernau - avatar
7 Answers
+ 25
Because the browser needs to know when it must start ou stop executing a code. For example: Pretend you want to write the following sencence: "THIS is a line of text". If you write the code like this: <big>This</big> is a line of text The sentence will be like: "THIS is a line of text". But if you write the code like: <big>This is a line of text. The text will be like this: "THIS IS A LINE OF TEXT", and that's not what you want to do. So, if you define a start of a tag to be executed without defining the finish tag, the browser won't stop executing the comand; in this example, instead of making a single word get big, if will make the whole text get big. I hope this answer helps you.
18th Sep 2016, 3:40 PM
Silas Junior
Silas Junior - avatar
+ 4
think of it as a green light and a red stop sign, if we didn't include a stop point it would go on forever! and never know when to stop
28th Sep 2016, 12:11 PM
seanon rs
seanon rs - avatar
+ 3
Hey First Point your question is wrong NOT every tag has<> and<\> because mist html tags are container tags(ones with<>and<\>) and they are even empty tags (ones that don't have<\> they have \>instead) example containers: ,<p>hi this us container tag<\> empty <IMAGE src="fungus.jpg"/> and container tags are used to contain content and exchage data
6th Jan 2017, 4:42 PM
Ayush chadha
Ayush chadha - avatar
+ 1
Because it works and is easy to understand by people and machines.
29th Sep 2016, 9:07 PM
Franz Alt
Franz Alt - avatar
0
It is more organized
19th Sep 2016, 3:57 AM
zozimus
zozimus - avatar
0
you start a text <> and you end a text</>
7th Oct 2016, 10:18 PM
Waldläufer 33
Waldläufer 33 - avatar
- 6
because 😏 your name is "Will Bernau".. 😜
19th Sep 2016, 5:54 PM
Muhammad Taha
Muhammad Taha - avatar