Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

50%
+0 −0
Q&A Should quotation marks for titles of short works be included as part of link text?

In a hypertext document, when the title of a short work (which is enclosed in quotation marks) is a link should the quotation marks be included as part of the link text? Do common style guides gene...

2 answers  ·  posted 10y ago by Paul A. Clayton‭  ·  last activity 5y ago by System‭

#3: Attribution notice added by user avatar System‭ · 2019-12-08T03:56:37Z (almost 5 years ago)
Source: https://writers.stackexchange.com/q/14748
License name: CC BY-SA 3.0
License URL: https://creativecommons.org/licenses/by-sa/3.0/
#2: Initial revision by user avatar Paul A. Clayton‭ · 2019-12-08T03:56:37Z (almost 5 years ago)
In a hypertext document, when the title of a short work (which is enclosed in quotation marks) is a link should the quotation marks be included as part of the link text? Do common style guides generally concur on how this should be handled?

It _seems_ that such quotation marks should be included as part of the link text, since italics (and until CSS3 underscore) are naturally included as part of the text and ::before and ::after CSS content<sup>1</sup> is considered by default as part of the element's text (though such content can be independently styled). An argument could also be made that a link references the object itself and not the title text designating the object, and so HTML should use `<a><cite>Title</cite></a>`.

On the other hand, such decorations are not part of the text proper and so might reasonably be treated as external content.

A very brief search did not find any examples of short titles used as links. One common use, at least for linking to PDF documents, is to include a separate link text (e.g., 'For more detailed coverage of these issues see "Title Decorations in Hypertext Documents" (PDF)'). In fact, in online publication lists, enclosing paper titles in quotation marks seems not to be universal practice.

A more general question would be whether such decorations should be considered part of the element's content with respect to styling. (E.g., if \<q\> styling used some form of quotation mark enclosure _and_ foreground color, should the quotation marks use the foreground color styling of the quoted text.) For CSS, the **default** styling includes ::before and ::after content as part of the element's content, hinting that the World Wide Web Consortium at least considers such the common use.

* * *
<sup>1</sup> which could be used to insert such decorations using rules like: `cite[class~="short_work"]::before {content: '"'} cite[class~="short_work"]::after {content: '"'}`
#1: Imported from external source by user avatar System‭ · 2014-12-30T15:34:43Z (almost 10 years ago)
Original score: 2