View on GitHub

reading-notes

Reading Notes about Markdown-Html-Css-JavaScript

HTML Images

The HTML < img> tag is used to embed an image in a web page.

The < img> tag is empty, it contains attributes only, and does not have a closing tag.

src - Specifies the path to the image alt - Specifies an alternate text for the image .

1-Image Align Center Using Margin 2-Image Align with Float 3-Using Position

Syntax

image-resolution: [from-image || <resolution>] && snap?

Example

<img src="programming.gif" alt="Computer Man" style="width:48px;height:48px;"> 

Summary Notes :


HTML Image Tags|Tag Description —————-|————- < img> | Defines an image < map> | Defines an image map < area> |Defines a clickable area inside an image map < picture> | Defines a container for multiple image resources ____________

Colors

With CSS, colors can be specified in different ways:

An RGB color value is specified with: rgb( RED , GREEN , BLUE ).

A hexadecimal color is specified with: #RRGGBB. HSL color values are specified with: hsl(hue, saturation, lightness).


Text

Setting Font Face You can set font face using face attribute but be aware that if the user viewing the page doesn’t have the font installed, they will not be able to see it. Instead user will see the default font face applicable to the user’s computer.

Example

<!DOCTYPE html>
<html>

   <head>
      <title>Font Face</title>
   </head>

   <body>
      <font face = "Times New Roman" size = "5">Times New Roman</font><br />
      <font face = "Verdana" size = "5">Verdana</font><br />
      <font face = "Comic sans MS" size =" 5">Comic Sans MS</font><br />
      <font face = "WildWest" size = "5">WildWest</font><br />
      <font face = "Bedrock" size = "5">Bedrock</font><br />
   </body>

</html>


Font family

The font-family property can hold several font names as a “fallback” system. If the browser does not support the first font, it tries the next font.

There are two types of font family names:

font-weight

different font weight for three paragraphs:

p.normal {
  font-weight: normal;
}

p.thick {
  font-weight: bold;
}

p.thicker {
  font-weight: 900;
}

text-transform

The text-transform property changes the capitalization of text within an element, or else directs the user agent to leave the capitalization “as is.”

Possible Values

text-indent

The text-indent property specifies the indentation of the first line in a text-block.

text-shadow

The text-shadow property adds shadow to text.

TL;DR

Use JPEG format for all images that contain a natural scene or photograph where variation in colour and intensity is smooth.

Compression

Compression can be of two types — lossless and lossy. In lossless compression, it is possible to reconstruct the original image from the compressed image because there is no information loss during compression.

Transparency

Animation

Animation, in this case, refers to any change or movement in the image. It doesn’t necessarily have to have frame rates like an animated video, but essentially a part or the entire image changes with time.