הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   HTML 5 (https://hosts.co.il/forums/showthread.php?t=107572)

Jonathan Zeierman 29-08-14 18:08

HTML 5
 
אהלן,
אחרי שה HTML 5 הגיע וסיבך לי את הצורה אני מנסה לעשות מסמך HTML 5 חוקי.
יש לי כמה וכמה בעיות אשמח אם תעזרו לי.
http://validator.w3.org/check?uri=ht...Inline&group=0
HTML קוד:

<!DOCTYPE html>
<html lang="he">
<head>
<meta charset="utf-8" />
<title>התחברות</title>
<link href="css/login.css" rel="stylesheet" />
<link href="css/login-white.css" rel="stylesheet" />
</head>
<body>
        <div id="wrapper">
        <div id="wrapper2">
        <div id="wrapper3">
        <div id="wrapper4">
        <span id="login_wrapper_bg"></span>
        <div id="stripes">
                <div id="login_wrapper">
                        <form action="login.php?page=Login" method="post">
                                <fieldset>
                                        <h1>התחבר</h1>
                                        <div class="formular">
                                                <span class="formular_top"></span>
                                               
                                                <div class="formular_inner">
                                                <label for="user">
                                                        <strong>Username:</strong>

                                                        <span class="input_wrapper">
                                <input type="text" name="user" />
                                                        </span>
                                                </label>
                                                <label for="password">
                                                        <strong>Password:</strong>
                                                        <span class="input_wrapper">
                                                                <input name="pass" type="password" />
                                                        </span>
                      </label>
                      <label for="captcha">
                                                        <?echo '<strong>Captcha:'.$security_code.'</strong>'; ?>
                                                        <span class="input_wrapper">
                                                                <input name="security_code_check" type="text" />
                                                        </span>
                                                </label>
                                                <label class="inline">
                                                        <input class="checkbox" name="" type="checkbox" value="" />
                                                        remember me on this computer
                                                </label>
                                               
                                               
                                                <ul class="form_menu">
                                                        <li><span class="button"><span><span><em>SUBMIT</em></span></span><input type="submit" name="login_check"/></span></li>
                                                        <li><span class="button"><span><span><a href="#">BACK TO SITE</a></span></span></span></li>
                                                </ul>
                                               
                                                </div>
                                               
                                                <span class="formular_bottom"></span>
                                               
                                        </div>
                                </fieldset>
                        </form>
                        <span class="reflect"></span>
                        <span class="lock"></span>
                </div>
            </div>
                </div>
            </div>
                </div>       
        </div>
</body>
</html>


MAORBARI 29-08-14 18:11

היי תמחק סלאשים שמסיימים תג INPUT ומה link (אין צורך בהם יותר גם לא ב hr ו br , img, meta, וכו'..)
בנוסף, תשים for של label אמור להוביל ל id מסויים.. ז"א שאם עשית label for="aaa", אז אתה חייב שה input שלך שאליו יוביל ה label יכיל id="aaa".

Jonathan Zeierman 29-08-14 18:45

תודה על הסבר.
אבל היה לי במקור את התג <label> איך אני אמור להשתמש בו שוב?
לדוגמא:
HTML קוד:

<label>
<strong>Username:</strong>
<span class="input_wrapper">
<input type="text" name="user" />
</span>
</label>


MAORBARI 29-08-14 18:49

HTML קוד:

<label for="user_input">
<strong>Username:</strong>
</label>
<span class="input_wrapper">
<input type="text" id="user_input" name="user">
</span>


Jonathan Zeierman 29-08-14 19:02

תודה.
עכשיו תיקנתי את השגיאות.
איך אני מצמיד עכשיו את השם לTEXTAREA? הכל התבלגן
http://zeierman.net/test/login.php


כל הזמנים הם GMT +2. הזמן כעת הוא 11:33.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ