As an editor, I use Aptana. How can I r...">

Trim empty HTML tag

I have this line in my HTML code:

<iframe src="http://example.com"></iframe>

As an editor, I use Aptana.

How can I resolve this warning? What does it mean?

"Must trim empty <iframe>."

"Should trim empty <iframe>."

+5
source share
2 answers

This is because iframethere is no body for the tag .

One of the options for removing the warning will put the closing tag on another line:

<iframe src="http://example.com">
</iframe>

Or adding a space:

<iframe src="http://example.com"> </iframe>
+3
source

, iframe: , , ( ) . , . :

<iframe src="http://example.com"><a href="http://example.com">
Some useful title for the page</a></iframe>

, Opera - . , . , , , , .

(4 2013 .): HTML5 , iframe , Opera ( ) : , - . , Lynx iframe, , , src. iframe .

+1

All Articles