View on GitHub

reading-notes

https://samahabujwaied.github.io/reading-notes/

IMAGES

How could controlling size of images in CSS ?

You can control the size of an image using the width and height properties in CSS, just like you can for any other box. Specifying image sizes helps pages to load more smoothly because the HTML and CSS code will often load before the images, and telling the browser how much space to leave for an image allows it to render the rest of the page without waiting for the image to download.

How could aligning images using CSS ?

Rather than using the <img> element’s align attribute, web page authors are increasingly using the float property to align images. There are two ways that this is commonly achieved:

  1. The float property is added to the class that was created to represent the size of the image.
  2. New classes are created with names such as align-left or align-right to align the images to the left or right of the page. These class names are used in addition to classes that indicate the size of the image.

How to centering images using CSS ?

By default, images are inline elements. This means that they flow within the surrounding text. In order to center an image, it should be turned into a block- level element using the display property with a value of block. Once it has been made into a block-level element, there are two common ways in which you can horizontally center an image:

  1. On the containing element, you can use the text-align property with a value of center.
  2. On the image itself, you can use the use the margin property and set the values of the left and right margins to auto. You can specify class names that allow any element to be centered, in the same way that you can for the dimensions or alignment of images.

Background Images

The background-image property allows you to place an image behind any HTML element. This could be the entire page or just part of the page. By default, a background image will repeat to fill the entire box.

Repeating images

The background-repeat property can have four values:

  1. repeat

    The background image is repeated both horizontally and vertically (the default way it is shown if the background- repeat property isn’t used).

  2. repeat-x

    The image is repeated horizontally only.

  3. repeat-y

    The image is repeated vertically only.

  4. no-repeat

    The image is only shown once.

background-attachment

The background-attachment property specifies whether a background image should stay in one position or move as the user scrolls up and down the page. It can have one of two values:

  1. fixed

    The background image stays in the same position on the page.

  2. scroll

    The background image moves up and down as the user scrolls up and down the page.

Background position

When an image is not being repeated, you can use the background-position property to specify where in the browser window the background image should be placed. This property usually has a pair of values. The first represents the horizontal position and the second represents the vertical.

contrast of Background Images

If you want to overlay text on a background image, the image must be low contrast in order for the text to be legible.

Practical information

search engine optimization (SEO)

on-Page techniques

On-page techniques are the methods you can use on your web pages to improve their rating in search engines.The main component of this is looking at keywords that people are likely to enter into a search engine if they wanted to find your site, and then including these in the text and HTML code for your site in order to help the search engines know that your site covers these topics.Search engines rely very heavily on the text that is in your pages so it is important that the terms people are going to search for are in text. There are seven essential places where you want your keywords to appear. Ensuring that any images have appropriate text in the value of their alt attribute also helps search engines understand the content of images.

off-Page techniques

Getting other sites to link to you is just as important as on-page techniques. Search engines help determine how to rank your site by looking at the number of other sites that link to yours. They are particularly interested in sites whose content is related to yours. For example, if you were running a website that sold fish bait, then a link from a hairdresser is not likely to be considered as relevant as one from an angling community. Search engines also look at the words between the opening <a>tag and closing </a> tagin the link. If the text in the link contains keywords (rather than just click here or your website address) it may be considered more relevant. The words that appear in links to your site should also appear in the text of the page that the site links to.

how to identify keyWords and Phrases?

Determining which keywords to use on your site can be one of the hardest tasks when you start to think about SEO. Here are six steps that will help you identify the right keywords and phrases for your site.

how many PeoPle are coming to your site?

The overview page gives you a snapshot of the key information you are likely to want to know. In particular, it tells you how many people are coming to your site.

What are your Visitors looking at?

The content link on the left-hand side allows you to learn more about what the visitors are looking at when they come to your site

Where are your Visitors coming from?

domain names & hosting

FTP & third Party tools

To transfer your code and images from your computer to your hosting company, you use something known as File Transfer Protocol. As the name suggests, File Transfer Protocol (or FTP) allows you to transfer files across the Internet from your computer to the web server hosting your site. There are many FTP programs that offer a simple interface that shows you the files on your computer alongside the files that are on your web server. These allow you to drag and drop files from your computer to the server or vice versa.