html-heading

Is it possible to create html tags h7, h8, h9 and so on [duplicate]

拥有回忆 提交于 2019-11-30 03:03:01
问题 This question already has answers here : How to make new heading tag numbers such as h7, h8, etc.? (6 answers) How to create custom tags for html [closed] (7 answers) Closed 5 years ago . Here's a novice question. Is it possible to create more heading styles like h7, h8, and so on. I am just wondering if it possible to have more than 6 different types of headings on a website. 回答1: You can create any element you want on a page, but I think your question is whether it will be interpreted

Proper use of HTML heading tags

不打扰是莪最后的温柔 提交于 2019-11-29 16:16:55
I'm having trouble understanding the proper usage of HTML headings. I'm using books and online resources to self-learn but there are slight discrepancies on how to use them. [1] "Note that the h1 tag is only used once, as the main heading of the page. h2 to h6 , however, can be used as often as desired, but they should always be used in order, as they were intended. For example, an h4 should be a sub-heading of an h3 , which should be a sub-heading of an h2 ." OR [2] "the logical heading level reflects its importance in relation to the main content." So the question is: do I use them in order

Automatic Numbering of Headings H1-H6 using jQuery

試著忘記壹切 提交于 2019-11-29 10:12:21
I read related posts, but didn't find a solution for IE, so I ask for a jQuery-solution for this problem: I've some nested hierarchical Headings like this <h1> heading 1</h1> <h2> subheading 1</h2> <h1> heading 2</h1> <h2> subheading 1</h2> <h2> subheading 2</h2> I need some automated headings output like this: 1. heading 1 1.2 subheading 1 2. heading 2 2.1. subheading 1 2.2. subheading 2 Is there a way how this can be achieved using jQuery or alike, working in IE6+? another possibility var indices = []; function addIndex() { // jQuery will give all the HNs in document order jQuery('h1,h2,h3

Automatic Numbering of Headings H1-H6 using jQuery

旧时模样 提交于 2019-11-28 03:26:18
问题 I read related posts, but didn't find a solution for IE, so I ask for a jQuery-solution for this problem: I've some nested hierarchical Headings like this <h1> heading 1</h1> <h2> subheading 1</h2> <h1> heading 2</h1> <h2> subheading 1</h2> <h2> subheading 2</h2> I need some automated headings output like this: 1. heading 1 1.2 subheading 1 2. heading 2 2.1. subheading 1 2.2. subheading 2 Is there a way how this can be achieved using jQuery or alike, working in IE6+? 回答1: another possibility

How can I remove space (margin) above HTML header?

核能气质少年 提交于 2019-11-26 11:13:11
问题 I am creating a website. I have written the html part and now I am writing the stylesheet. But there is always some space about my header. I can\'t remove it. My HTML and CSS code is given below. <header> <h1>OQ Online Judge</h1> <form action=\"<?php echo base_url();?>/index.php/base/si\" method=\"post\"> <label for=\"email1\">E-mail : </label><input type=\"text\" name=\"email\" id=\"email1\"> <label for=\"password1\">Password : </label><input type=\"password\" name=\"password\" id=\