+ 1

regarding HTML tag

whether HTML TAG can be self closing TAG as below < HTML this is my site />

17th Nov 2020, 6:26 PM
Senthil Kumar
Senthil Kumar - avatar
2 ответов
+ 3
If "this is my site" was meant as content of the element, then no. Self closing tags don't have support for contents. P.S. Some tags allow data setting through attributes e.g. 'value' attribute in <input> tag
17th Nov 2020, 6:47 PM
Ipang
+ 2
Hey ! Senthil Kumar As a begginer such questions can arises😊 ... As you have written the tag; that is not right. You can't create your own tag.... .... ➡️And about self closing tag like : <br/> , <hr/> ,<img/> ...etc are self closing tags.(You can find more on google) ... ➡️Note : <br> or <br/> <hr> or <hr/> Both are right. Actually / is optional with self closing tags🤗 ... You can use any one(only with self closing tags) 👍🏻
17th Nov 2020, 7:39 PM
Mr. Rahul
Mr. Rahul - avatar