Sunum yükleniyor. Lütfen bekleyiniz

Sunum yükleniyor. Lütfen bekleyiniz

HTML 5 NEDİR? Web sayfası geliştirmek için üretilen bir dildir.

Benzer bir sunumlar


... konulu sunumlar: "HTML 5 NEDİR? Web sayfası geliştirmek için üretilen bir dildir."— Sunum transkripti:

1 HTML 5 NEDİR? Web sayfası geliştirmek için üretilen bir dildir.
Html kendi web sayfamızı yazmamız için kullanmamız gereken bir kodlama dilidir. Html Editor: Notepad WebMatrix Dreamweaver Visual Studio Community Edition

2 Profesyonel Editor Avantajları
Kodlama yaparken Auto-Complete özelliği sağlar. WebMatrix ücretsizdir

3 Neden Ana Sayfa İsmi İndex.html Olur?

4 İlk Uygulama

5 Başlıklık Elementleri

6 Başlıklık Elementleri

7 Başlıklık Elementleri
Not: başlıklar birer bir standarttır. h1’den daha büyük yazı yazmak için stilleri kullanabiliriz. Sınır tam anlamıyla programcıya kalmıştır.

8 Metin Elementleri Yazıları ekranda farklı olarak göstermeyi sağlar. Kendi fikir ve düşüncelerimizi en doğru şekilde yansıtabilmesi için hepsi ayrı ayrı görevler almıştır. P strong Span mark Div small Em br

9 Metin Elementleri

10 Yorum Ekleme - Comments
Yorumlar, yazılan kodun daha kolay okunmasını sağlamaktadır. Yorumlar tarayıcılar tarafından yok sayılır, yani yorumu dikkate almaz. Yorum etiketi  " <!-- " karakterleri ile açılır ve " --> " karakterleri ile kapatılır ve yorumumuz bu etiket içine yazılır.

11 Kaynak Kodu / Source Code
Sayfaların kodlarını / kaynağını görebilmek için sayfa üzerindeyken sağ tıklayıp "Kaynağı Göster" diyebilirsiniz.

12 Liste Elementleri Sıralı Liste(Ordered list) ol li 1,2,3,… a,b,c…
I,II,III,IV,…

13 Liste Elementleri Sırasız Liste(Unordered list) ul li
Yuvarlak, kare,baklava,…

14 Liste Elementleri

15 Link Elementleri

16 Link Elementleri Text-decoration: none = Linke tıklama işleminden sonra altı çizili özelliğini kaldırır. Style ayarı yaptığımızdan, <style> tagleri içersinde yer alır. Target: “_blank” = Linke tıkladığımızda sayfayı farklı bir sayfada açmamızı sağlar.

17 Link ve Resim Elementleri

18 Link ve Resim Elementleri
Eğer resimleriniz web sayfanızın bulunduğu klasörden farklı bir yer de bulunuyor ve bulunduğu konum üst bir klasörde ise İmg src=“../” şeklinde erişmemiz mümkündür

19 Link ve Resim Elementleri

20 Link ve Resim Elementleri
Not: İmage için anlatılan kurallar, linkler içinde geçerlidir. Hedef sayfaya erişim sağlarken a href=“../” mantığı ile yapılabilir. Uygulama: Resim için yaptığımız uygulamanın bir değişiğini sayfalar içinde yapınız.

21 Formlar ile Bilgi ve Giriş
Input Text Password Number Tel url Date Time Submit Textarea

22 Formlar ile Bilgi ve Giriş

23 Formlar ile Bilgi ve Giriş
autofocus="true" = Bu özellik sayfa ilk yüklendiğinde, klavyeden herhangi bir tuşa bastığımızda otomatik olarak yazılacak alanın belirlenmesinde kullanılır. Value=“” bütün type lar da kullanılır. Amaç yazılan kutuda sayfa ilk açıldığında varsayılan olarak istenilen değerin gözükmesini sağlar.

24 Combobox ile Seçim Select Option Optgroup Label Value selected

25 Combobox ile Seçim Çoktan Tek Seçmeli

26 Seçim Elementleri Çoktan çok veya Hepsi görünür seçmeli
Checkbox İd Name Checked Radio name

27 Seçim Elementleri Çoktan çok veya Hepsi görünür seçmeli

28 Seçim Elementleri Çoktan çok veya Hepsi görünür seçmeli
Tarayıcılar, ekranda gördükleri yazı karakterlerini farklı yorumlayarak birbirlerinden farklı büyüklükte gösterebilir. Eğer belli bir standart büyüklüklerinde ve bütün tarayıcıların aynı yorumu getirmesini istiyor isek, <h4,h3..> gibi taglerini kullanmamız gereklidir. checked : varsayılan olarak checkbox kutusunun seçili olarak gelmesini sağlar

29 Video ve Ses Video Src Loop Autoplay Controls Poster Audio controls

30 Video ve Ses <!--Burada sadece genişlik değeri yazıldı. Bu yüzden yükseklik değeri otomatik olarak hesaplanır. Eğer manuel olarak girmek istersek yükseklik değerini de girebiliriz. Fakat en boy oranı tutmaz ise kalite olarak bozuk görülme ihtimalini unutmamız gerekiyor.Controls ise:başlatma, ileri geri sarma,ses açma kapama, ekranı kaplama özelliklerinin kullanılmasını sağlar autoplay: bu komutu eklediğimizde, sayfa yüklenir yüklenmez videonun başlamasını sağlar.-->

31 Video ve Ses Autoplay özelliği kaldırması gerekiyor. Aksi halde eklediğimiz resmi hızlı geçer ve bir anlamı kalmaz. Poster: Videoya ya poster eklememizi sağlar Loop: Bu komut videonun sürekli olarak başa dönerek devam etmesini sağlar

32 Video ve Ses

33 <meta> Etiketi <meta> etiketi ile bir web sayfasını yada sitenin arama motorları için bilgilerin tanımlanmasını sağladığı gibi, içeriğin kodlama biçimini de tanımlar. 1- <meta name=“description” content=“Blmyo Sitesi”/> Arama motorlarına bilgi verme amacını taşır. 2-<meta name=“keywords” content=“HTML,HTML5,CSS2,CSS3”/> Bir web sayfasının içeriğini temsil eden ve aralarına virgül konularak tanımlanan anahtar kelimelerini arama motorlarına tanıtmamızı sağlar.

34 CSS3(Cascading Style Sheets)
Stil şablonları olarak tanımlanan bu kodlama tekniği, HTML elementlerinin daha işlevsel özellikler kazanması için kullanılır. Tasarım tamamen CSS ile yapılmaktadır. CSS kuralı bir seçici ile bu seçicinin sınırlarını gösteren { } süslü parantezler arasındaki CSS özelliklerinin tümüne denir.

35 CSS3(Cascading Style Sheets)
Body{ color:red } Bu kurala göre sayfanın yazı rengi kırmızı olacaktır. Sayfa düzeyind stil tanımı, sayfanın <head> kısmında <style> elementi bildirimi ile yapılır. <style> elementi başlangıç ve bitiş etiketleri vardır ve kullanımı zorunludur.

36 CSS3(Cascading Style Sheets) Element Düzeyinde Stil Tanımı
Style niteliği alabilen her elementin bildirimi sırasında yapılabilir. <p style=“color:red”> metin</p>

37 CSS3(Cascading Style Sheets) 1. Blok Düzeyi Elementleri
Bloklar halinde alt alta gelecek bir biçimde görüntü oluşturur. Bu duruma blok denir. <p> ,<h1,h2,..> elementini bu duruma örnek verebiliriz. Marginleri vardır. Margin(Dış Boşluk) Blok düzeyi elementlerin bir çoğu kendisine atanan içeriği görüntülerken bir dış boşluk bırakırlar.

38 CSS3(Cascading Style Sheets) 2. Satır Düzeyi Elementleri
<em>, <b>,<i>,<strong> Bu elementler içeriğii kaydırmaz, içerik bulunduruğu yerde biçimlendirilir. Margin dış boşluk bırakmazlar.

39 CSS3(Cascading Style Sheets) Kutu Modelini Anlamak
Bir elementin kutu modelinde margin(dış boşluk), padding(iç boşluk) ve border (çerçeve kalınlığı) ile tanımlanmaktadır.

40 CSS3(Cascading Style Sheets) 2. Satır Düzeyi Elementleri
<em>, <b>,<i>,<strong> Bu elementler içeriği kaydırmaz, içerik bulunduruğu yerde biçimlendirilir. Margin dış boşluk bırakmazlar.

41 CSS3(Cascading Style Sheets) Dahili CSS Uygulaması

42 CSS3(Cascading Style Sheets) Harici CSS Uygulaması

43 CSS3(Cascading Style Sheets)
Stilin bütün taglara uygulandığını görebiliyoruz.

44 CSS3(Cascading Style Sheets)
Class tanımlaması yaparak istediğimiz tagların farklı stiller almasını sağlamış olduk

45 CSS3(Cascading Style Sheets)
İd tanımlaması ile tekil olma özelliği ile farklı stiller oluşturmak için kullanılır

46 CSS3(Cascading Style Sheets)
Not: Klavye den CTRL+K+D tuşlarına basar isek, web matrix kodların düzenini yeniden ayarlayarak doğru hale getirir.

47 CSS3(Cascading Style Sheets)
Padding: ustten başlar saat yönünde değerler gireriz. Text-shahow: gölge için kullanılır. İlk değer gölgenin soldan ne kadar uzakta olduğu, ikincisi Üstten ne kadar uzakta olduğu, üçüncüsü koyuluğu ve son olarak renk işlemi yapılır.

48 CSS3(Cascading Style Sheets)

49 CSS3(Cascading Style Sheets)
Solid: düz çizgi sağlar Dashed: Kenarları kesikli yapar Dotted: Kenarları noktalı yapar Padding: boşluk olmasını istemediğimiz bölümlere 0px girmemiz gereklidir. border-radius değeri yükseklik ve genişlik değerinin tam yarısı ise, resim daire haline gelir.

50 3.Hafta

51 CSS Height and Width <style> div { height: 200px; width: 50%; background-color: powderblue; } </style> <body> <h2>Set the height and width of an element</h2> <p>This div element has a height of 200px and a width of 50%:</p> <div></div> </body>

52 CSS Height and Width <style> div { height: 100px; width: 500px; background-color: powderblue; } </style> <body> <h2>Set the height and width of an element</h2> <p>This div element has a height of 100px and a width of 500px:p> <div></div> </body>

53 CSS Height and Width <style> div { max-width: 500px; height: 100px; background-color: powderblue;} </style> <body> <h2>Set the height and width of an element</h2> <p>This div element has a height of 100px and a width of 500px:p> <div></div> </body>

54 CSS Height and Width <style> div.ex1 { width:500px; margin: auto; border: 3px solid #73AD21;} div.ex2 { max-width:500px; </style> <body> <div class="ex1">This div element has width: 500px;</div> <br> <div class="ex2">This div element has max-width: 500px;</div> <p><strong>Tip:</strong> Drag the browser window to smaller than 500px wide, to see the difference between the two divs!</p> </body>

55 CSS BOX MODEL <style> div { background-color: lightblue;
<body> <div> Deneme Deneme Deneme Deneme , Deneme Deneme Deneme , Deneme Deneme Deneme Deneme Deneme Deneme.</div> </body>

56 CSS BOX MODEL <style> div { background-color: lightblue;
width: 200px; }</style> <body> <div> Deneme Deneme Deneme Deneme , Deneme Deneme Deneme , Deneme Deneme Deneme Deneme Deneme Deneme.</div> </body>

57 CSS BOX MODEL <style> div { background-color: lightblue;
width: 200px; padding: 25px; }</style> <body> <div> Deneme Deneme Deneme Deneme , Deneme Deneme Deneme , Deneme Deneme Deneme Deneme Deneme Deneme.</div> </body>

58 CSS BOX MODEL <style> div { background-color: lightblue;
width: 200px; padding: 25px; border: 25px solid navy; }</style> <body> <div> Deneme Deneme Deneme Deneme , Deneme Deneme Deneme , Deneme Deneme Deneme Deneme Deneme Deneme.</div> </body>

59 CSS Pseudo-classes

60 <style> /* unvisited link */ a:link { color: red; } /* visited link */ a:visited { color: yellow; } /* mouse over link */ a:hover { color: hotpink; } /* selected link */ a:active { color: blue; } </style> <body> <p><b><a href="2.html" >This is a link</a></b></p> <p><b>Note:</b> a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective.</p> <p><b>Note:</b> a:active MUST come after a:hover in the CSS definition in order to be effective.</p> </body>

61 Pseudo-classes and CSS Classes
<style> a.highlight:hover { color: #990;} </style> <body> <p><a class="highlight" href="#">CSS Sınıf Kuralı</a></p> <p><a href="#">CSS Egitimi</a></p> <a href="#">deneme</a> </body>

62 Hover on <div> <style> div { background-color: green; color: white; padding: 25px; text-align: center; } div:hover { background-color: blue; </style> <body> <p>Mouse over the div element below to change its background color:</p> <div>Mouse Over Me</div> </body>

63 <style> p { display: none; background-color: yellow; padding: 20px; } div:hover p { display: block; </style> <body> <div>Hover over me to show the p element <p>Tada! Here I am!</p> </div> </body>

64 CSS - The :first-child Pseudo-class
<style> p:first-child { color: blue; } </style> <body> <p>This is some text.</p> <p><b>Note:</b> For :first-child to work in IE8 and earlier, a DOCTYPE must be declared.</p> </body>

65 CSS - The :first-child Pseudo-class
<style> p:first-child { color: blue; } </style> <body> <p>I am a <i>strong</i> person. I am a <i>strong</i> person.</p> <p><b>Note:</b> For :first-child to work in IE8 and earlier, a DOCTYPE must be declared.</p> </body>

66 CSS3(Cascading Style Sheets)
P elementine farklı farklı özellikler tayin edildi. Paragraf sayısı birden fazla olmalıdır:

67 CSS3(Cascading Style Sheets)
Linklerin hover özelliği

68 OwerFlow <style> div { background-color: #eee; width: 200px; height: 50px; border: 1px dotted black; overflow: visible; } </style> <body> <h2>CSS Overflow</h2> <p>By default, the overflow is visible, meaning that it is not clipped and it renders outside the element's box:</p> <div>You can use the overflow property when you want to have better control of the layout. The overflow property specifies what happens if content overflows an element's box.</div> </body>

69 Overflow <style> div { background-color: #eee; width: 200px; height: 50px; border: 1px dotted black; overflow: scroll; } </style> </head> <body> <h2>CSS Overflow</h2> <div>You can use the overflow property when you want to have better control of the layout. The overflow property specifies what happens if content overflows an element's box.</div> </body>

70 Overflow <style> div { background-color: #eee; width: 200px; height: 50px; border: 1px dotted black; overflow: auto; } </style> </head> <body> <h2>CSS Overflow</h2> <p>The auto value is similar to scroll, only it add scrollbars when necessary:</p> <div>You can use the overflow property when you want to have better control of the layout. The overflow property specifies what happens if content overflows an element's box.</div> </body>

71 Overflow <style> div { background-color: #eee; width: 150px; height: 70px; border: 1px dotted black; white-space: nowrap; } </style> </head> <body> <div> <p>In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since.</p> </div> </body>

72 CSS Layout - inline-block
<style> .floating-box { float: left; width: 150px; height: 75px; margin: 10px; border: 3px solid #73AD21; } .after-box { clear: left; border: 3px solid red; } </style> <body> <h2>The Old Way - using float</h2> <div class="floating-box">Floating box</div> <div class="after-box">Another box, after the floating boxes...</div> </body>

73 CSS Layout - inline-block
<style> .floating-box { display: inline-block; width: 150px; height: 75px; margin: 10px; border: 3px solid #73AD21; } .after-box { border: 3px solid red; } </style> <body> <h2>The New Way - using inline-block</h2> <div class="floating-box">Floating box</div> <div class="after-box">Another box, after the floating boxes...</div> </body>

74 CSS Layout - The position Property
There are four different position values: static relative fixed absolute

75 Position: Static <style> div.static { position: static; border: 3px solid #73AD21; } </style> <body> <h2>position: static;</h2> <p>An element with position: static; is not positioned in any special way; it is always positioned according to the normal flow of the page:</p> <div class="static"> This div element has position: static; </div> </body>

76 Position:Relative <style> div.relative { position: relative; left: 50px; top:0px; border: 3px solid #73AD21; } </style> <body> <h2>position: relative;</h2> <p>An element with position: relative; is positioned relative to its normal position:</p> <div class="relative"> This div element has position: relative; </div> </body>

77 Position:fixed; Position fixed verdiğimiz div çakılı bir şekilde orada kalıyor hiç bir şekilde oynama yapmıyor.Ama bu özelliği ie6  desteklemiyor. <style> div.fixed { position: fixed; bottom: 0; right: 0; width: 1000px; border: 3px solid #73AD21; } </style> <body> <h2>position: fixed;</h2> <p>An element with position: fixed; is positioned relative to the viewport, which means it always stays in the same place even if the page is scrolled:</p> <div class="fixed"> This div element has position: fixed; </div> </body>

78 Position: Absolute <style> div.relative { position: relative; width: 400px; height: 200px; border: 3px solid #73AD21; } div.absolute { position: absolute; top: 80px; right: 0; width: 200px; height: 100px; border: 3px solid #73AD21;} </style> <body> <h2>position: absolute;</h2> <div class="relative">This div element has position: relative; <div class="absolute">This div element has position: absolute;</div> </div> </body>

79 Position: Absolute Absolute özelliğinin left ve right değerlerinin sayfaya göre olmamasını istiyorsanız, iç içe div içerisinde ve ona bağlı olan div’in position değeri relative olması gereklidir. Bulunduğu div’e göre konumlandırmak istiyor isek; html’de iç içe olmalılar.

80 Overlapping(Üst Üste Binme)

81 Eğer katmanları istediğimiz sıra ile göstermek istiyor isek her katmana sırasına göre sayısal değer atamalıyız. Yüksek değer alan katmanlar üstte düşük değer alan katmanlar ise altta kalacaktır. Buna göre istediğimiz görüntüyü elde etmek için z-index değerleri vermeliyiz.

82 Uygulama

83 Uygulama <style> .container { position: relative; } .topleft { position: absolute; top: 8px; left: 16px; font-size: 18px; } img { width: 100%; height: auto; opacity: 0.3; </style> <body> <div class="container"> <img src="trolltunga.jpg" alt="Norway" width="1000" height="100"> <div class="topleft">Top Left</div> </div> </body>

84

85 Uygulama <style> .container { position: relative; } .bottomright { position: absolute; bottom: 8px; right: 16px; font-size: 18px; } img { width: 100%; height: auto; opacity: 0.3; } </style> <body> <div class="container"> <img src="trolltunga.jpg" alt="Norway" width="1000" height="300"> <div class="bottomright">Bottom Right</div> </div> </body>

86 Uygulama

87 5.Hafta

88 Uygulama <style> .container { position: relative; width:600px; height:auto;} .center { position: absolute; top: 50%; width: 100%; text-align: center; font-size: 18px; } img { width: 100%; height: auto; opacity: 0.3; } </style> <body> <div class="container"> <img src="Beykoz-Üniversitesi-Gelecek-Kampüs.jpg" alt="Norway" height="auto"> <div class="center">Centered</div> </div> </body>

89 Transparan <style> div.background { background: url(klematis.jpg) repeat; border: 2px solid black; } div.transbox { margin: 30px; background-color: #ffffff; border: 1px solid black; opacity: 0.6; filter: alpha(opacity=60); /* For IE8 and earlier */ } div.transbox p { margin: 5%; font-weight: bold; color: #000000; } </style> <body> <div class="background"> <div class="transbox"> <p>This is some text that is placed in the transparent box.</p> </div> </div> </body>

90 Transparan Uygulaması

91 Transparan Uygulaması(devam)

92 Transparan Uygulaması(devam)

93 6.hafta

94 CSS Navigation Bar -Vertical
<body> <ul> <li><a href="#home">Home</a></li> <li><a href="#news">News</a></li> <li><a href="#contact">Contact</a></li> <li><a href="#about">About</a></li> </ul> <p>Note: We use href="#" for test links. In a real web site this would be URLs.</p> </body>

95 CSS Navigation Bar-Vertical
<style> ul { list-style-type: none; margin: 0; padding: 0; } </style> <body> <p>In this example, we remove the bullets from the list, and its default padding and margin.</p> <ul> <li><a href="#home">Home</a></li> <li><a href="#news">News</a></li> <li><a href="#contact">Contact</a></li> <li><a href="#about">About</a></li> </ul> </body>

96 CSS Navigation Bar-Vertical
<style> ul { list-style-type: none; margin: 0; padding: 0; width: 60px; } li a { display: block;/* Genişliğini korumayı sağlar*/ background-color: #dddddd; } </style> <body> <ul> <li><a href="#home">Home</a></li> <li><a href="#news">News</a></li> <li><a href="#contact">Contact</a></li> <li><a href="#about">About</a></li> </ul> <p>A background color is added to the links to show the link area.</p> <p>Notice that the whole link area is clickable, not just the text.</p> </body>

97 CSS Navigation Bar-Vertical
<style> ul { list-style-type: none; margin: 0; padding: 0; width: 200px; background-color: #f1f1f1; } li a { display: block; /*li ebatıyla uyumu için gereklidir. */ color: #000; padding: 8px 16px;/* Eğer yazılmaz ise, linkin etrafında boşluk olmaz sadece genişlik li’ye göre ayarlanır*/ text-decoration: none; } li a:hover { /* Change the link color on hover */ background-color: #555; color: white; } </style> <body> <h2>Vertical Navigation Bar</h2> <ul> <li><a href="#home">Home</a></li> <li><a href="#news">News</a></li> <li><a href="#contact">Contact</a></li> <li><a href="#about">About</a></li> </ul> </body>

98 CSS Navigation Bar-Vertical
<style> ul { list-style-type: none; margin: 0; padding: 0; width: 200px; background-color: #f1f1f1; } li a { display: block; color: #000; padding: 8px 16px; text-decoration: none; li a.active { background-color: #4CAF50; color: white; li a:hover:not(.active) { background-color: #555; color: white; } </style> <body> <p>In this example, we create an "active" class with a green background color and a white text. The class is added to the "Home" link.</p> <ul> <li><a class="active" href="#home">Home</a></li> <li><a href="#news">News</a></li> <li><a href="#contact">Contact</a></li> <li><a href="#about">About</a></li> </ul> </body>

99 <style> ul { list-style-type: none; margin: 0; padding: 0; width: 200px; background-color: #f1f1f1; border: 1px solid #555; } li a { display: block; color: #000; padding: 8px 16px; text-decoration: none; } li { text-align: center; border-bottom: 1px solid #555; } li:last-child { border-bottom: none; } li a.active { background-color: #4CAF50; color: white; } li a:hover:not(.active) { background-color: #555; color: white; } </style> <body> <ul> <li><a class="active" href="#home">Home</a></li> <li><a href="#news">News</a></li> <li><a href="#contact">Contact</a></li> <li><a href="#about">About</a></li> </ul> </body> </html>

100 7.hafta

101 Menu Uygulaması

102 Menu Uygulaması-Html <body> <ul> <li><a class="active" href="#home">Home</a></li> <li><a href="#news">News</a></li> <li><a href="#contact">Contact</a></li> <li><a href="#about">About</a></li> </ul> <div style="margin-left:25%;padding:1px 16px;height:1000px;"> <h2>Fixed Full-height Side Nav</h2> <p>Some text..</p> </div> </body>

103 Menu Uygulaması-CSS <style> body { margin: 0; } ul { list-style-type: none; margin: 0; padding: 0; width: 25%; background-color: #f1f1f1; position: fixed;/* ul ile div’in yan yana gelmesini sağlar*/ height: 100%; overflow: auto; /*genişliği küçültüğümüzde menü yazılarının taşmasını engeller */ } li a { display: block; color: #000; padding: 8px 16px; text-decoration: none; li a.active { background-color: #4CAF50; color: white; li a:hover:not(.active) { background-color: #555; color: white; </style>

104 CSS Navigation Bar-Horizontal
<style> ul { list-style-type: none; margin: 0; padding: 0; overflow: auto; /*Float left etkisini bir sonraki elemente yansımasını engeller*/ } li { float: left; li a { display: block; padding: 8px; background-color: #dddddd; </style> <body> <ul> <li><a href="#home">Home</a></li> <li><a href="#news">News</a></li> <li><a href="#contact">Contact</a></li> <li><a href="#about">About</a></li> </ul> <p><b>Note:</b> If a !DOCTYPE is not specified, floating items can produce unexpected results.</p> <p>A background color is added to the links to show the link area. The whole link area is clickable, not just the text.</p> </body>

105 Fixed Top Navigation Bar Uygulaması

106 Fixed Top Navigation Bar Uygulaması-HTML
<body> <ul> <li><a class="active" href="#home">Home</a></li> <li><a href="#news">News</a></li> <li><a href="#contact">Contact</a></li> <li><a href="#about">About</a></li> </ul> <div style="padding:20px;margin-top:30px;background- color:#1abc9c;height:1500px;"> <h1>Fixed Top Navigation Bar</h1> <h2>Scroll this page to see the effect</h2> <h2>The navigation bar will stay at the top of the page while scrolling</h2> <p>Some text some text some text some text..</p> </div> </body>

107 Fixed Top Navigation Bar Uygulaması-CSS
<style> body {margin:0;} ul { list-style-type: none; margin: 0; padding: 0; overflow: hidden; background-color: #333; position: fixed; top: 0; width: 100%; } li { float: left; li a { display: block; color: white; text-align: center; padding: 14px 16px; text-decoration: none; li a:hover:not(.active) { background-color: #111; .active { background-color: #4CAF50; </style>

108


"HTML 5 NEDİR? Web sayfası geliştirmek için üretilen bir dildir." indir ppt

Benzer bir sunumlar


Google Reklamları