markup

Correct markup for headers

帅比萌擦擦* 提交于 2019-12-17 16:53:15
问题 How do I semanticly markup the headers in the article as presented in the picture below? I often run into this problem; where I have a header that is visually first, but is a subheading, intro header or less important then the main header. I could put it after the main header and move it above with CSS, but that isn't always a ideal solution. Another question: is there any special way to markup lead paragraphs? Not allowed? <article> <h2>New prodcut</h2> <h1>Launching our new x-series</h1> <p

Correct markup for headers

强颜欢笑 提交于 2019-12-17 16:53:15
问题 How do I semanticly markup the headers in the article as presented in the picture below? I often run into this problem; where I have a header that is visually first, but is a subheading, intro header or less important then the main header. I could put it after the main header and move it above with CSS, but that isn't always a ideal solution. Another question: is there any special way to markup lead paragraphs? Not allowed? <article> <h2>New prodcut</h2> <h1>Launching our new x-series</h1> <p

How would you design the HTML markup for this

此生再无相见时 提交于 2019-12-14 01:18:39
问题 I want to make something like a horizontal line with a text in the middle of it. It should look like this (text image follows): ------------------------------------------ TEXT -------------------------------------------- the line should be dotted and the text in the middle should separate the line in half. I came up with the idea of using a table with 3 elements with percentage values in width attribute but maybe there is a better solution. I hope it's clear. Thanks for ideas 回答1: <div id=

Defining a bill or invoice using Google email markup

╄→尐↘猪︶ㄣ 提交于 2019-12-13 21:18:47
问题 I know this can be done because i'm looking at an invoice from a telco in my gmail inbox mobile app but I don't know how to set the gmail markup / schema to make it happen. The example I have shows: August bill for xxxx Total: $xxx, due MMM DD $ Total amount due $xxxx Due date DD MMM Issuer Telco X Can anyone help? I can't find any guidance on the email markup pages on Google. 回答1: It uses regular http://schema.org markup within the HTML of the email. See gmail markup reference. Example

Kivy hyperlink in kv file

有些话、适合烂在心里 提交于 2019-12-13 05:14:35
问题 I am making a mockup of an app just for testing purposes. I am new to kivy and need some help. I want my label to have the text 'Need Help' and when pressed on want it to act as a hyper link. I have a simple class class LoginScreen(BoxLayout): def login(self, *args): print 'You logged in' The part of my kv file I am having trouble with is the label in my LoginScreen. Label: id: need_help_link font_size: 20 markup: True text: 'Need help [ref=some]someweblink[/ref]' I want the label to read

The markup in the document following the root element must be well-formed. What is the cause of this?

烂漫一生 提交于 2019-12-13 04:41:24
问题 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal"> <EditText android:id="@+id/edit_message" android:layout_weight="1" android:layout_width="0dp" android:layout_height="wrap_content" android:hint="@string/edit_message" /> <Button android:layout_width="wrap_content" android:layout

When the 2D draw read the saved markup2D, the draw lost color

你说的曾经没有我的故事 提交于 2019-12-13 03:22:14
问题 2018年12月7日13:48:15 I try input in Console: let a = NOP_VIEWER.getState(). and then: NOP_VIEWER.restoreState(a). the result is the same, so i think the question maybe on the getState function. Use 'Autodesk.Viewing.MarkupsCore' extension for 2d draw, read the saved markups data and then draw lost color.I have try more than three draw, but the results were the same. And the draw won't be restored the original shape even exit markup. function loadMarkup() { model_viewer.loadExtension('Autodesk

What's the actual name of <% %> tags?

六月ゝ 毕业季﹏ 提交于 2019-12-12 15:10:36
问题 Possibly a redundant and useless question, but my colleagues and I refer to <% %> as server tags, but is there an actual name for them? one i've seen used is calling them Alcohol tags. Edited based on answers We're referring to them in ASP.NET, but I would've thought they'd use the same name across all languages if they did the same job? 回答1: "Server-Side Scripting Delimiters", as laid out in this question/answer here: ASP.NET "special" tags 回答2: In JSP they are called scriptlets, don't know

Should I use <p> or <span> element for a single line of text?

泄露秘密 提交于 2019-12-12 13:29:49
问题 Sometime ago I read somewhere that one single line of text is considered a paragraph, therefore valid to be placed into a <p> element that "represents a paragraph/block of text" . Browsing around this is confirmed by some examples that I've just found: http://www.w3.org/wiki/HTML/Elements/p#Example_A http://reference.sitepoint.com/html/p In my particular case I am making a <form> that includes some validation messages for each field and that are only meaningful to the user once they interact

markup text parser like stackoverflow's formatter in Objective-C

我只是一个虾纸丫 提交于 2019-12-12 12:32:15
问题 I'm in the process of creating a markup editor in Objective C. I require the following functionality: Recognise the demarcation of a block eg **block** Delete the start and end "tags" eg "The next text is **bold** " becomes "The next text is bold" Determine the start and end positions of the marked-up text in the new context: "The next text is bold" Edit: As I may expand the syntax in the future (it will be very limited at the moment), it is important that parsing be top-down such that the