HTML meta element builder
Project description
HTML meta element: description, keywords, author, copyright, robots, refresh, content-type
English:
Meta elements are HTML or XHTML elements used to provide structured metadata about a Web page. Such elements must be placed as tags in the head section of an HTML or XHTML document. Meta elements can be used to specify page description, keywords and any other metadata not provided through the other head elements and attributes.
Turkish:
Meta eklentisi
Meta eklentisi; bir HTML biçimiyle yazılmış sayfanın içinde yer alan, sıklıkla arama motorlarının, ilgili internet sitesini doğru biçimde sınıflandırmasını sağlayan, yanısıra tarayıcıya çeşitli yönergeleri uygulatan tanımlama ipuçlarıdır.
Meta eklentileri nasıl kullanılır?
HTML biçimiyle kodlanmış bir ağ sayfasında, Üst tanımlama (“HEAD”) içeriğine eklenen Meta eklentilerinin belirli işlevleri vardır.
<meta http-equiv=Refresh content=”180; URL=http://www.wikipedia.org”>
“Yenile” Meta eklentisi internet tarayıcısına, ilgili sayfanın 180 saniye, yani üç dakika bir otomatik olarak yenileneceği yönergesini uygulatır.
<META NAME=”Pragma” CONTENT=”no-cache”> <META HTTP-EQUIV=”cache-control” CONTENT=”no-cache”>
Bu iki Meta eklentisi, arama motorlarının önbelleklerine ilgili sayfa içeriğinin alınmamasını sağlamaya yöneliktir.
Use - Kullanım:
>>> import hmeta >>> hmeta.des("HTML Meta Element") <head> <meta name="description" content="HTML Meta Element"> </head> >>> hmeta.key("html,meta,element") <head> <meta name="keywords" content="html,meta,element"> </head> >>> hmeta.aut("Samet Aras") <head> <meta name="author" content="Samet Aras"> </head> >>> hmeta.copy("© 2009") <head> <meta name="copyright" content="© 2009"> </head> >>> hmeta.robots("ALL") <head> <meta name="robots" content="ALL"> </head> >>> hmeta.refresh(5,"http://www.python.org") <head> <meta http-equiv="refresh" content="5; url=http://www.python.org"> </head> >>> hmeta.type("UTF-8") <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head>