I am writing a program that will download the site (create a local copy of it, saving all the files and repeating the structure of the site). I don't know HTML well.

Question: Where can html contain links to third-party resources, except for the following tags?

  1. <a href = 'link ...>
  2. <img src = 'link' ...>
  3. <script src = 'link' ...>
  • 2
    Welcome to StackOverflow. "I am writing a program, ... pumping out a site. ... I don't know HTML well." - learn HTML. - Igor
  • @Igor, be-nice - Grundy 2:21 pm
  • 2
    @Grundy - pay attention to the "Welcome" - Igor
  • one
    <link href = "..."> - Vyacheslav Danshin
  • 2

1 answer 1

To determine the desired list of elements, you need to look at the table of valid attributes for HTML4 and for HTML5 and choose with the desired type.

So in HTML4:

  • <a href=url>
  • <applet codebase=url>
  • <area href=url>
  • <base href=url>
  • <blockquote cite=url>
  • <body background=url>
  • <del cite=url>
  • <form action=url>
  • <frame longdesc=url> and <frame src=url>
  • <head profile=url>
  • <iframe longdesc=url> and <iframe src=url>
  • <img longdesc=url> and <img src=url> and <img usemap=url>
  • <input src=url> and <input usemap=url>
  • <ins cite=url>
  • <link href=url>
  • <object classid=url> and <object codebase=url> and <object data=url> and <object usemap=url>
  • <q cite=url>
  • <script src=url>

HTML 5 adds a few new ones (and doesn't seem to use some of the above):

  • <audio src=url>
  • <button formaction=url>
  • <command icon=url>
  • <embed src=url>
  • <html manifest=url>
  • <input formaction=url>
  • <source src=url>
  • <video poster=url> and <video src=url>

Not necessarily simple addresses can be used:

  • <object archive=url> or <object archive="url1 url2 url3">
  • <applet archive=url> or <applet archive=url1,url2,url3>
  • <meta http-equiv="refresh" content="seconds; url">

In addition, the style attribute may contain css definitions with one or more addresses. For example: <div style="background: url(image.png)">

translation of the answer to a similar question

  • oh thanks for the translation! - HamSter
  • Perfectly. I think most will not have to use. But many obviously need. - Pavel Mitchenko