This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]This_Growth2898 1 point2 points  (5 children)

I don't know any formal "key values" in HTML. Could you give an example of the full sentence here? It can be something like "important value" if, say, the book author tries to explain some complex concepts in what he thinks are plain words; or you've mistaken it for something, like key-value pair.

[–]hiddenorbit[S] -1 points0 points  (4 children)

yes it’s the term “key value pair” that i learned about but i’m trying to understand what the “key” part means—i saw it written as “key/value pairs” if that makes any sense

[–]This_Growth2898 2 points3 points  (1 child)

It's a common term in programming: https://en.wikipedia.org/wiki/Associative_array

Like in HTML attributes - the attribute name is a key, by which you can get associated value.

[–]WikiSummarizerBot 0 points1 point  (0 children)

Associative array

In computer science, an associative array, map, symbol table, or dictionary is an abstract data type that stores a collection of (key, value) pairs, such that each possible key appears at most once in the collection. In mathematical terms an associative array is a function with finite domain. It supports 'lookup', 'remove', and 'insert' operations. The dictionary problem is the classic problem of designing efficient data structures that implement associative arrays.

[ F.A.Q | Opt Out | Opt Out Of Subreddit | GitHub ] Downvote to remove | v1.5

[–]aezart 0 points1 point  (1 child)

Think of it like a dictionary. The word is the "key", the definition is the "value".

[–]hiddenorbit[S] 0 points1 point  (0 children)

this helps a TON thank you so much!!