1 / 7

Shirift o’lchami va rangi

Shirift o’lchami va rangi. 9-sinf. Shirift o’lchami. Internetdagi web-sahifalarda turli shirift va o’lchamda, har-xil ranglar bilan yozilgan matnlarni uchratish mumkin.

keiran
Download Presentation

Shirift o’lchami va rangi

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Shirift o’lchami va rangi 9-sinf

  2. Shirift o’lchami Internetdagi web-sahifalarda turli shirift va o’lchamda, har-xil ranglar bilan yozilgan matnlarni uchratish mumkin. Shirift o’lchamini belgilash uchun HTML da <FONT SIZE> deskriptoridan foydalaniladi. Bu deskriptor ishlatilganda kiritilayotgan matn deskriptoridan foydalaniladi. Bu deskriptor ishlatilganda kiritilayotgan matn shirifti o’zgarmaydi. Shirift o’lchami o’zgarganini faqat web-brauzerda ko’rish mumkin. Web-sahifada 7 xil o’lchamdagi shriftlarni ishlatish mumkin. Ular 1 dan 7 gacha sonlar bilan belgilanib, 1-eng kichik, 7 esa eng katta shirift o’lchamini bildiradi. Masalan, shirift o’lchamini 5 ga teng qilib olish uchun <FONT SIZE=5> ko’rinishidagi deskriptor yoziladi. Asosiy shirift o’lchamiga qaytish uchun </FONT> deskriptori qo’llaniladi.

  3. Shirift o’lchami o’zgartishga misol <HTML> <H1> Shirift o’lchami </H1> <P> Matnning bu satri asosiy shiriftda yozilgan <FONT SIZE=7> 7-shirift <FONT SIZE=6> 6-shirift <BR><FONT SIZE=5> 5-shirift <FONT SIZE=4> 4-shirift <BR><FONT SIZE=3> 3-shirift <FONT SIZE=2> 2-shirift <FONT SIZE=1> 1-shirift </FONT> <BR> Matnning bu satri asosiy shiriftda yozilgan </BR> </HTML>

  4. Shirift rangi Web-sahifada turli ranglarni ishlatish uni yanada go’zal va jozibali ko’rsatadi. Web-sahifada matn rangi bilan birga fon rangini ham o’zgartirish mumkin. Buning uchun bizga <BODY> deskriptori kerak bo’ladi. Bu deskriptor yordamida web-sahifaning asosiy qismi (tanasi) belgilab olinadi. U </BODY> deskriptori bilan yakunlanadi. Bu ikki deskriptor orasida sarlavha, matn, garfika joylashishi mumkin. Web-sahifadagi matn yoki fon rangini o’zgartirish uchun <BODY> deskriptori mos ravishda “Text=” yoki “Bgcolor=” ko’rsatmalari bilan birga qo’llaniladi. Bu ko’rsatmalarda “=” belgisidan keyin qo’shtirnoq ichida rang kodi yoziladi. Rang kodi “#” belgisi bilan boshlanadi. Rang kodi RGB (Red – qizil, Green – yashil, Blue – ko’k) ranglar tizimiga asoslangan

  5. HTML rang kodi jadvali

  6. Matn va fon rangini o’zgartishga misol <HTML> <H1> Matn va fonga rang berish </H1> <BODY BGCOLOR=“#FFFF00” TEXT=“#FF0000”> <BR> Bu matn qizil randa fon rangi esa sariq rangda <BR> Matnrangini o’zgartirish uchun rang kodlarini bilish zarur </BR> </HTML>

More Related