Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3
Opening and closing HTML tags refers to this: If you open a tag, which is any number of tags. Example. The first you use is <html>. This identifies whatever is after this as HTML code. Other tags are also used, such as <body> which is essentially where you put everything you want a user to see. Closing a tag, for example </html> means that, I have finished with my HTML code, anything after this is not HTML code. Same with </body>. Anything after closing the body tag in HTML, the user will not see. So to close a tag, you need a / added into your tag, as seen above. Make sure you close any open tags in your code, as it will leave errors in your final input. There are some exceptions. The <img> tag, which you use to insert an image, doesn't get closed off in the same way. For example <img src="img_url" class="image"> And that is it! Hope this helps!
12th Jun 2019, 10:01 AM
River
River - avatar