reading-notes

HTML Links

You can click on a link and jump to another document.

The HTML <a> tag defines a hyperlink. It has the following syntax:

<a href="url">link text</a>

The most important attribute of the
<a>
  element is the href attribute, which indicates the link's destination. The
  link text is the part that will be visible to the reader.
</a>
HTML
<a>
  tag provides you option to specify an email address to send an email. While
  using
  <a>
    tag as an email tag, you will use mailto: email address along with href
    attribute. Following is the syntax of using mailto instead of using http.
    example <a href="mailto: abc@example.com">Send Email</a></a
  ></a
>

HTML Layout Elements

HTML has several semantic elements that define the different parts of a web page:

lyout

HTML Layout Techniques

Functions is js

A function in JavaScript is similar to a procedure a set of statements that performs a task or calculates a value, but for a procedure to qualify as a function, it should take some input and return an output where there is some obvious relationship between the input and the output.

Defining functions

For example

function square(number) {
return number \* number;
}

Control flow

The control flow is the order in which the computer executes. Code is run in order from the first line in the file to the last line

A typical script in JavaScript or PHP (and the like) includes many control structures, including conditionals, loops and functions. Parts of a script may also be set to execute when events occur.

JavaScript Operators

* let x = 5; // assign the value 5 to x * let y = 2; // assign the value 2 to y
* let z = x + y; // assign the value 7 to z (5 + 2)