View on GitHub

reading-notes

Images

Images can improve the design and the appearance of a web page.

HTML Images Syntax

<img src="url" alt="alternatetext">

The tag has two required attributes:

image

If a browser cannot find an image, it will display the value of the alt attribute

alt

Image Size - Width and Height

We can change yhe width ang height of image.

size

Images on Another Website.

Just put in src the addreess of image.

Image

Animated Images

HTML allows animated GIFs:

animated

Float image image

float


CSS

What is CSS :

CSS stands for Cascading Style Sheets.

CSS describes how HTML elements are to be displayed on screen, paper, or in other media.


CSS Syntax :

Synatx


CSS Colors :

Colors are specified using predefined color names, or RGB, HEX, HSL .

The alpha parameter is a number between 0.0 (fully transparent) and 1.0 (not transparent at all)

CSS Background Color:

Name Of Color

Saja


HEX

Saja


RGB

Saja

--- **HLS**

Saja

--- ## CSS Text Color :

LTUC

LTUC

LTUC

--- ## CSS Border Color :

Saja

Saja

Saja

--- # Text ## Font family ![font](/reading-notes/image5/font.PNG) ![font2](/reading-notes/image5/font2.PNG) ## Font size The font-size property sets the size of a font. ![size](/reading-notes/image5/size.PNG) ## Font-face **@font-face allows you to use a font, even if it is not installed on the computer of the person browsing, by allowing you to specify a path to a copy of the font.** ## Font Style The font-style property specifies the font style for a text. ![style](/reading-notes/image5/style.PNG) ## Font transform ![transform](/reading-notes/image5/tra.PNG) ## Text-decoration ![text](/reading-notes/image5/dec.PNG) ## Text-align The text-align property specifies the horizontal alignment of text in an element. ![text](/reading-notes/image5/text.PNG) ## Vertical-align ![font](/reading-notes/image5/f.PNG) ## Text shadow ![shadow](/reading-notes/image5/pink.PNG) ## Visited selector The :visited selector is used to select visited links. ![visited](/reading-notes/image5/vi.PNG) **You can use pseudo-classes to change the style of an element when a user hovers over or clicks on text, or when they have visited a link.** ***:hover, :active, :focus***.