diff options
-rw-r--r-- | jquery.html.markdown | 2 | ||||
-rw-r--r-- | json.html.markdown | 5 | ||||
-rw-r--r-- | xml.html.markdown | 13 | ||||
-rw-r--r-- | yaml.html.markdown | 6 |
4 files changed, 16 insertions, 10 deletions
diff --git a/jquery.html.markdown b/jquery.html.markdown index a1673c10..18077dca 100644 --- a/jquery.html.markdown +++ b/jquery.html.markdown @@ -3,6 +3,7 @@ category: tool tool: jquery contributors: - ["Sawyer Charles", "https://github.com/xssc"] + - ["Devansh Patil", "https://github.com/subtra3t"] filename: jquery.js --- @@ -10,6 +11,7 @@ jQuery is a JavaScript library that helps you "do more, write less". It makes ma Because jQuery is a JavaScript library you should [learn JavaScript first](https://learnxinyminutes.com/docs/javascript/) +**NOTE**: jQuery has fallen out of the limelight in recent years, since you can achieve the same thing with the vanilla DOM (Document Object Model) API. So the only thing it is used for is a couple of handy features, such as the [jQuery date picker](https://api.jqueryui.com/datepicker) (which actually has a standard, unlike the `<input type="date">` HTML element), and the obvious decrease in the code length. ```js diff --git a/json.html.markdown b/json.html.markdown index 3ec7a3af..1ccdb5cf 100644 --- a/json.html.markdown +++ b/json.html.markdown @@ -9,7 +9,7 @@ contributors: - ["Athanasios Emmanouilidis", "https://github.com/athanasiosem"] --- -JSON is an extremely simple data-interchange format. As [json.org](http://json.org) says, it is easy for humans to read and write and for machines to parse and generate. +JSON is an extremely simple data-interchange format. As [json.org](https://json.org) says, it is easy for humans to read and write and for machines to parse and generate. A piece of JSON must represent either: @@ -80,6 +80,5 @@ Supported data types: ## Further Reading -* [JSON.org](http://json.org) All of JSON beautifully explained using flowchart-like graphics. - +* [JSON.org](https://json.org) All of JSON beautifully explained using flowchart-like graphics. * [JSON Tutorial](https://www.youtube.com/watch?v=wI1CWzNtE-M) A concise introduction to JSON. diff --git a/xml.html.markdown b/xml.html.markdown index b4b54330..2a258d94 100644 --- a/xml.html.markdown +++ b/xml.html.markdown @@ -100,8 +100,9 @@ This is what makes XML versatile. It is human readable too. The following docume A XML document is *well-formed* if it is syntactically correct. However, it is possible to add more constraints to the document, using Document Type Definitions (DTDs). A document whose elements are attributes are declared in a DTD and which follows the grammar specified in that DTD is called *valid* with respect to that DTD, in addition to being well-formed. +Declaring a DTD externally: + ```xml -<!-- Declaring a DTD externally: --> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE bookstore SYSTEM "Bookstore.dtd"> <!-- Declares that bookstore is our root element and 'Bookstore.dtd' is the path @@ -114,8 +115,11 @@ A XML document is *well-formed* if it is syntactically correct. However, it is p <price>30.00</price> </book> </bookstore> +``` -<!-- The DTD file: --> +The DTD file (Bookstore.dtd): + +``` <!ELEMENT bookstore (book+)> <!-- The bookstore element may contain one or more child book elements. --> <!ELEMENT book (title, price)> @@ -128,10 +132,11 @@ A XML document is *well-formed* if it is syntactically correct. However, it is p only contain text which is read by the parser and must not contain children. Compare with CDATA, or character data. --> <!ELEMENT price (#PCDATA)> -]> +``` -<!-- The DTD could be declared inside the XML file itself.--> +The DTD could be declared inside the XML file itself: +```xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE bookstore [ diff --git a/yaml.html.markdown b/yaml.html.markdown index 4f10a128..6dc5905e 100644 --- a/yaml.html.markdown +++ b/yaml.html.markdown @@ -127,11 +127,11 @@ base: &base # indicate that all the keys of one or more specified maps should be inserted # into the current map. -foo: &foo +foo: <<: *base age: 10 -bar: &bar +bar: <<: *base age: 20 @@ -184,5 +184,5 @@ set2: ### More Resources -+ [YAML official website](http://yaml.org/) ++ [YAML official website](https://yaml.org/) + [Online YAML Validator](http://www.yamllint.com/) |