I want to study nvd3.js to visualize the data. So I try to follow the tutorial one by one, and it starts to clog from the first line of html. Previously, if you saw the <link> tag <script> tag in the tutorial, you started copy and paste without any understanding. So, even though it’s the code that I’ve come across so often, I do not know if I think about what kind of code it plays. If you think about it, you can quickly get a real implementation, but at the end I thought I would not have anything left to do.
I try to pick up the most basic ones one by one.
Href is the location of the file to link to via <a href>.
The <link> tag defines a link between a document and an external resource.
The description of link tag defined at http://www.w3schools.com/ is as above. Defines the connection between the external resource and the current document.
In other words, in the example above, you should link the current html with the external nv.d3.css. It means that the style defined in nv.d3.css will also be used in the current html.
<Link ref> Properties
The possible values for <link rel> are as follows.
Alternate, archives, author, bookmark, external, first, help, icon, last, license, next, nofollow, noreferer, pingback, prefetch, prev, search, sidebar, stylesheet, tag, up
There are too many stylesheets, but let’s move on to the idea that stylesheets are used to separate style information from external .css files.
If so, I was wondering if there are any other scripts that could be included in the script’s type attribute.
- Text / ECMAScript
- Application / ECMAScript
I’m curious about ecmascript, but I think it’s out of context, so I will try to find out later.
The link tag mentioned earlier is only a link to the .css file, and the script tag is the code that immediately executes the linked .js file.
(In fact, css is an acronym for Cascading Style Sheets.