Flare <meta> element outside the <head> section

This forum is for all Flare issues related to importing files or projects.
Post Reply
StanDoherty
Jr. Propeller Head
Posts: 2
Joined: Thu Aug 15, 2019 5:43 am

Flare <meta> element outside the <head> section

Post by StanDoherty »

Hi --
The <meta> element is available both in the <head> section of a Flare file and in running body text.

Its role in the <head> section is documented and clear.

What is the function and/or behavior of <meta> in running text? I cannot find much Flare documentation on it.

Specifically, what might the following examples do -- if anything:

Example-1:

Code: Select all

text text <meta>random metadata</meta> text text
Example-2:

Code: Select all

<MadCap:dropDown>
     <meta>no-topic-break</meta>
     dropDown1 content
</MadCap:dropDown>
Example-3:

Code: Select all

<MadCap:xref href="foo.htm#anchor">
     <meta>target-topic="path/path/foo.txt"</meta>
</MadCap:xref>

Just wondering whether <meta> in running text contains actual descriptive metadata (a no-op) -- which is what I want.

Thanx in advanced for any advice that you might have.

Stan
NorthEast
Master Propellus Maximus
Posts: 6359
Joined: Mon Mar 05, 2007 8:33 am

Re: Flare <meta> element outside the <head> section

Post by NorthEast »

Did you read somewhere that meta tags can be used outside of the head?
Just I always thought the meta tag can only be used in the head section, which is also what it says in several HTML reference sites.

Also, I'm fairly sure you don't put content inside the meta tag like your example:

Code: Select all

<meta>content</meta>
I'm pretty sure it has to be included as attributes, like this:

Code: Select all

<meta name="name" content="content" />
See: https://www.w3schools.com/tags/tag_meta.asp

Based on your example, could you not use data attributes?
See: https://www.w3schools.com/tags/att_global_data.asp
e.g.

Code: Select all

<MadCap:xref href="foo.htm#anchor" data-target-topic="path/path/foo.txt">
StanDoherty
Jr. Propeller Head
Posts: 2
Joined: Thu Aug 15, 2019 5:43 am

Re: Flare <meta> element outside the <head> section

Post by StanDoherty »

Hi --

MadCap documents how to use <meta> elements in the <head>, but does not mention that they should not be used in the body.

All the examples that I used are valid in the Flare Editor . . . paste them into a document:
- text text <meta>random metadata</meta> text text
- <MadCap:dropDown>
<meta>no-topic-break</meta>
dropDown1 content
</MadCap:dropDown>
- <MadCap:xref href="foo.htm#anchor">
<meta>target-topic="path/path/foo.txt"</meta>
</MadCap:xref>

I figure that if the Editor validates the markup, it must have some sort of function.
Post Reply