HTML and CSS Reference
In-Depth Information
In (X)HTML5, the embed tag can be used instead of object .
Create an embed element. Since the parameters can be provided as attributes of embed , the
self-closing tag can be applied in XHTML5 as follows:
1.
<embed />
Evidently, the shorthand notation should be omitted in HTML5.
Add the path or URI of the file. It can be done by using the src attribute instead of data
applied on object elements.
2.
<embed src="flash/header.swf" />
3.
Add dimension and optional parameters.
<embed src="flash/header.swf" width="550" height="400" wmode="transparent" />
RSS News Feeds
Creating RSS news feeds generally consists of the following steps:
1.
Create the XML declaration. Since RSS 2.0 news feeds should be valid XML documents,
the first line is the XML declaration:
<?xml version="1.0" encoding="utf-8"?>
The character encoding is optional but recommended.
Create the RSS channel. The contents of the RSS channel should be written within the rss
and channel tags as follows:
2.
<rss version="2.0">
<channel>
</channel>
</rss>
If additional namespaces are required, they should be added to the rss element. Interoperability can be
maximized by providing escaped HTML markup, the creator with Dublin Core metadata, the update period and
frequency defined by the syndication namespace, and the self-link from the Atom vocabulary. The following
namespace declarations should be added:
<rss version="2.0"
xmlns:content=" http://purl.org/rss/1.0/modules/content/ "
xmlns:dc=" http://purl.org/dc/elements/1.1/ "
xmlns:sy=" http://purl.org/rss/1.0/modules/syndication/ "
xmlns:atom=" http://www.w3.org/2005/Atom "
>
 
Search WWH ::




Custom Search