Linked Questions

5 votes
2 answers
4k views

Sometimes I'd like to put a decent amount of data on the page to avoid extra AJAX calls for dynamic content. I wonder while doing so if there is a performance penalty I should be cautious of.
idbentley's user avatar
  • 4,218
-1 votes
2 answers
10k views

Please tell me if there is any any specific number of characters that can be entered in alt attribute of img tag of html
Shubham's user avatar
  • 43
5 votes
0 answers
69 views

Possible Duplicate: Is there a limit to the length of HTML attributes? I want to use data- attributes to pass JSON between scripts on a Web page. For example a div tag could look like this: <...
Christophe's user avatar
  • 28.3k
0 votes
0 answers
26 views

It's a simple question, but I can't find the answer searching. if I have this: <option value="">Test</option> What's the limit of characters of text that I can put inside the ...
Máttheus Spoo's user avatar
143 votes
7 answers
70k views

I'm thinking about embedding arbitrary JSON in the DOM like this: <script type="application/json" id="stuff"> { "unicorns": "awesome", "abc": [1, 2, 3] } </script> ...
Ben Lee's user avatar
  • 53.5k
108 votes
4 answers
49k views

The HTML spec says ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods ("."...
system PAUSE's user avatar
  • 38.9k
100 votes
9 answers
82k views

For example, which is the difference between these: <iframe srcdoc="<p>Some HTML</p>"></iframe> <iframe src="data:text/html,<p>Some HTML</p>"></iframe> ...
Oriol's user avatar
  • 291k
49 votes
7 answers
72k views

What is the length limitation of HTML title attribute? <span title="some big long piece of text and is there any limit to its size?" /> Edit: My question is specific to title attribute not ...
ArK's user avatar
  • 21.1k
48 votes
2 answers
174k views

Is it a good practice to use many classes on one single HTML element? For example: <div class="nav nav-centered nav-reversed navbar navigation-block"></div> I don't mean that two or three ...
Andrius's user avatar
  • 653
28 votes
3 answers
38k views

CSS allows an HTML element to have multiple classes: <div class="cat persian happy big"> Nibbles </div> But is there a limit on how many classes are allowed per item?
Tony the Pony's user avatar
9 votes
3 answers
16k views

How would I know what the maximum length of an element's attribute value is? e.g. <div id="value1..."></div> What's the maximum allowable length for ID attribute of this div and any ...
mars-o's user avatar
  • 1,711
11 votes
3 answers
11k views

I have dynamic content which is accessible via a index on a side pane, when the user selects a side pane element, I use the id as a mechanism to figure out what data they're referring to, so I can ...
Metalskin's user avatar
  • 4,298
7 votes
2 answers
8k views

Is there a limit on html's data-attribute? Is it possible to have many data-attributes on a tag? ex. data-a="" data-b="" data-c="" ... data-z="" And also is there a limit how long the value on each ...
meetmahpuppy's user avatar
3 votes
4 answers
4k views

Does anyone know what is the maximum length I can enter for the html title attribute and whether special characters are allowed?
user1503699's user avatar
3 votes
1 answer
4k views

I am stuck on a problem. I am using code that looks something like the following to populate a select with data but I am not getting the expected result. let data = await response.json(); let result = ...
Aib Syed's user avatar
  • 3,194

15 30 50 per page