Web Programming with html5, css, and JavaScript


FIGURE 1.5 .  You can use that skeleton code for all your web pages. 8



Download 18,68 Mb.
Pdf ko'rish
bet37/98
Sana28.10.2022
Hajmi18,68 Mb.
#857632
1   ...   33   34   35   36   37   38   39   40   ...   98
Bog'liq
Web Programming with HTML5, CSS, and JavaScript

FIGURE 1.5

You can use that skeleton code for all your web pages.
8
ChaptER 1
 
Introduction to Web Programming


FIGURE 1.4 
Source code for Kansas City Weather web page
FIGURE 1.5 
Skeleton code using just doctype and the structural elements
The first construct, 
, tells the browser what type of document the web 
page is. Its 
html
value (in 
) indicates that the document is an HTML docu-
ment, and more specifically that the document uses the HTML5 standard for its syntax. 
Syntax
refers to the words, grammar, and punctuation that make up a language.





K.C. Weather



Kansas City Weather




It should be pleasant today with a high of 95 degrees.
With a humidity reading of 30%, it should feel like 102 degrees.

Tomorrow's temperatures:
high 96, low 65

.
.
.

Kansas City Weather




It should be pleasant today with a high of 95 degrees.
With a humidity reading of 30%, it should feel like 102 degrees.

Tomorrow's temperatures:
high 96, low 65

Kansas City Weather





15
1.10 Cascading Style Sheets Preview


Go back to the web page display in Figure 1.3 and note how 
h1
and 
hr
are centered. Note how 
the 
hr
element spans 75% of the width of the page. By default, 
h1
would be left aligned and the 
hr
element would span 100% of the page. Thus, the CSS rules changed the default. If you reduce the 
hr
element’s width, as in this weather page example, then alignment becomes apparent, and the 
hr
element gets center alignment by default. To change its alignment, use
margin-right: 0%
for right alignment or 
margin-left: 0%
for left alignment.

Download 18,68 Mb.

Do'stlaringiz bilan baham:
1   ...   33   34   35   36   37   38   39   40   ...   98




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish