Concepts

Attributes

  • href  is an example of an attribute for an element:

<a HREF="demo.html">simple</a>
  • Attributes  are placed inside the start tag, and consist of a name  and a value , separated by an " = " character.

  • The attribute value can remain unquoted  if it doesn't contain ASCII whitespace  or any of "   '   `   =   <  or > . Otherwise, it has to be quoted using either single or double quotes. The value, along with the " = " character, can be omitted altogether if the value is the empty string.

Global Attributes
  • .

IDs

  • Every element in HTML can have an ID.

id="my_section"

Entities

  • HTML Entity List .

  • HTML Entity List .

  •  

    • Non-breaking space.

    • Used when you want to keep two words together, so they are not separated by line breaks.

  • "

    • HTML entity for a straight double quote ( " ).

    • left (opening) curly double quote (β€œ).

    • right (closing) curly double quote (”).

  • <

    • <

  • >

    • >

  • ©

    • Copyright symbol.

Paths

How the Browser handles URLs
  • If the URL starts  with :

    • a scheme ( http: ) it is absolute.

    • /  it is root-relative (origin + path).

    • //  it is protocol-relative.

    • Otherwise it is resolved relative to the document’s base URL.

    • A   <base>  tag ( <base href="..."> ) can change the base used.

  • If the URL ends  with :

    • /  it is treated as a directory.

  • Sources example :

    • If using <img src="assets/test_image.png">  on the page /docs/vulkan/vulkan-fast-test/ , the browser will look for /docs/vulkan/vulkan-fast-test/assets/test_image.png .

    • If using <img src="/assets/test_image.png">  on the page /docs/vulkan/vulkan-fast-test/ , the browser will look for   /assets/test_image.png .

HTTP Requests

  • Only <a>  and <form>  are able to make HTTP requests.

  • The only methods available are GET and POST.

Event Trigger