What Is Wrong with My <br> Tags?
Submitted by: AdministratorIf you are used HTML syntax, you may write your <br> tags as in the paragraph below:
<p>
I love the way you look at me,<br>
Your eyes so bright and blue.<br>
I love the way you kiss me,<br>
Your lips so soft and smooth.<br>
</p>
But that paragraph will be invalid as XHTML documents, because all 4 <br> are not closed. You should change it to:
<p>
I love the way you look at me,<br/>
Your eyes so bright and blue.<br/>
I love the way you kiss me,<br/>
Your lips so soft and smooth.<br/>
</p>
Submitted by: Administrator
<p>
I love the way you look at me,<br>
Your eyes so bright and blue.<br>
I love the way you kiss me,<br>
Your lips so soft and smooth.<br>
</p>
But that paragraph will be invalid as XHTML documents, because all 4 <br> are not closed. You should change it to:
<p>
I love the way you look at me,<br/>
Your eyes so bright and blue.<br/>
I love the way you kiss me,<br/>
Your lips so soft and smooth.<br/>
</p>
Submitted by: Administrator
Read Online XHTML Job Interview Questions And Answers
Top XHTML Questions
☺ | What Tools to Use to Write XHTML Documents? |
☺ | What Is XHTML? |
☺ | What Is the Relation between XHTML and SGML? |
☺ | How To Enter Element Content? |
☺ | What Is the Relation between XHTML and URL? |
Top Coding/Programming Categories
☺ | Python Interview Questions. |
☺ | OOP Interview Questions. |
☺ | Software engineering Interview Questions. |
☺ | PHP Interview Questions. |
☺ | VBA (Visual Basic for Applications) Interview Questions. |