مرجع سريع لـ HTML
- الصفحة السابقة نوع مستند HTML
- الصفحة التالية مقدمة XHTML
مرجع سريع لـ HTML من CodeW3C.com. يمكنطباعته للاستخدام اليومي.
مستند أساسيات HTML
<html> <head> <title>اسم الوثيقة يأتي هنا</title> </head> <body> النص المرئي يأتي هنا </body> </html>
عناصر النص
<p>This is a paragraph</p> <br> (line break) <hr> (خط أفقي) <pre>نص مسبق التكوين</pre>
النمط المنطقي
<em>نص مبرز</em> <strong>نص قوي</strong> <code>هذا جزء من البرمجيات</code>
النمط الفيزيائي
<b>نص سميك</b> <i>نص مائل</i>
الروابط، المقدلات، عناصر الصور
<a href="http://www.example.com/">هذا رابط</a> <a href="http://www.example.com/"><img src="URL" alt="نص بديل"></a> <a href="mailto:webmaster@example.com">إرسال بريد إلكتروني</a>مقلة مسمى: <a name="tips">قسم النصائح المفيدة</a> <a href="#tips">إذهب إلى قسم النصائح المفيدة</a>
القائمة غير المعدة
<ul> <li>First item</li> <li>Next item</li> </ul>
القائمة المعدة
<ol> <li>First item</li> <li>Next item</li> </ol>
قائمة التعريفات
<dl> <dt>First term</dt> <dd>Definition</dd> <dt>Next term</dt> <dd>Definition</dd> </dl>
الجدول
<table border="1"> <tr> <th>someheader</th> <th>someheader</th> </tr> <tr> <td>sometext</td> <td>sometext</td> </tr> </table>
الشارد
<frameset cols="25%,75%"> <frame src="page1.htm"> <frame src="page2.htm"> </frameset>
نموذج
<form action="http://www.example.com/test.asp" method="post/get"> <input type="text" name="lastname" value="Nixon" size="30" maxlength="50"> <input type="password"> <input type="checkbox" checked="checked"> <input type="radio" checked="checked"> <input type="submit"> <input type="reset"> <input type="hidden"> <select> <option>Apples <option selected>Bananas <option>Cherries </select> <textarea name="Comment" rows="60" cols="20"></textarea> </form>
الرموز
< هو نفسه < > هو نفسه > © هو نفسه ©
العناصر الأخرى
<!-- This is a comment --> <blockquote> نص تم اقتباسه من مصدر. </blockquote> <address> العنوان 1<br> العنوان 2<br> مدينة<br> </address>
المصدر: http://www.codew3c.com/html/html_quick.asp
- الصفحة السابقة نوع مستند HTML
- الصفحة التالية مقدمة XHTML