0
How do you know when to use the slash in code.... <\html>
5 odpowiedzi
+ 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).
+ 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.
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!
0
yess
0
<b>Bold</b> Normal <i>italic<b> bold and italic </b> only italic again</i> try and understand