From 5938ca8c3d6d9911b735e97ebd0d079405409c66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deniz=20Ak=C5=9Fim=C5=9Fek?= Date: Sat, 27 May 2023 17:42:06 +0300 Subject: [PATCH] make microformats note fit into preceding chapter --- book/CH10_JSONDataAPIs.adoc | 37 +++++++++++++------------------------ 1 file changed, 13 insertions(+), 24 deletions(-) diff --git a/book/CH10_JSONDataAPIs.adoc b/book/CH10_JSONDataAPIs.adoc index fdf7875..a87f48b 100644 --- a/book/CH10_JSONDataAPIs.adoc +++ b/book/CH10_JSONDataAPIs.adoc @@ -504,26 +504,12 @@ another. With properly built "`thin`" controllers and "`fat`" models, keeping two separate APIs both in sync and yet still evolving separately is not as difficult or as crazy as it might sound. - -// TODO dz4k: does this content fit here? -// or, cut if you don't recommend using [.design-note] .HTML Notes: Microformats **** -In some cases you may want to include machine-readable structured data in HTML. -https://microformats.org/[Microformats] is one standard for doing so. -It uses classes to mark certain elements as containing information to be extracted. -The microformats2 standard uses five kinds of classes: - -* `h-` classes denote that an element represents a machine-readable entity, e.g., `h-entry`, `h-resume` -* The other prefixes denote that an element represents properties of an enclosing entity: -** `p-` classes are plain text properties, from an element's inner text or `alt` attribute, e.g., `p-name`, `p-category` -** `u-` classes are URL properties, from an element's `href` or `src`, e.g., `u-url`, `u-email`, `u-photo` -** `dt-` classes are date/time properties, from `