0

How do you know when to use the slash in code.... <\html>

14th Nov 2016, 7:16 PM
zazzer
5 Respuestas
+ 5
You use the slash to close a tag. Close tags in the same order you opened them in. Here's an example. <html> <head> </head> </html> Also, just to add onto TechTro's answer, XHTML will require you to close all tags (including empty tags).
14th Nov 2016, 11:22 PM
Ben
Ben - avatar
+ 2
HTML elements with no content are called empty elements. <br> is an empty element without a closing tag(the <br> tag defines a line break). Empty elements can be "closed" in the opening tag like this: <br />. HTML5 does not require empty elements to be closed.
14th Nov 2016, 10:17 PM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
0
when you want to end the tag , you use </tag> it is forward slash, not backward. you wrote it wrong in the question. bravos!
14th Nov 2016, 7:21 PM
P Sandesh Baliga
P Sandesh Baliga - avatar
0
yess
14th Nov 2016, 8:22 PM
mohand Faisal
   mohand Faisal - avatar
0
<b>Bold</b> Normal <i>italic<b> bold and italic </b> only italic again</i> try and understand
16th Nov 2016, 9:31 AM
Core i9
Core i9 - avatar