<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Saffron Stroke - Your Web Design Resource &#187; HTML rules</title>
	<atom:link href="http://www.saffronstroke.com/tag/HTML-rules/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.saffronstroke.com</link>
	<description>Design Blog</description>
	<lastBuildDate>Wed, 11 Jan 2012 06:36:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Set HTML rules to help search text in your code in Microsoft Expression Web</title>
		<link>http://www.saffronstroke.com/2009/11/09/set-html-rules-to-help-search-text-in-your-code-in-msew/</link>
		<comments>http://www.saffronstroke.com/2009/11/09/set-html-rules-to-help-search-text-in-your-code-in-msew/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 10:56:11 +0000</pubDate>
		<dc:creator>Minal</dc:creator>
				<category><![CDATA[Expression Web]]></category>
		<category><![CDATA[Expression Web 2]]></category>
		<category><![CDATA[Expression Web 3]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML rules]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[replace]]></category>
		<category><![CDATA[set HTML rules]]></category>
		<category><![CDATA[set HTML rules to find]]></category>

		<guid isPermaLink="false">http://saffronstroke.com/?p=759</guid>
		<description><![CDATA[We often use the Find and Replace tool (CTRL + F) to search for words, in our context, tags, elements, properties and so on in our page. But the same dialog box offers a cool feature of setting HTML rules in your search. These HTML rules let you add conditions as to where in your [...]]]></description>
			<content:encoded><![CDATA[<div align="left" style="float: none; clear:right; padding: 0px 5px 5px 0px;"><a name="fb_share" type="button_count" share_url="http://www.saffronstroke.com/2009/11/09/set-html-rules-to-help-search-text-in-your-code-in-msew/"></a></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;; margin-top:-2px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.saffronstroke.com%2F2009%2F11%2F09%2Fset-html-rules-to-help-search-text-in-your-code-in-msew%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.saffronstroke.com%2F2009%2F11%2F09%2Fset-html-rules-to-help-search-text-in-your-code-in-msew%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>We often use the Find and Replace tool (CTRL + F) to search for words, in our context, tags, elements, properties and so on in our page. But the same dialog box offers a cool feature of setting HTML rules in your search. These HTML rules let you add conditions as to where in your code to search. Let us take a look at how that can be done.</p>
<p>Follow these steps to set HTML rules for searching -</p>
<ol>
<li>Do either of the following
<ul>
<li>To search within a single page, open the page.</li>
<li>To search the entire site, open the site.</li>
<li>To search more than one page in a website, open the site and in the Folder List panel or the Site View, select the pages. Else open all those pages you want to search.</li>
</ul>
</li>
<li>Go to the Edit menu and choose <strong>Find…</strong> to find text, and Replace… to replace text. Both would launch the same Find and Replace dialog box, with different tabs selected by default.</li>
<p><a href="http://www.saffronstroke.com/wp-content/uploads/2009/11/find_11.jpg" rel="lightbox[759]"><img class="alignnone size-full wp-image-761" title="find_1" src="http://www.saffronstroke.com/wp-content/uploads/2009/11/find_11.jpg" alt="find_1" width="460" height="338" /></a></p>
<li>Click on the ‘<strong>HTML Rules…</strong>’ button. The HTML Rules dialog box would be prompted.</li>
<p><a href="http://www.saffronstroke.com/wp-content/uploads/2009/11/html_rules.jpg" rel="lightbox[759]"><img class="alignnone size-full wp-image-762" title="html_rules" src="http://www.saffronstroke.com/wp-content/uploads/2009/11/html_rules.jpg" alt="html_rules" width="460" height="391" /></a></p>
<li>Click on ‘<strong>New rule…</strong>’ In the drop down box (left bottom corner of the window, choose to set the rule ‘Inside tag’ or ‘<strong>Not inside tag</strong>’. In either case, select a tag, from the other drop down. The rule would be created.</li>
<p><a href="http://www.saffronstroke.com/wp-content/uploads/2009/11/html_rules_1.jpg" rel="lightbox[759]"><img class="alignnone size-full wp-image-763" title="html_rules_1" src="http://www.saffronstroke.com/wp-content/uploads/2009/11/html_rules_1.jpg" alt="html_rules_1" width="460" height="390" /></a></p>
<li>To configure the rule, click on the ‘<strong>New rule…</strong>’ (appears as a child under the rule we created above, in the tree view). Choose the options in the bottom left corner for the rule. They are as follows:<br />
<strong>a.       </strong><strong>With attribute: </strong>to<strong> </strong>search inside a tag with the given attribute. For example, inside tag &lt;p&gt;, search for only those tags that have attribute class = content_text.<br />
<strong>b.      </strong><strong>Without attribute:</strong> to search inside a tag without the given attribute. For example, inside tag &lt;p&gt;, search for all other tags except for the ones with attribute class = content_text.<br />
<strong>c.       </strong><strong>Containing: </strong>to search only if it is in another text or tag that you specify.<br />
<strong>d.      </strong><strong>Not Containing: </strong>to search only if it is not another text or tag that you specify.<br />
<strong>e.      </strong><strong>Inside Tag: </strong>to search only if it is in a tag that you specify.<br />
<strong>f.        </strong><strong>Not Inside Tag:</strong> to search only if it is not in a tag that you specify.<strong> </strong></li>
<li>To delete a rule, choose ‘<strong>Delete rule</strong>’ and to delete all the rules, choose ‘<strong>Delete all</strong>’.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.saffronstroke.com/2009/11/09/set-html-rules-to-help-search-text-in-your-code-in-msew/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

