اتم (استاندارد وب): تفاوت میان نسخه‌ها

محتوای حذف‌شده محتوای افزوده‌شده
←‏یک نمونه از کدنویسیِ اتم با ویرایشِ ۱٫۰: اشتباهات اصلاح شد, دستور زبان اصلاح شد
برچسب‌ها: برگردانده‌شده ویرایش همراه ویرایش از برنامهٔ همراه ویرایش با برنامهٔ اندروید
خنثی‌سازی ویرایش 33198684 از 169.197.143.29 (بحث)
برچسب: خنثی‌سازی
خط ۲۵:
== کاربرد ==
خوراک‌های وب سایت بوسیلهٔ جامعه [[وبلاگ]] نویسان برای به اشتراک گذاریِ ''سرفصلِ آخرین مطالب''، ''متن کاملِ نوشته'' و نیز ''فایل‌های چند رسانه ایِ'' متصل شده به متن مورد استفاده قرار می‌گیرد.<ref>همچنین ببینید [[پادکست]]، [[ویدئو بلاگ]].</ref>
 
== یک نمونه از کدنویسیِ اتم با ویرایشِ ۱٫۰ ==
<syntaxhighlight lang="xml"><?xml version="1.0" encoding="utf-8"?>
 
<feed xmlns="http://www.w3.org/2005/Atom%22>
 
<title>Example Feed</title>
<subtitle>A subtitle.</subtitle>
<link href="http://example.org/feed/%22 rel="self"/>
<link href="http://example.org/%22/>
<id>urn:uuid:60a76c80-d399-11d9-b91C-0003939e0af6</id>
<updated>2003-12-13T18:30:02Z</updated>
 
<entry>
<title>Atom-Powered Robots Run Amok</title>
<link href="http://example.org/2003/12/13/atom03%22/>
<link rel="alternate" type="text/html" href="http://example.org/2003/12/13/atom03.html%22/>
<link rel="edit" href="http://example.org/2003/12/13/atom03/edit%22/>
<id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
<updated>2003-12-13T18:30:02Z</updated>
<summary>Some text.</summary>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml%22>
<p>This is the entry content.</p>
</div>
</content>
<author>
<name>John Doe</name>
<email>johndoe@example.com</email>
</author>
</entry>
 
</feed></syntaxhighlight>
 
=== در متنِ HTML ===
تگِ زیر باید در بالای کدِ متن قرار گیرد تا بتواند شناسانندهٔ اتم در متن باشد.
<syntaxhighlight lang="html5">
<link href="atom.xml" type="application/atom+xml" rel="alternate" title="Sitewide ATOM Feed"/>
</syntaxhighlight>
 
== پانویس ==