IT - Cascading Style Sheets
IT - Cascading Style Sheets
• ><html
• ><head
• >"<style type="text/css
• code........
• ></style
• ></head
• ><body
• ></body
• ></html
:• مثال اخر
• <html>
• <head>
• <title>Example<title>
• <style type="text/css">
• body {background‐color: #FF0000;}
• </style>
• </head>
• <body>
• <p>This is a red page</p>
• </body>
• </html>
الطريقة الثانية :
الملف الخارجي External Css file
• يتم في هذه الطريق انشاء ملف امتداد Cssويتم من خالله كتابة التعليمات
الخاصة .
• ثم يتم استدعاء الملف الخارجي من خالل صفحة . HTML
• ><html
• ><head
• ><link rel="stylesheet" type="text/css" href="style.css" /
• ></head
• ><body
• ></body
• ></html
عن طريق المفكرة وعند حفظ الملف يجب ان يكونCss قم بأنشاء ملف: • مثال
CSS امتداد الملف
: • اكتب الكود التالي
• body {
• background‐color: #FF0000;
•}
: HTML • في صفحة
• <html>
• <head>
• <title>My document</title>
• <link rel="stylesheet" type="text/css" href="style.css" />
• </head>
• <body>
• <h1>My first stylesheet</h1>
• </body>
• </html>
: الطريقة الثالثة
Inline style: • ان يكتب الستايل داخل الوسم
• <HTML>
• <head>
• <title>Example<title>
• </head>
• <body style="background‐color: #FF0000;">
• <p>This is a red page</p>
• <h1 style="color:blue;margin-left:30px;">This is a Heading.</h1>
• </body>
• </html>
•
: • مالحظة
• بقية تفاصيل المادة تم التطرق له في المحاضرة بتفصيل والتي تم توضيح مجموعة من
Background , ( الخصائص التي تم دراستها هي, CSS الخصائص تستخدم في لغة ال
على الطالب ان يتحصل على تلك الخصائص في مقرر المادة, )Fonts, Texts, Links
.Introduction to internet programming (CN381) CSS Tutorial