In a html document must all the tag get closed with the end tag | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula gr√°tis
+ 1

In a html document must all the tag get closed with the end tag

Html code

25th Nov 2019, 7:34 AM
Olowojoba Oricha
Olowojoba Oricha - avatar
3 Respostas
+ 2
They are two kinda of tags in html documents... 1. Tags with opening and closing <p> </p> 2. Self-contained tags <br/> So it will depend on which kinda tags you start with... If you start with self-contained tags like <br/> or simply a convention <br> opening tag, then this don't have closing tags, but others types has closing tags...
25th Nov 2019, 7:41 AM
Ve Sudhakaran
+ 1
Yes. But, some tags do not have a closing tag like <img>, <br>, <hr> It is usually good practice to write these like: <img src="path" />, <br />, <hr /> Where you put a forward slash before the greater than symbol. This essentially acts like closing the tag that doesn't have it's own closing tag.
25th Nov 2019, 7:41 AM
Xyenia ūü¶Č
Xyenia ūü¶Č - avatar
0
Wala! Dili! John Fernandez No point in posting an answer and liking imong own post when there are discrepancies. Ngano man? / Bakit? iframe does have a closing tag: https://www.w3schools.com/tags/tag_iframe.asp
25th Nov 2019, 9:28 PM
Xyenia ūü¶Č
Xyenia ūü¶Č - avatar