Does input type=”file” selection support url ( upload from web ) ? -html

I wonder can I use the option of input type=”file” in html to upload from url ( web/ftp etc. ) ? Is there option to it? To more explain, I want to select zip file with url and uoload it to website.Which operating systems support it? How can do it on linux,mac and windows 10? I talking about the option on the link:

<input type="file">: How to Use This HTML Value

How to get different html tags from the content using regex?

I am trying to get different html tags from a single post and display them as nested accordion. I have quite accomplished. the only problem I have is that. When I try to show all the p tags content inside span but it shows only the first paragraph for each nested menu content.

Any solution will be most appreciated. Thanks

History 2020 Jan 10 This is first paragraph.

Feb 2 this is second paragraph

Mar 23 this is third paragraph

2019 Jan 20This is fourth paragraph.

Feb 30this is fifth paragraph

Mar 2this is sixth paragraph

‘; $ classesH = 100; for($ w = 1; $ w (.*?)/s’, $ sampleH, $ match); if($ match) { ?> (.*?)/s’, $ sampleH, $ match1); if($ match1) { ?>

(.*?)/s’, $ sampleH, $ match2); if($ match2) { ?>

var acc = document.getElementsByClassName(“accordion”); var i; var abc = document.getElementsByClassName(“accordion1”); var a; for (i = 0; i

How to prevent parsing of a should-be-parsed HTML element from server?

I have a website built with MediaWiki CMS which I host on a CentOS based Apache “shared server environment” (SiteGround).

This website contains a ContactPage contact form in which the subject field is hardcoded to the form wrapper via PHP;
This is odd, because all other fields aren’t hardcoded like this and are actually optional and injected into the wrapper from the form’s default template which I pasted into the main customization file of the CMS (LocalSettings.php);
By the way, All of these optional fields are HTMLForm template-engine fields.

If someone wants to remove the subject field from backend whatever reason, it would be a logistical pain, because, for example, after every automatic upgrade, it will have to be removed again, probably manually, from ContactPage extension relevant PHP source code (unlike all other fields which are optional from the very stable file LocalSettings.php).

My problem

I want to remove the aforementioned subject field and the only very stable ways I have with the current architecture of MediaWiki, are CSS and JS;
But this is problematic because a user can easily turn off both (most users won’t do that, but still).

My question

How to prevent parsing of a should-be-parsed HTML element from server?

As this is an Apache “shared server environment” and I don’t have full access to the server, rather only to .htaccess files, is there any “nasty trick” I could do in .htaccess to prevent the parsing of the should-be-parsed subject field by some criteria (say, its HTML attribute or CSS class or whatever other applicable criteria)?

HTML Editor..


I've been out of the game for quite some time. I used to use X-Site Pro2 for all my web developing needs, and it was just fine for me. I can no longer find it anywhere due to the fact that's its no longer supported.

What do you guys/gals use for HTML design?

I'm not a total noob with HTML I took a few classes in college but my major was networking so I did not focus on it very much and forgot most of it.



Why are cookies sent with HTML page’s cross domain requests but not with JS’s XHR?

When we write a HTML page with form tag and an action attribute and a submit button. As soon as we click on submit a request is sent (with cookies) to the URL which was the value of action attribute.

But if we send cross domain request to the same domain with JS’s XHR cookies won’t be sent.

In both cases, requests are sent to another domain but still cookies are sent with the first case only why so?

is putting authentication tokens inside HTML body safe?

I have a project, a webapp/website that uses cookies to authenticate users with long randomly generated strings (also with samesite:lax, httponly, secure), however I also have an API which itself needs authentication tokens.

My current design is when the website server authenticates the user it generates the API authToken and injects along with the total initial state of the page and then the API requests are served with this authToken, is this flow inherently flawed? I thought of using an extra HTTP request after page loading to get the API authToken and thus avoid putting it inside the HTML body but that means more slowness since the page contents is usually dependent on the API requests which need an extra HTTP request after the page load to get the API authToken. I assume the connection is already over HTTPS of course.

HTML element: quotation symbols not selectable?

To include a quotation in HTML, one could simply use quotation symbols:

<p>“Yes,” he said.</p> 

Alternatively, one could use the inline quotation element:

<p><q>Yes,</q> he said.</p> 

Using the inline quotation element has some advantages, e.g., it provides additional semantic information to any person or machine reading the HTML code.

However, I noticed something that seems to me like a severe disadvantage of the inline quotation element. In all the browsers I’ve tried, although quotation symbols are rendered, it is not possible to select the quotation symbols. Screenshot of quotation symbols not being selected

In Chrome and Edge, predictably, this means that the quotation symbols are omitted if the user copies and pastes. In Firefox, interestingly, quotation symbols are inserted in the pasted text, even though they do not appear to be selected.

This behavior seems jarring for the user. Is it really the best practice for quotations in HTML? When, if ever, should developers use the inline quotation element?

How many H1 tag, Can we use in One html Page? [duplicate]

This question already has an answer here:

  • Multiple H1 tags in blog, category, tag page? 3 answers

Some years ago, everybody who work in Seo field, Recommended that Use only One H1 tag in page, but I heard We can use as many as necessary H1 tag and it doesn’t make any problem for Seo (Google search engine Optimization). Now my Question is about it. How Many H1 Tag can I use in single webpage without Bad Effect on Seo?