HTML Graphics

What is HTML Canvas?

The HTML <canvas> element is used to draw graphics, on the fly, via JavaScript.

The <canvas> element is only a container for graphics. You must use JavaScript to actually draw the graphics.

Canvas has several methods for drawing paths, boxes, circles, text, and adding images.

Canvas is supported by all major browsers.

Continue reading HTML Graphics

HTML Forms

An HTML form is used to collect user input. The user input is most often sent to a server for processing.

See the Pen
HTML Forms
by Iampsp.com (@iampsp)
on CodePen.


Continue reading HTML Forms

HTML VS XHTML

XHTML is a stricter, more XML-based version of HTML.

What is XHTML?

  • XHTML stands for EXtensible HyperText Markup Language
  • XHTML is a stricter, more XML-based version of HTML
  • XHTML is HTML defined as an XML application
  • XHTML is supported by all major browsers

Why XHTML?

XML is a markup language where all documents must be marked up correctly (be “well-formed”).

XHTML was developed to make HTML more extensible and flexible to work with other data formats (such as XML). In addition, browsers ignore errors in HTML pages, and try to display the website even if it has some errors in the markup. So XHTML comes with a much stricter error handling.

Continue reading HTML VS XHTML

HTML Uniform Resource Locators

A URL is another word for a web address.

A URL can be composed of words (e.g. iampsp.com), or an Internet Protocol (IP) address (e.g. 192.68.20.50).

Most people enter the name when surfing, because names are easier to remember than numbers.

URL – Uniform Resource Locator

Web browsers request pages from web servers by using a URL.

A Uniform Resource Locator (URL) is used to address a document (or other data) on the web.

A web address likeΒ https://iampsp.com/blog/ follows these syntax rules :

scheme://prefix.domain:port/path/filename

Continue reading HTML Uniform Resource Locators

HTML Encoding

To display an HTML page correctly, a web browser must know which character set to use.

The HTML charset Attribute

The character set is specified in the <meta> tag:

<meta charset="UTF-8">

Continue reading HTML Encoding

Emojis in HTML

Emojis are characters from the UTF-8 character set: πŸ˜„ 😍 πŸ’—

Original Smileys

Char Dec Hex Name
πŸ˜€ 128512 1F600 GRINNING FACE

Example

 <p style="font-size:100px">&#128540;</p>
<p>I will display &#128540;</p>
<p>I will display &#x1F61C;</p>

Continue reading Emojis in HTML

HTML Symbols

Symbols or letters that are not present on your keyboard can be added to HTML using entities.

HTML Symbol Entities

HTML entities were described in the previous chapter.

Many mathematical, technical, and currency symbols, are not present on a normal keyboard.

To add such symbols to an HTML page, you can use the entity name or the entity number (a decimal or a hexadecimal reference) for the symbol:

Continue reading HTML Symbols

HTML Entities

Reserved characters in HTML must be replaced with entities:

  • < (less than) = &lt;
  • > (greater than) = &gt;

HTML Character Entities

Some characters are reserved in HTML.

If you use the less than (<) or greater than (>) signs in your HTML text, the browser might mix them with tags.

Entity names or entity numbers can be used to display reserved HTML characters.

Entity names look like this :

&entity_name;

Continue reading HTML Entities

HTML Computer Code Elements

HTML contains several elements for defining user input and computer code.

See the Pen
HTML code
by Iampsp.com (@iampsp)
on CodePen.


Continue reading HTML Computer Code Elements

HTML Responsive Design

Responsive web design is about creating web pages that look good on all devices!

A responsive web design will automatically adjust for different screen sizes and viewports.

What is Responsive Web Design?

Responsive Web Design is about using HTML and CSS to automatically resize, hide, shrink, or enlarge, a website, to make it look good on all devices (desktops, tablets, and phones).

Continue reading HTML Responsive Design