Skip to content

Commit 1485d04

Browse files
authored
Merge pull request #155 from Gallaecio/documentation-improvements-from-miscelaneous-feedback-sources
Add to the documentation a link to XPath/CSS Equivalents
2 parents 1e8ac17 + e3cc06c commit 1485d04

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/usage.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@ And extract data from those elements::
4444
used with HTML. `CSS`_ is a language for applying styles to HTML documents. It
4545
defines selectors to associate those styles with specific HTML elements.
4646

47-
You can use either language you're more comfortable with, though you may find
48-
that in some specific cases `XPath`_ is more powerful than `CSS`_.
47+
You can use either language. CSS_ is usually more readable, but some things can
48+
only be done with XPath_. See `XPath/CSS Equivalents in Wikibooks`_ to compare
49+
their syntax.
4950

50-
.. _XPath: http://www.w3.org/TR/xpath
5151
.. _CSS: http://www.w3.org/TR/selectors
52+
.. _XPath: http://www.w3.org/TR/xpath
53+
.. _XPath/CSS Equivalents in Wikibooks: https://en.wikibooks.org/wiki/XPath/CSS_Equivalents
5254

5355

5456
Using selectors

0 commit comments

Comments
 (0)