This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-12-13 10:29:10

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

<iframe> HTML5 Tag

Okay, so I'm learning HTML5.  I'm trying to use an iframe so that my code will be more organized and spread across a few files, but nothing below the iframe tag is showing.  And yes, I've tried adding excessive <br />'s after it.  Is there some way to fix this, or is there a tag that will let me embed another HTML file into my main file?  Tell me if you need the source code, and thanks!

Edit: Okay, here's my source code.  This doesn't include the movie and audio (of course), so just find a random mp4 and mp3 video on your computer to copy.

Code:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>HTML 5!</title>
</head>
<body>
    <meta charset="utf-8" />
    <video width="320" height="240" controls="controls">
        <source src="sourcemovie.mp4" />
        Your browser does not support HTML5 video.
    </video>
    <br />

    <audio controls="controls">
        <source src="sourcemusic.mp3" />
        Your browser does not support HTML5 audio.
    </audio>
    <br />

    <button onClick="alert('Ouch!');">Don't click me!</button>
    <button disabled>You can't click me!</button>
    <br />

    <form>
        <fieldset>
            <legend>Organization XIII</legend>
                Nobody: <select>
                        <optgroup label="Founding members">
                        <option value="I">Xemnas</option>
                        <option value="II">Xigbar</option>
                        <option value="III">Xaldin</option>
                        <option value="IV">Vexen</option>
                        <option value="V">Lexaeus</option>
                        <option value="VI">Zexion</option>
                        </optgroup>

                        <optgroup label="Other"
                        <option value="VII">Axel</option>
                        <option value="VIII">Saïx</option>
                        <option value="IX">Demyx</option>
                        <option value="X">Luxord</option>
                        <option value="XI">Marluxia</option>
                        <option value="XII">Larxene</option>
                        <option value="XIII">Roxas</option>
                        </optgroup>
                    </select>
                <br />

                Somebody: <select>

                        <optgroup label="Apprentices">
                        <option value="I">Xehanort</option>
                        <option value="II">Braig</option>
                        <option value="III">Dilan</option>
                        <option value="IV">Even</option>
                        <option value="V">Aeleus</option>
                        <option value="VI">Ienzo</option>
                        </optgroup>

                        <optgroup label="Other">
                        <option value="VII">Lea</option>
                        <option value="VIII">Isa</option>
                        <option value="IX">???</option>
                        <option value="X">???</option>
                        <option value="XI">???</option>
                        <option value="XII">???</option>
                        <option value="XIII">Sora</option>
                        </optgroup>
                    </select>
        </fieldset>
    </form>
    <br />

    <iframe src="table.html width="152" height="356" />

</body>
<footer>
    <meta charset="utf-8" />
    <br />
    <em>This file is written using the changes implemented into HTML5.</em>
</footer>
</html>

Here's the table.html code.

Code:

<!DOCTYPE html>
<html>
    <table border="1">
        <colgroup>
            <col span="1" style="background-color:#FF2020" />
            <col style="background-color:#AAAAAA" />
        </colgroup>

        <tr>
            <th>Somebody</th>
            <th>Nobody</th>
        </tr>

        <tr>
            <td>Xehanort</td>
            <td>Xemnas</td>
        </tr>

        <tr>
            <td>Braig</td>
            <td>Xigbar</td>
        </tr>

        <tr>
            <td>Dilan</td>
            <td>Xaldin</
        </tr>

        <tr>
            <td>Even</td>
            <td>Vexen</td>
        </tr>

        <tr>
            <td>Ienzo</td>
            <td>Zexion</td>
        </tr>

        <tr>
            <td>Lea</td>
            <td>Axel</td>
        </tr>

        <tr>
            <td>Isa</td>
            <td>Saïx</td>
        </tr>

        <tr>
            <td>Unknown</td>
            <td>Demyx</td>
        </tr>

        <tr>
            <td>Unknown</td>
            <td>Luxord</td>
        </tr>

        <tr>
            <td>Unknown</td>
            <td>Marluxia</td>
        </tr>

        <tr>
            <td>Unknown</td>
            <td>Demyx</td>
        </tr>

        <tr>
            <td>Unknown</td>
            <td>Larxene</td>
        </tr>

        <tr>
            <td>Sora</td>
            <td>Roxas</td>
        </tr>
    </table>
</html>

As you can see, it's pretty long, which is why I wanted to spread it out a little.  Also, can you help me get the seamless thing to work?

Last edited by maxskywalker (2011-12-13 18:13:49)

Offline

 

#2 2011-12-13 15:11:57

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: <iframe> HTML5 Tag



At least 60 seconds have to pass between posts. Please wait a little while and try posting again.  I WILL GET YOU, 60 SECOND RULE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Last edited by maxskywalker (2011-12-13 15:13:53)

Offline

 

#3 2011-12-13 17:41:26

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: <iframe> HTML5 Tag

Source code please! I had this same problem, but managed to fix it. It turned out that I had invalid syntax on my closing tag, and it didn't close the iframe.


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#4 2011-12-13 18:11:12

Dawgles
Scratcher
Registered: 2011-07-29
Posts: 100+

Re: <iframe> HTML5 Tag

iframe isn't HTML5.
End it with </iframe>.

Offline

 

#5 2011-12-13 18:22:05

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: <iframe> HTML5 Tag

Dawgles wrote:

iframe isn't HTML5.
End it with </iframe>.

…?
You mean that it's not new in HTML5?  I'm just learning HTML, and I figured 'hey, may as well go with this HTML5 that they're all raving about while I don't have the bad habits of 4.'  It works, and I'm using the <!DOCTYPE html> of HTML5, so it's HTML5, evidently.

<iframe></iframe> is exactly the same as <iframe /> unless I'm missing something.  I don't think I am.  If someone could tell me what I'm missing, I'd be grateful.

Offline

 

#6 2011-12-13 19:44:45

Dawgles
Scratcher
Registered: 2011-07-29
Posts: 100+

Re: <iframe> HTML5 Tag

It isn't an HTML5 specific element though, so the title of "<iframe> HTML5 Tag" is misleading.

You need to end iframe with </iframe>. Not necessary, but you should make sure things aren't outside of the body.

Offline

 

#7 2011-12-13 21:39:17

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: <iframe> HTML5 Tag

Oh. . . .  This is stupid.  Someone should write w3.com or whatever an angry email.  Not me though.

Offline

 

Board footer