META content ne işe yarıyor?

1 view
Skip to first unread message

Akif Eyler

unread,
Jan 19, 2006, 7:51:26 AM1/19/06
to java...@googlegroups.com
<META content="..." name=description> bu tag ne işe yarıyor?

[Google'a sorsam da olurdu, ama çoktan buraya sormuyordum]

--
__MAE

Hakan DILEK

unread,
Jan 19, 2006, 8:09:07 AM1/19/06
to Java...@googlegroups.com
<META content="..." name=description> bu tag ne işe yarıyor?

Genellikle arama motorlarinin kullandigi bilgileri sayfa icine gizlemek icin kullaniliyor.

<meta name="description" content="....">
<meta name="keywords" content="..."> gibi.

http://www.w3.org/TR/html4/struct/global.html#edef-META 'den alinti:

The META element can be used to identify properties of a document (e.g., author, expiration date, a list of key words, etc.) and assign values to those properties. This specification does not define a normative set of properties.

Each META element specifies a property/value pair. The name attribute identifies the property and the content attribute specifies the property's value.



--
_hd

Fuat Geleri

unread,
May 20, 2003, 4:24:19 PM5/20/03
to Java...@googlegroups.com
Sanirim bu metadata biraz daha fazla ilginizi cekebilir ;)
*Java*'daki metadata..


Metadata (
http://java.sun.com/developer/technicalArticles/releases/j2se15langfeat/index.html
)

/As for noble metadata
I'll have to sing its praises later
Its uses are so numerous
To give their due, I'd miss the bus /

The J2SE 5.0 metadata feature is a facility that allows developers to
annotate their code so that tools can generate boilerplate code (e.g
stub generation to remote procedure calls) as directed by annotations.
This facility allows for parsing of your Java files and generating
artifacts such as XML descriptors or source code. For more information
on the metadata facility, please see A Metadata Facility for the Java
Programming Language <http://www.jcp.org/en/jsr/detail?id=175>.

---

Ben "annotation" 'a bir goz atmayi oneririm ;)

(annotation
*1.* açıklayıcı not.
*2.* çikma. not. hasiye. ek açıklama. bilgi notu.
*3.* şerh. ek açıklama. not. açıklamalı. haşiye.)

Benim hatirladigim kadariyla "annotation" java'da hayli gelismis bir kod
yazma sistemi olarak kullaniliyor.
Eger bir kod standard'i yakalamak istiyorsaniz, methodlarda kullanilmak
uzere metadata yaziyorsunuz.
Bu metadatalarin checklerini ve database gibi tutulmalarini
saglayabiliyorsunuz. Yani metadata
sizin kodunuzun metadatasi oluyor. Kodunuz ise data. XML deki mantikla
ayni :)

Hemen basit bir kullanim ornegi vereyim. Ornegin metodlarda her zaman
kimin yazdigini,
ne zaman yazildigini, hangi methodlarin cagirdigini vb bilgileri bulmak
istiyorsunuz. Metadata kullanimini
kodunuza ekliyorsunuz. Import gibi birsey. Sonra methodlara @uses gibi
bir tag koyuyorsunuz.
Artik method'unuzun metadatasi verdiginiz class olmus oluyor. Boylece
bir metadata okuyucusuyla
kodu okutup incik cincik birakmiyorsunuz/muyoruz kodda.

KOD => AYIKLAYICI => POSTA-YONETICI!!

Bu kotu senaryo.. Kimin calismadigi hemen gozukuyo :'(
Hehe, espri tabi..

BIZ => AYIKLAYICI => PROJEYE USTTEN BAKABILMEMIZ :)

Iyi calismalar,
,fuat..

Reply all
Reply to author
Forward
0 new messages