# markup

Markup is a family of languages or notation for annotating and structuring text so that its meaning, presentation, or processing can be interpreted by programs.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## CVE-2026-94567 - NukeViet CMS: Stored XSS via SVG upload: the sanitizer is blind to markup hidden inside an internal DTD entity

DevFeed: [CVE-2026-94567 - NukeViet CMS: Stored XSS via SVG upload: the sanitizer is blind to markup hidden inside an internal DTD entity](<https://devfeed.tech/articles/cve-2026-94567-nukeviet-cms-stored-xss-via-svg-upload-the-sanitizer-is-blind-to-markup-hidden-inside-an-internal-dtd-entity-146645.md>)

Original publisher: [Read original article](<https://cvefeed.io/vuln/detail/CVE-2026-94567>)

Author: CVEFEED.io; github.com

Published: 2026-11-20T19:18:56Z

Content type: news

Language: en

Sources: [Latest High/Critical Vulnerabilitiy Feed](<https://devfeed.tech/sources/latest-high-critical-vulnerabilitiy-feed.md>)

Topics: [SVG](<https://devfeed.tech/topics/svg.md>), [web graphics](<https://devfeed.tech/topics/web-graphics.md>), [markup](<https://devfeed.tech/topics/markup.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [blind](<https://devfeed.tech/tags/blind.md>), [cms](<https://devfeed.tech/tags/cms.md>), [cve](<https://devfeed.tech/tags/cve.md>), [cve-2026-94567](<https://devfeed.tech/tags/cve-2026-94567.md>), [markup](<https://devfeed.tech/tags/markup.md>), [nukeviet](<https://devfeed.tech/tags/nukeviet.md>), [sanitizer](<https://devfeed.tech/tags/sanitizer.md>), [stored](<https://devfeed.tech/tags/stored.md>), [svg](<https://devfeed.tech/tags/svg.md>), [upload](<https://devfeed.tech/tags/upload.md>), [xss](<https://devfeed.tech/tags/xss.md>)

### AI overview

Before NukeViet CMS 4.5.12 and 4.6.02, an SVG upload could store a script hidden inside an internal DTD entity. The upload check leaves entity references unexpanded, and the sanitizer examines only element nodes; browsers expand the entity when serving the stored SVG, while the upload path preserves its original bytes. Guest comment attachments allow unauthenticated uploads only when comments are open to All or Guest and attachments are enabled; module administrators can also upload through the file manager, creating a risk of same-origin script execution in an administrator's session. The issue is fixed in 4.5.12 and 4.6.02.

### Source excerpt

CVE ID :CVE-2026-94567 Published : Nov. 20, 2026, 7:18 p.m. | 1 hour, 35 minutes ago Description :NukeViet CMS is a multi Content Management System. Prior to 4.5.12 and 4.6.02, an attacker with access to an SVG upload flow can hide a script element in an internal DTD entity. NukeViet\Files\Upload::check_svg_tmpfile() loads the document without entity expansion, leaving a DOMEntityReference, and sanitize_svg_dom() inspects only element nodes, while browsers expand the entity when the stored file is served as image/svg+xml. The SVG path also returned before verify_image() and preserved the original bytes, so the hidden script reached disk unchanged. Guest comment attachments make the upload unauthenticated only when a module's comment feature is open to the All or Guest group and allowattachcomm is enabled; module administrators can also use the file manager, allowing same-origin script execution in an administrator's session. This issue is fixed in versions 4.5.12 and 4.6.02. Severity: 9.3 | CRITICAL Visit the link for more details, such as CVSS details, affected products, timeline, and more...

## LLMON: An LLM-Native Markup Language, now in Granite 4.1 3B and 8B

DevFeed: [LLMON: An LLM-Native Markup Language, now in Granite 4.1 3B and 8B](<https://devfeed.tech/articles/llmon-an-llm-native-markup-language-now-in-granite-4-1-3b-and-8b-131215.md>)

Original publisher: [Read original article](<https://huggingface.co/blog/ibm-granite/llmon-an-llm-native-markup-language-now-in-granite>)

Author: Abraham Daniels; Basel Shbita; Chad DeLuca; Dan Gutfreund; Michael Hind; Shub A

Published: 2026-11-12T19:07:35Z

Content type: release

Language: en

Sources: [Hugging Face](<https://devfeed.tech/sources/hugging-face-blog.md>)

Topics: [Large Language Model](<https://devfeed.tech/topics/llm.md>), [LLM security](<https://devfeed.tech/topics/llm-security.md>), [post-training](<https://devfeed.tech/topics/post-training.md>), [markup](<https://devfeed.tech/topics/markup.md>), [Prompt Engineering](<https://devfeed.tech/topics/prompt-engineering.md>), [AI Prompt Templates](<https://devfeed.tech/topics/ai-prompt-templates.md>), [JSON](<https://devfeed.tech/topics/json.md>), [grpo](<https://devfeed.tech/topics/grpo.md>), [dpo](<https://devfeed.tech/topics/dpo.md>)

Tags: [act](<https://devfeed.tech/tags/act.md>), [allowed](<https://devfeed.tech/tags/allowed.md>), [components](<https://devfeed.tech/tags/components.md>), [context](<https://devfeed.tech/tags/context.md>), [data](<https://devfeed.tech/tags/data.md>), [either](<https://devfeed.tech/tags/either.md>), [formats](<https://devfeed.tech/tags/formats.md>), [generate](<https://devfeed.tech/tags/generate.md>), [granite](<https://devfeed.tech/tags/granite.md>), [instructions](<https://devfeed.tech/tags/instructions.md>), [json](<https://devfeed.tech/tags/json.md>), [language](<https://devfeed.tech/tags/language.md>), [llm](<https://devfeed.tech/tags/llm.md>), [llms](<https://devfeed.tech/tags/llms.md>), [markup](<https://devfeed.tech/tags/markup.md>), [model](<https://devfeed.tech/tags/model.md>), [native](<https://devfeed.tech/tags/native.md>), [next](<https://devfeed.tech/tags/next.md>), [over](<https://devfeed.tech/tags/over.md>), [prompt](<https://devfeed.tech/tags/prompt.md>)

### AI overview

LLMON uses reserved special-token delimiters to mark context spans such as instructions, data, and requirements, then binds selected spans through an execution block. This makes relationships explicit for the model and is intended to reduce confusion and static indirect prompt injection. In the described OPI benchmark, LLMON previews nearly eliminated attacks, avoiding 47% more than the best tested frontier model and 95% more than the best open-source model; the authors report comparable general benchmark performance to Granite 4.1 Instruct. The gains are qualified: the benchmarks cover static injections, adaptive multi-turn attacks remain under study, and the learned privilege rule is not an enforced guarantee. The experimental 3B and 8B previews include a chat template, so naming message parts can be enough to use LLMON; converters also support lossless JSON conversion. The authors say it is for exploration, not production.

### Source excerpt

LLMs rely on their context to generate the next set of tokens. Over a long trajectory, the context fills with numerous types of components: a system prompt, past conversation turns, instructions that act on retrieved documents, tool responses or user data, requirements constraining the allowed output, and reasoning chains. The context carries a rich structure, most of which is either implicit to the model or encoded in formats such as JSON that were not designed to be digested by LLMs.

## Taking AI-based transformations to the next level with prompt markup languages

DevFeed: [Taking AI-based transformations to the next level with prompt markup languages](<https://devfeed.tech/articles/taking-ai-based-transformations-to-the-next-level-with-prompt-markup-languages-128040.md>)

Original publisher: [Read original article](<https://www.cio.com/article/4246977/taking-ai-based-transformations-to-the-next-level-with-prompt-markup-languages.html>)

Author: Eamonn O'Neill

Published: 2026-11-11T10:00:00Z

Content type: article

Language: en

Sources: [CIO](<https://devfeed.tech/sources/cio.md>)

Topics: [Prompt Engineering](<https://devfeed.tech/topics/prompt-engineering.md>), [markup](<https://devfeed.tech/topics/markup.md>), [prompt](<https://devfeed.tech/topics/prompt.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [accelerate](<https://devfeed.tech/tags/accelerate.md>), [agent](<https://devfeed.tech/tags/agent.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-model](<https://devfeed.tech/tags/ai-model.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [artificial-intelligence-development-approaches-development-tools-generative-ai-software-developm](<https://devfeed.tech/tags/artificial-intelligence-development-approaches-development-tools-generative-ai-software-developm.md>), [code](<https://devfeed.tech/tags/code.md>), [contributor](<https://devfeed.tech/tags/contributor.md>), [define](<https://devfeed.tech/tags/define.md>), [development-approaches](<https://devfeed.tech/tags/development-approaches.md>), [development-tools](<https://devfeed.tech/tags/development-tools.md>), [edition-us](<https://devfeed.tech/tags/edition-us.md>), [enterprise](<https://devfeed.tech/tags/enterprise.md>), [generative-ai](<https://devfeed.tech/tags/generative-ai.md>), [instructions](<https://devfeed.tech/tags/instructions.md>), [language](<https://devfeed.tech/tags/language.md>), [language-en](<https://devfeed.tech/tags/language-en.md>), [languages](<https://devfeed.tech/tags/languages.md>), [markup](<https://devfeed.tech/tags/markup.md>), [natural-language](<https://devfeed.tech/tags/natural-language.md>), [precision](<https://devfeed.tech/tags/precision.md>), [prompt](<https://devfeed.tech/tags/prompt.md>), [quality](<https://devfeed.tech/tags/quality.md>), [reliability](<https://devfeed.tech/tags/reliability.md>), [software-development](<https://devfeed.tech/tags/software-development.md>), [sources](<https://devfeed.tech/tags/sources.md>), [storytype-opinion](<https://devfeed.tech/tags/storytype-opinion.md>), [tools](<https://devfeed.tech/tags/tools.md>), [transformation](<https://devfeed.tech/tags/transformation.md>)

### AI overview

Prompt markup languages let engineers structure AI instructions programmatically, specifying roles, tools, data sources and logic to make outputs more predictable than relying on ambiguous natural-language prompts alone. The article lists reusable components and templates, prompt chaining, tool selection, and conditionals and loops as capabilities. In the author's enterprise software transformation work, a custom language focused on ontology awareness, audit-friendly evidence and repeatable workflows reportedly improved accuracy and predictability while saving time through automation at scale. The approach takes longer to write than a natural-language question, requires an engineering mindset, and its code needs review and testing.

### Source excerpt

For engineers, one of generative AI's chief selling points is its ability to write code using natural language. It may seem surprising, then, to learn that getting the most out of generative AI increasingly requires them to write code. Specifically, engineers can benefit from what's known as prompt markup languages, which provide the ability to control AI model behavior with greater precision, a key advantage for teams tasked with leveraging AI in contexts where reliability, accuracy and quality are vital. Read on for details on how organizations can benefit from prompt markup languages, including my own business's experience using this technique to help accelerate enterprise transformation projects. The what and why of prompt markup languages A prompt markup language is a programming language designed to structure and manage prompts that users feed into AI models. For example, engineers could use a prompt markup language to define the specific role and tools that an AI model or agent can use when completing a task, or point it to the data sources it should leverage. It's possible, in theory, to give AI systems instructions in natural language that achieve these same ends. The problem with natural language, however, is that it's ambiguous, and there's no guarantee that models will interpret natural language prompts in the precise way the user expects. Nor is it possible to ensure that the same input will always yield the same output. Prompt markup solves these challenges by allowing engineers to take a programmatic approach to feeding instructions into AI models. They can still use natural language to formulate parts of their prompts, but they can rely on markup to define key aspects. By extension, they can elicit more predictable, deterministic behavior from AI systems. The benefits of prompt markup languages To put this in more concrete terms, prompt markup languages deliver benefits like the following: Component reusability: Markup makes it possible to build modu

## How to Write Technical SEO Tickets Developers Can Implement and Test

DevFeed: [How to Write Technical SEO Tickets Developers Can Implement and Test](<https://devfeed.tech/articles/how-to-write-technical-seo-tickets-developers-can-implement-and-test-113694.md>)

Original publisher: [Read original article](<https://hackernoon.com/how-to-write-technical-seo-tickets-developers-can-implement-and-test?source=rss>)

Author: Harry

Published: 2026-11-03T09:00:38Z

Content type: tutorial

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [Search engine optimization (SEO)](<https://devfeed.tech/topics/seo.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [markup](<https://devfeed.tech/topics/markup.md>)

Tags: [acceptance](<https://devfeed.tech/tags/acceptance.md>), [developers](<https://devfeed.tech/tags/developers.md>), [good-company](<https://devfeed.tech/tags/good-company.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [implement](<https://devfeed.tech/tags/implement.md>), [learn](<https://devfeed.tech/tags/learn.md>), [learn-how-to](<https://devfeed.tech/tags/learn-how-to.md>), [regression](<https://devfeed.tech/tags/regression.md>), [regression-testing](<https://devfeed.tech/tags/regression-testing.md>), [seo](<https://devfeed.tech/tags/seo.md>), [seo-acceptance-criteria](<https://devfeed.tech/tags/seo-acceptance-criteria.md>), [seo-best-practices](<https://devfeed.tech/tags/seo-best-practices.md>), [seo-for-developers](<https://devfeed.tech/tags/seo-for-developers.md>), [spec-driven-development](<https://devfeed.tech/tags/spec-driven-development.md>), [technical-seo](<https://devfeed.tech/tags/technical-seo.md>), [technical-seo-audit](<https://devfeed.tech/tags/technical-seo-audit.md>), [test](<https://devfeed.tech/tags/test.md>), [tickets](<https://devfeed.tech/tags/tickets.md>), [write](<https://devfeed.tech/tags/write.md>)

### AI overview

A useful technical SEO ticket defines an observable change on a named page or component, its expected public result, and bounded regression checks. In the example, one contextual link must appear in the product page's care section with the agreed label and destination; reviewers verify the rendered anchor, pointer and keyboard activation, visibility at specified widths, and the existing accordion behavior. The excerpt distinguishes raw-response evidence from rendered-page evidence and recommends recording both alongside the original view, code or configuration change, and public after view. Regression scope depends on actual ownership and dependency paths: separate controls may be excluded only when evidence shows they are unchanged and independent. Passing the ticket's checks does not establish that Google crawled or indexed the link or that rankings improved.

### Source excerpt

Learn how to write technical SEO tickets with clear acceptance criteria, regression checks, and verifiable evidence that developers and reviewers can use.

## How to Make Text Italic in HTML (i vs em vs CSS)

DevFeed: [How to Make Text Italic in HTML (i vs em vs CSS)](<https://devfeed.tech/articles/how-to-make-text-italic-in-html-i-vs-em-vs-css-110748.md>)

Original publisher: [Read original article](<https://markodenic.com/html-italics/>)

Author: Marko

Published: 2026-11-01T09:00:00Z

Content type: tutorial

Language: en

Sources: [Marko Denic Blog](<https://devfeed.tech/sources/marko-denic-blog.md>)

Topics: [HTML](<https://devfeed.tech/topics/html.md>), [CSS](<https://devfeed.tech/topics/css.md>), [Font](<https://devfeed.tech/topics/font.md>), [markup](<https://devfeed.tech/topics/markup.md>), [Variable Fonts](<https://devfeed.tech/topics/variable-fonts.md>), [Markdown](<https://devfeed.tech/topics/markdown.md>), [selectors](<https://devfeed.tech/topics/selectors.md>)

Tags: [css](<https://devfeed.tech/tags/css.md>), [em](<https://devfeed.tech/tags/em.md>), [examples](<https://devfeed.tech/tags/examples.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [html](<https://devfeed.tech/tags/html.md>), [i](<https://devfeed.tech/tags/i.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

Choose `<em>` for words stressed for emphasis, `<i>` for text in an alternate voice such as foreign words or technical terms, and CSS `font-style: italic` when italics are purely visual. These elements look alike by default but convey different meanings; use `<strong>` for importance rather than stress, and use `<cite>`, `<dfn>`, `<var>`, or `<address>` for their stated meanings when appropriate. CSS can also reset italics with `font-style: normal` or create a slant with `oblique`. If a web font lacks an italic file, browsers may fake italics by slanting regular letters; loading an italic font style or using a variable font with an italic axis avoids that fallback. The supplied text notes that screen readers usually do not change their voice for `<em>`, so important meaning should not rely on italics alone.

### Source excerpt

Make text italic in HTML: when to use em, when to use i, the other tags that render in italics, the CSS font-style property, and how to remove italics. With examples.

## Nontrailing separators do not spark joy

DevFeed: [Nontrailing separators do not spark joy](<https://devfeed.tech/articles/nontrailing-separators-do-not-spark-joy-25499.md>)

Original publisher: [Read original article](<https://buttondown.com/hillelwayne/archive/nontrailing-separators-do-not-spark-joy/>)

Author: Hillel Wayne

Published: 2026-06-10T12:22:04Z

Content type: opinion

Language: en

Sources: [Newsletter feed for Hillel Wayne's Newsletter](<https://devfeed.tech/sources/newsletter-feed-for-hillel-wayne-s-newsletter.md>)

Topics: [markup](<https://devfeed.tech/topics/markup.md>)

Tags: [alloy](<https://devfeed.tech/tags/alloy.md>), [better](<https://devfeed.tech/tags/better.md>), [change](<https://devfeed.tech/tags/change.md>), [design](<https://devfeed.tech/tags/design.md>), [grammar](<https://devfeed.tech/tags/grammar.md>), [haskell](<https://devfeed.tech/tags/haskell.md>), [json](<https://devfeed.tech/tags/json.md>), [prolog](<https://devfeed.tech/tags/prolog.md>), [tla-plus](<https://devfeed.tech/tags/tla-plus.md>)

### AI overview

The author argues that banning trailing separators makes edits to lists and records uneven: adding or removing a final item requires extra punctuation changes, unlike edits elsewhere. Examples include JSON, Haskell record fields, TLA+ variables, and Prolog, whose clauses also end with a period. The excerpt contrasts these with Python and Go, which allow trailing commas, TLA+ leading conjunctions and disjunctions, and Alloy, which allows both leading and trailing commas as well as empty separators. The author favors flexible separators, while noting that a parsing ambiguity argument against trailing separators will be considered; the excerpt ends before that argument is explained.

### Source excerpt

This is valid JSON: { "a": 1, "b": 2, "c": 3 } This is invalid JSON: { "a": 1, "b": 2, "c": 3, } The difference is the last comma. The JSON grammar specifies that a comma can separate two members of an object but not postcede ("trail") a member. I think this was a design mistake. Say we want to add two new keys to the struct, one before the "a" member and one after the "c" member. Here's what it would look like if trailing commas were permitted: { + "x": 0, "a": 1, "b": 2, "c": 3, + "y": 4, } It's the exact same text transformation regardless of where we add the key. In the current model, we instead have this: { + "x": 0, "a": 1, "b": 2, - "c": 3 + "c": 3, + "y": 4 } Those are different transformations! Similarly if you want to remove an element, you can't just delete the corresponding line1, you have to delete the line and then check that the last line doesn't have a trailing comma. Don't even get me started on all the special cases involved in swapping two lines. JSON isn't the only language with this problem. Haskell writes record types like this: -- from https://play.haskell.org/ data Drone = Drone { xPos :: Int , yPos :: Int , zPos :: Int } This "partial bullet point" style of putting separators at the beginning of rows makes it easier to change the last row but harder to change the first one. TLA+ has this problem too: \* both valid VARIABLES a, b, c vars == <<a, b, c>> \* both invalid VARIABLES a, b, c, vars == <<a, b, c,>> This one's annoying because 1) you're constantly adding new top-level variables while working on a spec and 2) the PlusCal DSL does not have this problem: \* Totally fine! (*--algorithm foo { variables a; b; c; The worst offenders, IMO, are logic languages like Prolog. Not only don't you have trailing separators, you have a special terminating symbol: foo(A, B, C) :- A = 1, % comma B = 2, % comma C = 3. % period! I guess you can sort of think of it as funny-lookin' braces: foo(A, B, C) :- A = 1, B = 2, C = 3 . But this is not standard synt

## How HTML's hidden="until-found" keeps collapsed content searchable and accessible

DevFeed: [How HTML's hidden="until-found" keeps collapsed content searchable and accessible](<https://devfeed.tech/articles/hidden-until-found-89059.md>)

Original publisher: [Read original article](<https://specification.website/spec/accessibility/hidden-until-found/>)

Author: Joost de Valk

Published: 2026-05-31T17:50:00Z

Content type: tutorial

Language: en

Sources: [The Website Specification](<https://devfeed.tech/sources/the-website-specification.md>)

Topics: [Web Accessibility (a11y)](<https://devfeed.tech/topics/web-accessibility.md>), [aria](<https://devfeed.tech/topics/aria.md>), [markup](<https://devfeed.tech/topics/markup.md>), [Single-page application (SPA)](<https://devfeed.tech/topics/spa.md>)

Tags: [accessibility](<https://devfeed.tech/tags/accessibility.md>), [aria](<https://devfeed.tech/tags/aria.md>), [css](<https://devfeed.tech/tags/css.md>), [html](<https://devfeed.tech/tags/html.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [recommended](<https://devfeed.tech/tags/recommended.md>)

### AI overview

The tutorial explains how HTML's hidden="until-found" attribute lets browsers reveal collapsed content when users find it through page search, text fragments, or scrollIntoView(). It covers accessibility implications, implementation with the beforematch event, common mistakes, and verification in Chrome or Edge.

### Source excerpt

Use hidden="until-found" for collapsible content so that browser find-in-page, assistive tech, and search engines can still reach the text and auto-expand it.

## Avoiding Hydration Mismatches with useSyncExternalStore

DevFeed: [Avoiding Hydration Mismatches with useSyncExternalStore](<https://devfeed.tech/articles/avoiding-hydration-mismatches-with-usesyncexternalstore-48176.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/avoiding-hydration-mismatches-with-use-sync-external-store>)

Published: 2024-02-21T00:00:00Z

Content type: article

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [React](<https://devfeed.tech/topics/react.md>), [browser](<https://devfeed.tech/topics/browser.md>), [client](<https://devfeed.tech/topics/client.md>), [Server](<https://devfeed.tech/topics/server.md>), [timezone](<https://devfeed.tech/topics/timezone.md>), [User Experience](<https://devfeed.tech/topics/user-experience.md>), [render](<https://devfeed.tech/topics/render.md>), [markup](<https://devfeed.tech/topics/markup.md>)

Tags: [browser](<https://devfeed.tech/tags/browser.md>), [client](<https://devfeed.tech/tags/client.md>), [code](<https://devfeed.tech/tags/code.md>), [markup](<https://devfeed.tech/tags/markup.md>), [react](<https://devfeed.tech/tags/react.md>), [render](<https://devfeed.tech/tags/render.md>), [server](<https://devfeed.tech/tags/server.md>), [timezone](<https://devfeed.tech/tags/timezone.md>), [user-experience](<https://devfeed.tech/tags/user-experience.md>)

### AI overview

A React-focused article explains why server-rendered and client-rendered output can differ during hydration, especially when locale, timezone, or browser-only APIs are involved. It discusses suppressing warnings, rendering twice, and using effects to avoid hydration errors, along with the tradeoff of a brief flash of content.

### Source excerpt

Avoiding hydration mismatches can usually be done in two ways - suppressing the warning or spawning an effect. But is there a third option ... ?

## My Advice to a Developer New to Accessibility

DevFeed: [My Advice to a Developer New to Accessibility](<https://devfeed.tech/articles/my-advice-to-a-developer-new-to-accessibility-38446.md>)

Original publisher: [Read original article](<https://eevis.codes/blog/2022-07-22/my-advice-to-a-developer-new-to-accessibility/>)

Author: Eevis Panula

Published: 2023-01-03T08:57:33.125000Z

Content type: tutorial

Language: en

Sources: [Eevis Blog](<https://devfeed.tech/sources/eevis-blog.md>)

Topics: [Web Accessibility (a11y)](<https://devfeed.tech/topics/web-accessibility.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [HTML](<https://devfeed.tech/topics/html.md>), [keyboard](<https://devfeed.tech/topics/keyboard.md>), [markup](<https://devfeed.tech/topics/markup.md>)

Tags: [accessibility](<https://devfeed.tech/tags/accessibility.md>), [accessible](<https://devfeed.tech/tags/accessible.md>), [advice](<https://devfeed.tech/tags/advice.md>), [developer](<https://devfeed.tech/tags/developer.md>), [development](<https://devfeed.tech/tags/development.md>), [element](<https://devfeed.tech/tags/element.md>), [elements](<https://devfeed.tech/tags/elements.md>), [focus](<https://devfeed.tech/tags/focus.md>), [html](<https://devfeed.tech/tags/html.md>), [html-elements](<https://devfeed.tech/tags/html-elements.md>), [input](<https://devfeed.tech/tags/input.md>), [interaction](<https://devfeed.tech/tags/interaction.md>), [interactive](<https://devfeed.tech/tags/interactive.md>), [keyboard](<https://devfeed.tech/tags/keyboard.md>), [learning](<https://devfeed.tech/tags/learning.md>), [markup](<https://devfeed.tech/tags/markup.md>)

### AI overview

This beginner-oriented accessibility article recommends focusing on progress rather than perfection and introduces semantic HTML, keyboard navigation, and listening to people with disabilities. It explains that semantic elements communicate meaning to browsers and developers and support appropriate interaction, while a div styled as a button may work only for mouse users and may not be focusable or keyboard-accessible.

### Source excerpt

Learning about accessibility for the first time can feel overwhelming. You start reading, and at some point, it hits you: There is so much to learn! And if you're like me and feel that it's your responsibility to make the things you create accessible, that might even make you feel anxious. And yes, there is a lot to learn regarding accessibility. But you don't need to know everything at once. As Meryl Evans reminds us in her tweet (and a blog post the tweet links to), it's about progress over perfection: https://twitter.com/merylkevans/status/1547635550466674692 So, here are some things I wish I had known when I first started learning accessibility. Heck, I wish I had known these things when I started learning web development! I'll share semantic HTML, keyboard navigation, and listening to people with disabilities. Learn Semantic HTML and Use It So, first thing: Learn semantic HTML. But what does it mean? Semantic HTML, or semantic markup, describes its meaning to the browser and developer in a human- and machine-readable way. So, with semantic elements, a human will know what the HTML element is about, and the browser knows what it should render and how it should behave when a user interacts with it. Here's an example: <button onClick={...}>I'm an honest button</button> That button uses a semantic button-element. When it does so, the browser knows what it should do when the user either clicks or activates it with a keyboard or other input device. Here's an example of a non-semantic "button": <div className="button" onClick={...}> I look like a button </div> So, this "button" made out of div looks like a button and even has the onClick-handler. So, wouldn't a human recognize it as a button? Well, yes and no. It depends on the human. You see, this "button" works only for mouse users. As div is not an interactive element by nature, it doesn't handle interaction the same way as, for example, a button-element. When using a semantic button-element, that onClick-event pro

## How Improper div Placement Can Harm Semantic HTML and Accessibility

DevFeed: [How Improper div Placement Can Harm Semantic HTML and Accessibility](<https://devfeed.tech/articles/divs-are-bad-52249.md>)

Original publisher: [Read original article](<https://www.matuzo.at/blog/2022/divs-are-bad>)

Author: Manuel Matuzović

Published: 2022-05-11T00:00:00Z

Content type: tutorial

Language: en

Sources: [Manuel Matuzović](<https://devfeed.tech/sources/manuel-matuzovic-blog.md>)

Topics: [markup](<https://devfeed.tech/topics/markup.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [Document Object Model (DOM)](<https://devfeed.tech/topics/dom.md>), [browser](<https://devfeed.tech/topics/browser.md>), [screen](<https://devfeed.tech/topics/screen.md>), [render](<https://devfeed.tech/topics/render.md>)

Tags: [accessible](<https://devfeed.tech/tags/accessible.md>), [browser](<https://devfeed.tech/tags/browser.md>), [debug](<https://devfeed.tech/tags/debug.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [markup](<https://devfeed.tech/tags/markup.md>), [performance](<https://devfeed.tech/tags/performance.md>), [render](<https://devfeed.tech/tags/render.md>), [screen](<https://devfeed.tech/tags/screen.md>), [semantic](<https://devfeed.tech/tags/semantic.md>), [validation](<https://devfeed.tech/tags/validation.md>)

### AI overview

This tutorial explains that div elements are useful when applied consciously, but placing them inside semantic HTML elements can cause accessibility, rendering, and document-structure problems. It covers examples involving details, figures, fieldsets, lists, and paragraphs, and recommends validating rendered markup before deployment.

### Source excerpt

Yes, clickbait, I'm so sorry! Of course, divs are not bad. For example, they can be really useful,... ...when you need additional elements for styling. ...for structuring content, when there's no other suitable element. ...when you need custom landmarks. Even though there's nothing wrong with the div per se, some people, including me, still like to complain when they're not used consciously. The issue with divs is not the quantity, although a large DOM can affect performance negatively, and an unnecessarily large document is harder to read and debug. The real problem is the placement. If you put a div in the wrong place, it can have serious negative side effects. Here are some examples: details and summary If you wrap the contents of a details element in a div, the browser or a screen reader might not recognize the summary element properly and display and announce a fallback text instead. Wrong <details> <div> <summary>Show info</summary> Hi, I'm the info! </div> </details> Show info Hi, I'm the info! Right <details> <summary>Show info</summary> Hi, I'm the info! </details> Show info Hi, I'm the info! figure If you wrap the contents of a figure element in a div, the figcaption might not be recognized as the caption for the figure. Visually this probably has no effect, but the figure might not be exposed to assistive technology when it doesn't have an accessible name. Wrong <figure> <img src="/images/gus.jpg" width="400" alt="Gus Polinski."> <div> <figcaption> The Polka King of the Midwest talking to a desperate mother. </figcaption> </div> </figure> The Polka King of the Midwest talking to a desperate mother. Right <figure> <img src="/images/gus.jpg" width="400" alt="Gus Polinski."> <figcaption> The Polka King of the Midwest talking to a desperate mother. </figcaption> </figure> The Polka King of the Midwest talking to a desperate mother. fieldsets A fieldset gets its label from the legend element. If the legend is wrapped in a div, the fieldset has no accessible name. This

## Accessible heading structure

DevFeed: [Accessible heading structure](<https://devfeed.tech/articles/accessible-heading-structure-9392.md>)

Original publisher: [Read original article](<https://a11yproject.com/posts/how-to-accessible-heading-structure/>)

Author: Rian Rietveld

Published: 2022-01-03T00:00:00Z

Content type: article

Language: en

Sources: [The A11Y Project](<https://devfeed.tech/sources/the-a11y-project.md>)

Topics: [HTML](<https://devfeed.tech/topics/html.md>), [Web Accessibility (a11y)](<https://devfeed.tech/topics/web-accessibility.md>), [Web Content Accessibility Guidelines](<https://devfeed.tech/topics/web-content-accessibility-guidelines.md>), [aria](<https://devfeed.tech/topics/aria.md>), [Search engine optimization (SEO)](<https://devfeed.tech/topics/seo.md>), [markup](<https://devfeed.tech/topics/markup.md>)

Tags: [accessible](<https://devfeed.tech/tags/accessible.md>), [best-practices](<https://devfeed.tech/tags/best-practices.md>), [content](<https://devfeed.tech/tags/content.md>), [design](<https://devfeed.tech/tags/design.md>), [h2](<https://devfeed.tech/tags/h2.md>), [header](<https://devfeed.tech/tags/header.md>), [html](<https://devfeed.tech/tags/html.md>), [html-elements](<https://devfeed.tech/tags/html-elements.md>), [index](<https://devfeed.tech/tags/index.md>), [it](<https://devfeed.tech/tags/it.md>), [multiple](<https://devfeed.tech/tags/multiple.md>), [screen](<https://devfeed.tech/tags/screen.md>), [search](<https://devfeed.tech/tags/search.md>), [semantic](<https://devfeed.tech/tags/semantic.md>), [seo](<https://devfeed.tech/tags/seo.md>), [structure](<https://devfeed.tech/tags/structure.md>), [structured](<https://devfeed.tech/tags/structured.md>), [top](<https://devfeed.tech/tags/top.md>), [unique](<https://devfeed.tech/tags/unique.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

Use one descriptive `h1` for each page, then organize meaningful subheadings in a logical hierarchy without skipping levels. Headings should describe the content that follows, support scanning and screen-reader navigation, and not be chosen just for visual size; style them with CSS instead. The text says WCAG 2 AA requires headings and labels to describe topic or purpose and semantic relationships to be programmatically available, while explicit structured sections are required at AAA. It cautions that multiple `h1`s based on the HTML document outline are unsupported by browsers and assistive technology, and that `hgroup` lacks assistive technology support; it offers ARIA attributes and a paragraph subtitle as a proposed workaround. Reusable components should adapt heading levels to their page context, and logos generally should not be repeated as each page's `h1`. For checking structure, the text names Axe Devtools, HeadingsMap, WAVE, and WordPress's visual heading information.

### Source excerpt

Headings are the backbone of the content of a page. A visitor should be able to scan the webpage using headings to get a good impression of its content. Heading levels have meaning, especially for screen reader users and search engines. That means one unique first level heading per page, with the other headings representing the page content similar to the index of a book: easily scannable and semantic. Write well-structured headings, because what is good for your reader, is also good for your SEO. Headings in HTML Headings are HTML elements. The main heading, h1, is level 1. The other levels are h2 up to h6. The HTML Living Standard states on headings: A heading can be used where heading content is expected. Heading content defines the header of a section (whether explicitly marked up using sectioning content elements, or implied by the heading content itself). The HTML Living Standard, The h1, h2, h3, h4, h5, and h6 elements In short: use a heading when the content or the page structure requires it. Best practices summarized Use one unique h1 per page that describes what that page is about. That h1 preferably starts just above the main content. Use headings to describe the content below. Do not use an HTML heading just to make the text appear bigger or stand out. Use heading levels like the index of a book: hierarchical. Do not choose a heading by its size, but by its level in the context of the content. Do not skip a heading level from the top down. Common mistakes: Using a h2 heading for quotes because of its nice big font size. Using a h4 heading for the first paragraph of the text because it's just the size of bold text you need. Exclusively using h2 headings on a web page because all headings are the same size in the designs. Using multiple h1 headings on a web page. Omitting headings because the design clearly indicates the start of a new section. Leaving headings empty (usually a CMS glitch). What does hierarchical mean? Hierarchical means arranged in order

## On Yak Shaving and \`\`, a new HTML element for Markdown

DevFeed: [On Yak Shaving and \`\`, a new HTML element for Markdown](<https://devfeed.tech/articles/on-yak-shaving-and-a-new-html-element-for-markdown-52135.md>)

Original publisher: [Read original article](<https://lea.verou.me/2021/11/on-yak-shaving-and-md-block-an-html-element-for-markdown/>)

Author: Lea Verou

Published: 2021-11-26T00:00:00Z

Content type: article

Language: en

Sources: [Lea Verou's blog](<https://devfeed.tech/sources/lea-verou-s-blog.md>)

Topics: [Web Development](<https://devfeed.tech/topics/web-development.md>), [Front end](<https://devfeed.tech/topics/frontend.md>), [Markdown](<https://devfeed.tech/topics/markdown.md>), [markup](<https://devfeed.tech/topics/markup.md>)

Tags: [blog](<https://devfeed.tech/tags/blog.md>), [component](<https://devfeed.tech/tags/component.md>), [conic-gradient](<https://devfeed.tech/tags/conic-gradient.md>), [css](<https://devfeed.tech/tags/css.md>), [css-variables](<https://devfeed.tech/tags/css-variables.md>), [demo](<https://devfeed.tech/tags/demo.md>), [docs](<https://devfeed.tech/tags/docs.md>), [esm](<https://devfeed.tech/tags/esm.md>), [gulp](<https://devfeed.tech/tags/gulp.md>), [js](<https://devfeed.tech/tags/js.md>), [library](<https://devfeed.tech/tags/library.md>), [markdown](<https://devfeed.tech/tags/markdown.md>), [markup](<https://devfeed.tech/tags/markup.md>), [module](<https://devfeed.tech/tags/module.md>), [nesting](<https://devfeed.tech/tags/nesting.md>), [npm](<https://devfeed.tech/tags/npm.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [original](<https://devfeed.tech/tags/original.md>), [personal](<https://devfeed.tech/tags/personal.md>), [postcss](<https://devfeed.tech/tags/postcss.md>), [readme](<https://devfeed.tech/tags/readme.md>), [releases](<https://devfeed.tech/tags/releases.md>), [rendering](<https://devfeed.tech/tags/rendering.md>), [sass](<https://devfeed.tech/tags/sass.md>), [stretchy](<https://devfeed.tech/tags/stretchy.md>), [web-components](<https://devfeed.tech/tags/web-components.md>), [yak-shaving](<https://devfeed.tech/tags/yak-shaving.md>)

### AI overview

To avoid duplicating Stretchy's documentation between its page and README, the author finished an existing web component for rendering inline and remote Markdown, published as md-block. The excerpt presents it as one step in a chain: updating Stretchy for ESM and Shadow DOM led to a Rollup and npm scripts build, CSS changes, and new documentation, before the author could return to the original demo project. The excerpt gives no implementation details or comparison with other Markdown tools.

### Source excerpt

This week has been Yak Shaving Galore. It went a bit like this: I've been working on a web component that I need for the project I'm working on. More on that later, but let's call it <x-foo> for now. Of course that needs to be developed as a separate reusable library and released as a separate open source project. No, this is not the titular component, this was only level 1 of my multi-level yak shaving... 🤦🏽♀ I wanted to showcase various usage examples of that component in its page, so I made another component for these demos: <x-foo-live>. This demo component would have markup with editable parts on one side and the live rendering on the other side. I wanted the editable parts to autosize as you type. Hey, I've written a library for that in the past, it's called Stretchy! But Stretchy was not written in ESM, nor did it support Shadow DOM. I must rewrite Stretchy in ESM and support Shadow DOM first! Surely it won't take more than a half hour, it's a tiny library. (It took more than a half hour) Ok, now I have a nice lil' module, but I also need to export IIFE as well, so that it's compatible with Stretchy v1. Let's switch to Rollup and npm scripts and ditch Gulp. Oh look, Stretchy's CSS is still written in Sass, even though it doesn't really need it now. Let's rewrite it to use CSS variables, use PostCSS for nesting, and use conic-gradient() instead of inline SVG data URIs. Ok, Stretchy v2 is ready, now I need to update its docs. Oooh, it doesn't have a README? I should add one. But I don't want to duplicate content between the page and the README. Hmmm, if only... I know! I'll make a web component for rendering both inline and remote Markdown! I have an unfinished one lying around somewhere, surely it won't take more than a couple hours to finish it? (It took almost a day, two with docs, demos etc) Done! Here it is! https://md-block.verou.me Great! Now I can update Stretchy's docs and release its v2 Great! Now I can use Stretchy in my <x-foo-live> component demoing

## RSS and XSL Content-Type Requirement

DevFeed: [RSS and XSL Content-Type Requirement](<https://devfeed.tech/articles/rss-and-xsl-content-type-requirement-20766.md>)

Original publisher: [Read original article](<https://erikrunyon.com/2021/05/rss-and-xsl-content-type-requirement/>)

Author: Erik Runyon

Published: 2021-05-19T00:00:00Z

Content type: tutorial

Language: en

Sources: [Erik Runyon](<https://devfeed.tech/sources/erik-runyon.md>)

Topics: [RSS](<https://devfeed.tech/topics/rss.md>), [Ruby on Rails](<https://devfeed.tech/topics/ruby-on-rails.md>), [markup](<https://devfeed.tech/topics/markup.md>)

Tags: [atom](<https://devfeed.tech/tags/atom.md>), [cms](<https://devfeed.tech/tags/cms.md>), [content-type](<https://devfeed.tech/tags/content-type.md>), [rails](<https://devfeed.tech/tags/rails.md>), [rss](<https://devfeed.tech/tags/rss.md>), [user-experience](<https://devfeed.tech/tags/user-experience.md>), [web-development](<https://devfeed.tech/tags/web-development.md>), [xml](<https://devfeed.tech/tags/xml.md>), [xslt](<https://devfeed.tech/tags/xslt.md>)

### AI overview

For XSLT styling to work on the Notre Dame CMS's Atom/RSS feeds, the author found they needed to serve them as `text/xml; charset=utf-8` rather than `application/atom+xml; charset=utf-8` or `application/rss+xml; charset=utf-8`. After confirming the change in test files, they set the `Application-Type` response header in the Rails application. Feed visitors then saw formatted content with an explanation of feeds and links to more resources instead of raw XML.

### Source excerpt

We've provided Atom/RSS feeds for News and Events in our custom CMS at Notre Dame for well over a decade. However, if a visitor ended up on the url they were greeted with an unhelpful screen of XML. I decided to remedy this by appying some XSLT and styles to improve the user experience. However, even after reviewing several tutorials, I couldn't get it to work. I was sure I had the templates and markup configured correctly. I even tested outside of the system using very basic test files. I finally started to question whether the Application-Type was correct. One tutorial mentioned making sure you served the correct type, but didn't go into detail as to what the type should be. Since the very beginning, we would serve our Atom/RSS feeds with application/atom+xml; charset=utf-8 and application/rss+xml; charset=utf-8 respectively. What I discovered is that the Application-Type instead should be text/xml; charset=utf-8. Once that was set in my test files everything started to work. Going back the Rails application and setting Application-Type in the "response.headers" and bingo, glorious formatting and styles. I don't expect many users to end up seeing the results of this change. But for those that do, they'll have an explanation about what a feed is as well as links to more resources. So much better than a screen of XML.

## Highlighting columns in HTML tables

DevFeed: [Highlighting columns in HTML tables](<https://devfeed.tech/articles/highlighting-columns-in-html-tables-52389.md>)

Original publisher: [Read original article](<https://www.matuzo.at/blog/highlighting-columns>)

Author: Manuel Matuzović

Published: 2021-03-20T00:00:00Z

Content type: tutorial

Language: en

Sources: [Manuel Matuzović](<https://devfeed.tech/sources/manuel-matuzovic-blog.md>)

Topics: [HTML](<https://devfeed.tech/topics/html.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [markup](<https://devfeed.tech/topics/markup.md>), [Web Accessibility (a11y)](<https://devfeed.tech/topics/web-accessibility.md>)

Tags: [accessibility](<https://devfeed.tech/tags/accessibility.md>), [algorithm](<https://devfeed.tech/tags/algorithm.md>), [highlighting](<https://devfeed.tech/tags/highlighting.md>), [html](<https://devfeed.tech/tags/html.md>), [markup](<https://devfeed.tech/tags/markup.md>), [tables](<https://devfeed.tech/tags/tables.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

This tutorial explains how the HTML colgroup and col elements can define table column widths and apply styling to all cells in a column. It also demonstrates highlighting a selected column through URL fragments and notes accessibility limitations.

### Source excerpt

The col element allows us to style columns in tables. In the past, I've used the colgroup and col elements to define max-widths for columns in tables when I didn't want to rely on the default algorithm for distribution of widths, usually when building templates for e-mail newsletters. A simple table with dummy content <table> <thead> <tr> <th>First column</th> <th>Second column</th> <th>Third column</th> </tr> </thead> <tbody> <tr> <td>First cell</td> <td>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Id, dolor delectus. Modi accusamus id magni.</td> <td>Last cell</td> </tr> </tbody> </table> First column Second column Third column First cell Lorem, ipsum dolor sit amet consectetur adipisicing elit. Id, dolor delectus. Modi accusamus id magni. Last cell A simple table with dummy content and a fixed width for the first and last column <table> <colgroup> <col style="width: 150px"> <col> <col style="width: 150px"> </colgroup> <thead> ... </table> First column Second column Third column First cell Lorem, ipsum dolor sit amet consectetur adipisicing elit. Id, dolor delectus. Modi accusamus id magni. Last cell Styling columns The other day I looked up colgroup on MDN because something didn't work the way I expected it to work. I found the solution to my problem, but the demo at the beginning of the page also caught my attention. The author adds a class to the col element, which does nothing with the col element itself, at least not visually, because the element doesn't get rendered on the page, but it applies the styles from the class to all the cells in the column. Why is this interesting? Well, there are no columns in HTML tables, only rows and cells and the col element allows us to style columns anyway. .highlight { background: #dedede; } <table> <caption>Frequency and average use of heading elements.</caption> <colgroup> <col> <col class="highlight"> <col> </colgroup> <thead> <tr> <th>Heading</th> <th>Occurrences</th> <th>Average per page</th> </tr> </thead>

## GitHub Pages drops support for RDiscount, Redcarpet, and RedCloth (Textile) markup engines

DevFeed: [GitHub Pages drops support for RDiscount, Redcarpet, and RedCloth (Textile) markup engines](<https://devfeed.tech/articles/github-pages-drops-support-for-rdiscount-redcarpet-and-redcloth-textile-markup-engines-69682.md>)

Original publisher: [Read original article](<https://github.blog/news-insights/the-library/github-pages-drops-support-for-rdiscount-redcarpet-and-redcloth-textile-markup-engines/>)

Author: Ben Balter

Published: 2016-05-02T23:52:54Z

Content type: news

Language: en

Sources: [GitHub Blog](<https://devfeed.tech/sources/github-engineering.md>)

Topics: [GitHub Pages](<https://devfeed.tech/topics/github-pages.md>), [markup](<https://devfeed.tech/topics/markup.md>), [GitHub](<https://devfeed.tech/topics/github.md>)

Tags: [github](<https://devfeed.tech/tags/github.md>), [github-pages](<https://devfeed.tech/tags/github-pages.md>), [markdown](<https://devfeed.tech/tags/markdown.md>), [markup](<https://devfeed.tech/tags/markup.md>), [news-insights](<https://devfeed.tech/tags/news-insights.md>), [the-library](<https://devfeed.tech/tags/the-library.md>)

### AI overview

GitHub Pages officially ends support for the RDiscount, Redcarpet, and RedCloth (Textile) markup engines. Most users can migrate to kramdown, and GitHub recommends testing site builds locally before pushing. The change applies to GitHub Enterprise versions 2.7 and later.

### Source excerpt

Back in February, we announced, that GitHub Pages would be dropping support for the RDiscount, Redcarpet, and RedCloth (Textile) markup engines, and today we're making it official. For the vast...

## Grouping related classes in your markup

DevFeed: [Grouping related classes in your markup](<https://devfeed.tech/articles/grouping-related-classes-in-your-markup-45579.md>)

Original publisher: [Read original article](<https://csswizardry.com/2014/05/grouping-related-classes-in-your-markup/>)

Author: Harry Roberts

Published: 2014-05-21T16:40:12Z

Content type: tutorial

Language: en

Sources: [CSS Wizardry](<https://devfeed.tech/sources/css-wizardry.md>)

Topics: [markup](<https://devfeed.tech/topics/markup.md>), [HTML](<https://devfeed.tech/topics/html.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>)

Tags: [article](<https://devfeed.tech/tags/article.md>), [classes](<https://devfeed.tech/tags/classes.md>), [css](<https://devfeed.tech/tags/css.md>), [html](<https://devfeed.tech/tags/html.md>), [markup](<https://devfeed.tech/tags/markup.md>)

### AI overview

This article presents a method for visually and physically grouping related HTML class attributes using square brackets. It explains the method's rules, possible benefits and drawbacks, and notes that readers should decide whether it suits their workflow.

### Source excerpt

An interesting way of visually and 'physically' grouping multiple class attributes

## Taming data tables

DevFeed: [Taming data tables](<https://devfeed.tech/articles/taming-data-tables-45570.md>)

Original publisher: [Read original article](<https://csswizardry.com/2013/11/taming-data-tables/>)

Author: Harry Roberts

Published: 2013-11-22T14:45:43Z

Content type: tutorial

Language: en

Sources: [CSS Wizardry](<https://devfeed.tech/sources/css-wizardry.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [layout](<https://devfeed.tech/topics/layout.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [data](<https://devfeed.tech/topics/data.md>), [markup](<https://devfeed.tech/topics/markup.md>)

Tags: [css](<https://devfeed.tech/tags/css.md>), [data](<https://devfeed.tech/tags/data.md>), [demo](<https://devfeed.tech/tags/demo.md>), [html](<https://devfeed.tech/tags/html.md>), [layout](<https://devfeed.tech/tags/layout.md>), [markup](<https://devfeed.tech/tags/markup.md>), [tables](<https://devfeed.tech/tags/tables.md>)

### AI overview

A practical guide to making complex data tables consistent and aligned across pages. It explains challenges involving cell widths, spanning cells, resizing, and layouts with multiple tables.

### Source excerpt

Laying out data tables in a consistent way, finally!

## When and How to Use XHP Categories

DevFeed: [When and How to Use XHP Categories](<https://devfeed.tech/articles/when-and-how-to-use-xhp-categories-22038.md>)

Original publisher: [Read original article](<https://codebeforethehorse.tumblr.com/post/65461659692>)

Author: Codebeforethehorse

Published: 2013-10-29T21:23:00Z

Content type: opinion

Language: en

Sources: [Stefan Parker](<https://devfeed.tech/sources/stefan-parker.md>)

Topics: [HTML](<https://devfeed.tech/topics/html.md>), [markup](<https://devfeed.tech/topics/markup.md>), [Library](<https://devfeed.tech/topics/library.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>), [class](<https://devfeed.tech/topics/class.md>)

Tags: [button](<https://devfeed.tech/tags/button.md>), [categories](<https://devfeed.tech/tags/categories.md>), [custom-elements](<https://devfeed.tech/tags/custom-elements.md>), [validation](<https://devfeed.tech/tags/validation.md>), [xhp](<https://devfeed.tech/tags/xhp.md>)

### AI overview

XHP renders custom components before validating the resulting core HTML elements, so a custom component inside a `<span>` need not declare `%phrase`; its rendered root still must be valid there, and returning a `<div>` would fail. The author recommends defining custom categories by the root node returned from `render()`. For example, button variants can share `%ui:button`, allowing a dialog footer to accept them with `children (%ui:button+)` without naming every variant. This supports composition and reusable child validation, though categories are loosely regulated and developers can add them merely to bypass validation. The author favors this composition pattern over inheritance for child validation while acknowledging that HTML-style categories or other systems may suit some cases.

### Source excerpt

I remember when we first added the children keyword to XHP. We had the problem that validating them was really cumbersome. Nearly every element was valid inside a <div> but not all (for instance <meta>). Listing out every valid child wasn't very elegant and certainly would cause problems for custom XHP components. Fortunately, the HTML spec categorized elements just for this purpose. Grouping elements into "block" or "inline" categories made validation far simpler. But if you've used XHP you might be wondering, "Why have I never needed to define my elements as inline or block before?" Well, the answer lies in how XHP renders an element tree. First it will render down all your custom elements into their eventual HTML primitives, then it will render the entire HTML primitive tree into a text string. The key here is that there are actually two passes, meaning XHP validates children in two sets: your elements first and then core HTML elements second. When you put a custom component inside of a <span> element, you don't need to give it a category of %phrase (the HTML5 equivalent of %inline). When XHP renders the tree it will wait on validating the children of the root <span> until its children are HTML elements. class :ui:hello-world extends :x:element { protected function render() { return <b>Hello World!</b>; } } $root = <span> <ui:hello-world /> </span>; So when you render $root, XHP will first render the <ui:hello-world> instance (which will produce the following node tree: <span><b>Hello World!</b></span>). Then it will render (and validate) the <span> and <b> elements. If we returned a <div> element from the :ui:hello-world::render method, then the validation would fail. So since we can use categories with free reign in our custom components, what pattern should we use? HTML groups elements by purpose, but it is my personal opinion that the best way to use categories is to group XHP elements by the type of their returned root node from render(). Let's look at an ex

## Introducing csswizardry-grids

DevFeed: [Introducing csswizardry-grids](<https://devfeed.tech/articles/introducing-csswizardry-grids-45554.md>)

Original publisher: [Read original article](<https://csswizardry.com/2013/02/introducing-csswizardry-grids/>)

Author: Harry Roberts

Published: 2013-02-07T00:22:02Z

Content type: tutorial

Language: en

Sources: [CSS Wizardry](<https://devfeed.tech/sources/css-wizardry.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [Sass](<https://devfeed.tech/topics/sass.md>), [layout](<https://devfeed.tech/topics/layout.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [implementation](<https://devfeed.tech/topics/implementation.md>), [Library](<https://devfeed.tech/topics/library.md>), [markup](<https://devfeed.tech/topics/markup.md>)

Tags: [components](<https://devfeed.tech/tags/components.md>), [css](<https://devfeed.tech/tags/css.md>), [fluid](<https://devfeed.tech/tags/fluid.md>), [grid](<https://devfeed.tech/tags/grid.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [implementing](<https://devfeed.tech/tags/implementing.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [responsive](<https://devfeed.tech/tags/responsive.md>), [sass](<https://devfeed.tech/tags/sass.md>)

### AI overview

An introduction to csswizardry-grids, a simple, fluid, nestable, flexible Sass-based responsive grid system. It explains percentage-based sizing, configurable gutters and breakpoints, and options for using CSS or Sass classes.

### Source excerpt

A responsive, fluid, nestable, Sass-based grid system.

## Relative links in markup files

DevFeed: [Relative links in markup files](<https://devfeed.tech/articles/relative-links-in-markup-files-70269.md>)

Original publisher: [Read original article](<https://github.blog/news-insights/product-news/relative-links-in-markup-files/>)

Author: Yossef Mendelssohn

Published: 2013-01-31T08:00:51Z

Content type: release

Language: en

Sources: [GitHub Blog](<https://devfeed.tech/sources/github-engineering.md>)

Topics: [markup](<https://devfeed.tech/topics/markup.md>), [deeplinks](<https://devfeed.tech/topics/deeplinks.md>)

Tags: [documentation](<https://devfeed.tech/tags/documentation.md>), [github](<https://devfeed.tech/tags/github.md>), [links](<https://devfeed.tech/tags/links.md>), [markdown](<https://devfeed.tech/tags/markdown.md>), [news-insights](<https://devfeed.tech/tags/news-insights.md>), [product](<https://devfeed.tech/tags/product.md>)

### AI overview

GitHub now supports relative links in markup files, allowing documentation files to link to one another on GitHub or in other markup renderers. Existing workaround links using repository paths may need updating to the new syntax.

### Source excerpt

We show rendered markup in several places on GitHub, most notably including a project's main README on the Repository page itself. Starting today, GitHub supports relative links in markup files....

## MindBEMding - getting your head 'round BEM syntax

DevFeed: [MindBEMding - getting your head 'round BEM syntax](<https://devfeed.tech/articles/mindbemding-getting-your-head-round-bem-syntax-45551.md>)

Original publisher: [Read original article](<https://csswizardry.com/2013/01/mindbemding-getting-your-head-round-bem-syntax/>)

Author: Harry Roberts

Published: 2013-01-25T18:56:00Z

Content type: tutorial

Language: en

Sources: [CSS Wizardry](<https://devfeed.tech/sources/css-wizardry.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [Front end](<https://devfeed.tech/topics/frontend.md>), [class](<https://devfeed.tech/topics/class.md>), [abstraction](<https://devfeed.tech/topics/abstraction.md>), [Code](<https://devfeed.tech/topics/code.md>), [markup](<https://devfeed.tech/topics/markup.md>), [syntax](<https://devfeed.tech/topics/syntax.md>)

Tags: [abstraction](<https://devfeed.tech/tags/abstraction.md>), [classes](<https://devfeed.tech/tags/classes.md>), [code](<https://devfeed.tech/tags/code.md>), [code-quality](<https://devfeed.tech/tags/code-quality.md>), [component](<https://devfeed.tech/tags/component.md>), [css](<https://devfeed.tech/tags/css.md>), [front-end](<https://devfeed.tech/tags/front-end.md>), [html](<https://devfeed.tech/tags/html.md>), [markup](<https://devfeed.tech/tags/markup.md>), [pattern](<https://devfeed.tech/tags/pattern.md>), [syntax](<https://devfeed.tech/tags/syntax.md>), [techniques](<https://devfeed.tech/tags/techniques.md>)

### AI overview

A primer on BEM, a CSS class-naming methodology that uses blocks, elements, and modifiers to make markup relationships and component states clearer to developers.

### Source excerpt

A primer on the oft-confusing BEM notation for CSS

## A More Transparent Clipboard Button

DevFeed: [A More Transparent Clipboard Button](<https://devfeed.tech/articles/a-more-transparent-clipboard-button-70290.md>)

Original publisher: [Read original article](<https://github.blog/news-insights/the-library/a-more-transparent-clipboard-button/>)

Author: Jon Rohan

Published: 2013-01-03T05:00:57Z

Content type: article

Language: en

Sources: [GitHub Blog](<https://devfeed.tech/sources/github-engineering.md>)

Topics: [markup](<https://devfeed.tech/topics/markup.md>)

Tags: [button](<https://devfeed.tech/tags/button.md>), [buttons](<https://devfeed.tech/tags/buttons.md>), [copy-and-paste](<https://devfeed.tech/tags/copy-and-paste.md>), [has](<https://devfeed.tech/tags/has.md>), [news-insights](<https://devfeed.tech/tags/news-insights.md>), [the-library](<https://devfeed.tech/tags/the-library.md>)

### AI overview

GitHub describes upgrading its clipboard buttons to ZeroClipboard, which uses a Flash object to copy text and hashes while allowing the buttons to be integrated with site elements and styled independently.

### Source excerpt

Copying long lines of text and shas to your clipboard has been just a click away for a few years now. Today we're putting a new face on that click-to-copy...

## Introducing Prism: An awesome new syntax highlighter

DevFeed: [Introducing Prism: An awesome new syntax highlighter](<https://devfeed.tech/articles/introducing-prism-an-awesome-new-syntax-highlighter-52055.md>)

Original publisher: [Read original article](<https://lea.verou.me/2012/07/introducing-prism-an-awesome-new-syntax-highlighter/>)

Author: Lea Verou

Published: 2012-07-31T00:00:00Z

Content type: release

Language: en

Sources: [Lea Verou's blog](<https://devfeed.tech/sources/lea-verou-s-blog.md>)

Topics: [Syntax Highlighting](<https://devfeed.tech/topics/syntax-highlighting.md>), [extend](<https://devfeed.tech/topics/extend.md>), [HTML](<https://devfeed.tech/topics/html.md>), [hooks](<https://devfeed.tech/topics/hooks.md>), [markup](<https://devfeed.tech/topics/markup.md>)

Tags: [addition](<https://devfeed.tech/tags/addition.md>), [also](<https://devfeed.tech/tags/also.md>), [awesome](<https://devfeed.tech/tags/awesome.md>), [best](<https://devfeed.tech/tags/best.md>), [better](<https://devfeed.tech/tags/better.md>), [blocks](<https://devfeed.tech/tags/blocks.md>), [blog](<https://devfeed.tech/tags/blog.md>), [body](<https://devfeed.tech/tags/body.md>), [but](<https://devfeed.tech/tags/but.md>), [can](<https://devfeed.tech/tags/can.md>), [class](<https://devfeed.tech/tags/class.md>), [code](<https://devfeed.tech/tags/code.md>), [core](<https://devfeed.tech/tags/core.md>), [css](<https://devfeed.tech/tags/css.md>), [dabblet](<https://devfeed.tech/tags/dabblet.md>), [days](<https://devfeed.tech/tags/days.md>), [define](<https://devfeed.tech/tags/define.md>), [doesn-t](<https://devfeed.tech/tags/doesn-t.md>), [draft](<https://devfeed.tech/tags/draft.md>), [highlighter](<https://devfeed.tech/tags/highlighter.md>), [original](<https://devfeed.tech/tags/original.md>), [releases](<https://devfeed.tech/tags/releases.md>), [syntax](<https://devfeed.tech/tags/syntax.md>)

### AI overview

Prism is presented as a small, extensible syntax highlighter released from Dabblet: its core is 1.5 KB minified and gzipped, rising to about 2 KB with the available CSS, Markup, and JS definitions. Authors mark code with semantic `<code>` elements and `language-xxxx` classes; language declarations inherit from ancestors, so a shared language can be set once. Hooks support plugins and extending languages, and Web Workers can improve performance in some cases. The excerpt says Prism strips pre-existing HTML inside code blocks and does not work in IE8, though it does not break there.

### Source excerpt

For the past three weeks, on and off, I've been working on releasing Dabblet's syntax highlighter as standalone, since many people had requested it. Zachary Forrest suggested the name "Prism" and I liked it so much I decided to go with it, even though there is an abandoned Mozilla project with the same name. I ended up refactoring and extending it so much that I will need to backport it to Dabblet one of these days! This doesn't mean I bloated it, the core is still a tiny 1.5KB minified & gzipped. It just means it's more awesome. :) Seriously? The world needs another syntax highlighter? In certain ways, Prism is better than any other syntax highlighter I've seen: It's tiny. The core is only 1.5KB minified & gzipped, which can go up to 2KB with the currently available language definitions (CSS, Markup and JS). But many other highlighters are also small, so read on. It's incredibly extensible. Not only it's easy to add new languages (that's a given with every syntax highlighter these days), but also to extend existing ones. Most importantly, it supports plugins, through hooks strategically placed in its source. There are a few plugins already available, and it's really easy to write your own. I haven't seen any other highlighter that supports plugins. It encourages good author practices. Other highlighters encourage or even force you to use elements that are semantically wrong, like <pre> (on its own) or <script>. Prism forces you to use the only semantically correct element for marking up code: <code>. On its own for inline code, or inside a <pre> for blocks of code. In addition, the code language is declared through the way recommended in the HTML5 draft: through a language-xxxx class. One of its best features: The language definition is inherited. This means that if multiple code snippets have the same language, you can just define it once, in one of their common ancestors. Obviously, if you define a language on the <body> element, you've essentially declared a def

## Text masking -- The standards way

DevFeed: [Text masking -- The standards way](<https://devfeed.tech/articles/text-masking-the-standards-way-52051.md>)

Original publisher: [Read original article](<https://lea.verou.me/2012/05/text-masking-the-standards-way/>)

Author: Lea Verou

Published: 2012-05-04T00:00:00Z

Content type: opinion

Language: en

Sources: [Lea Verou's blog](<https://devfeed.tech/sources/lea-verou-s-blog.md>)

Topics: [Web platform](<https://devfeed.tech/topics/web-platform.md>), [web graphics](<https://devfeed.tech/topics/web-graphics.md>), [markup](<https://devfeed.tech/topics/markup.md>), [Search engine optimization (SEO)](<https://devfeed.tech/topics/seo.md>)

Tags: [blog](<https://devfeed.tech/tags/blog.md>), [css](<https://devfeed.tech/tags/css.md>), [firefox](<https://devfeed.tech/tags/firefox.md>), [masking](<https://devfeed.tech/tags/masking.md>), [replies](<https://devfeed.tech/tags/replies.md>), [standards](<https://devfeed.tech/tags/standards.md>), [svg](<https://devfeed.tech/tags/svg.md>), [tips](<https://devfeed.tech/tags/tips.md>), [web-standards](<https://devfeed.tech/tags/web-standards.md>)

### AI overview

For texturized web type, the author recommends standards compliant inline SVG over `-webkit-mask-image`, which they say is absent from specifications and unlikely to work outside WebKit. SVG's syntax may be more unwieldy, but the revised example is said to work in Chrome, Safari, Firefox, IE9, and Opera. The author says SVG can sit within headings, search engines will still see text inside `<text>`, and IE8 can degrade gracefully with an HTML5 fix and conditional hiding of `<image>`. The excerpt does not include the example code.

### Source excerpt

As much as I like .net magazine, I was recently outraged by their "Texturizing Web Type" article. It features a way to apply a texture to text with -webkit-mask-image, presenting it as an experimental CSS property and misleading readers. There are even -moz-, -o- and -ms- prefixes for something that is not present in any specification, and is therefore unlikely to ever be supported by any non-WebKit browser, which further contributes to the misdirection. A while back, I wrote about how detrimental to our work and industry such proprietary features can be. A common response to such complaints is that they are merely philosophical and who cares if the feature works right now and degrades gracefully. This argument could be valid for some cases, when the style is just a minor, gracefully degrading enhancement and no standards compliant alternative is present (for example, I've used ::-webkit-scrollbar styles myself). However, this is not the case here. We have had a standards compliant alternative for this for the past 11 years and it's called SVG. It can also do much more than masking, if you give it a chance. Here's an example of texturized text with SVG: Edit: Thanks to @devongovett's improvements, the code is now simpler & shorter. Yes, the syntax might be more unwieldy but it works in a much wider range of browsers: Chrome, Safari, Firefox, IE9, Opera. Also, it's trivial to make a script that generates the SVG markup from headings and applies the correct measurements for each one. When WebKit fixes this bug, we can even move the pattern to a separate SVG file and reference it from there. In case you're wondering about semantics, the <svg> element is considered "flow content" and is therefore allowed in heading elements. Also, even if search engines don't understand inline SVG, they will just ignore the tags and still see the content inside the <text> element. Based on that, you could even make it degrade gracefully in IE8, as long as you include the HTML5 fix for t

[Next page](<https://devfeed.tech/topics/markup.md?cursor=WyIyMDEyLTA1LTA0VDAwOjAwOjAwKzAwOjAwIiwgImEzYzY1ZmY1LWMxYTUtNDk1MC1hMDk0LTVlMTQ4MjljZjQxMiJd>)