![]() |
#136 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,142
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I have seen <hr/> used for a section break marker to have a thin line. It works pretty well.
|
![]() |
![]() |
![]() |
#137 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,312
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
I think what the accessibility group was getting at, was that software can be programmed to recognize an <hr/> and treat it differently than the <p> or <div>. Visually it doesn't make a difference, but the standards that support accessibility should be followed.
Using their 2nd example, I was able to include images, or fleurons, within the <hr/>. It actually became easier/shorter to code as well. I previously used this when inserting a scene break: Code:
<div class="ChDiv"><img alt="" src="../Images/fleur.gif"/></div> Code:
<hr class="ChDiv"/> Code:
hr.ChDiv { border:none; margin:1.25em auto; height:.5em; background: transparent url("../Images/fleur.gif") no-repeat center; background-size: auto 100%; overflow: hidden; page-break-inside: avoid; break-inside: avoid; } |
![]() |
![]() |
Advert | |
|
![]() |
#138 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
![]() |
![]() |
![]() |
#139 | ||
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,312
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
Quote:
Code:
.SecBrk {margin-top:2em} <p>Para before the break/</p> <p class="SecBrk">Para at the break.</p> <p>Para after the break.</p> ![]() |
||
![]() |
![]() |
![]() |
#140 | |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,312
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
The first fleuron is using my <div> method, the second is using the <hr>. |
|
![]() |
![]() |
Advert | |
|
![]() |
#141 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,142
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#142 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
I'll take a look. We try--we do--to address usability and all that, but sometimes, they kinda make me want to scream. I mean...we have a book in with 654 images. (sigh). And of course, the author didn't put in title or meta info! Hitch |
|
![]() |
![]() |
![]() |
#143 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,312
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
You can certainly use padding if you wish. The use of margin here was simply an example of what the article was referring to...they were talking about margins, so I used margins.
|
![]() |
![]() |
![]() |
#144 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
I noticed that the image examples don't fill in the alt entry. This, if it were filled in, would identify the break automatically.
Dale |
![]() |
![]() |
![]() |
#145 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,142
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I used to use margins for section breaks. I forget where I picked up padding instead of margins for section breaks. But padding does work must better.
|
![]() |
![]() |
![]() |
#146 | |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,312
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
If you used: alt="Scene Break" it would simply display "Scene Break" in place of the image. The added benefit is an accessibility device would read the words "Scene Break" aloud. I don't know exactly how accessibility devices treat a scene break differently, perhaps someone here can explain better?? |
|
![]() |
![]() |
![]() |
#147 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
![]() |
![]() |
![]() |
#148 | |||||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Margins got eaten, padding stays. Quote:
See Example 8, WebAIM "Alternative Text": Quote:
Quote:
If that HTML5Doctor article was correct, it would be the same as if you did </section><section>. <section> is a new HTML5 tag, and allows users to navigate more easily (similar to headings): https://developer.mozilla.org/en-US/...lement/section So let's say in a Fiction book, each scene could be in its own <section>: Code:
<section> <h2>Chapter 1</h2> <p>The green cow woke up, [...]</p> </section> <section> <p class="scenebreak">* * *</p> <--- (or <img> here) <p>Stumbling through the meadow, [...]</p> </section> Code:
<section> <h2>Chapter 1</h2> <p>The green cow woke up, [...]</p> <hr class="scenebreak" /> <p>Stumbling through the meadow, [...]</p> </section> This would still allow a blind reader to hop to the next section, just like they could jump to the next <h2> or chapter. * * * Nowadays, on more modern browsers, there's the Accessibility Tree + ARIA:
ARIA (Accessible Rich Internet Applications) lets you assign labels/roles, and nudge the browser in certain ways. Like you can tell the browser "these are navigation links": Spoiler:
A screen reader can then treat those differently than your typical links within an article. The Accessibility Tree lets you see the semantics and innards behind code... and the HTML5 tags, by default, already map to ARIA stuff. This is one of the reasons why semantics is much more important. Side Note: Of course, you can also go in the complete opposite direction and begin bungling it up "when trying to be helpful" and over-assigning ARIA roles/labels. Again, this is why it's a little better to err on the side of KISS. ![]() One of the blogs I love to read is "Marco's Accessibility Blog". He's a blind web developer and has done a ton of coding and enhancements for Mozilla/Google/WordPress/NVDA. And since he's blind... he explains all the typical pitfalls/pain-points. Last edited by Tex2002ans; 06-24-2020 at 11:13 PM. |
|||||
![]() |
![]() |
![]() |
#149 | ||
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43
Karma: 100000
Join Date: Jun 2018
Device: none
|
Quote:
Quote:
Last edited by Land_Outcast; 06-25-2020 at 12:41 PM. |
||
![]() |
![]() |
![]() |
#150 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
![]() |
![]() |
![]() |
Tags |
semantic markup |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Span Span Span Sigil cleaning up indesign | blackest | Sigil | 31 | 12-06-2017 10:16 AM |
Span Span Span Span | MULTIVAC | ePub | 7 | 12-06-2014 08:58 AM |
Nested Span? | Turtle91 | ePub | 4 | 05-20-2013 02:47 PM |
span in span: is this problematic? | tbuyus | ePub | 8 | 03-31-2013 08:01 AM |
Remove <br /> together with span, and only span | Razzia | Recipes | 3 | 05-30-2011 06:55 PM |