SEO for Developers | 2020 SEO Tutorial

JavaScript Mastery
16 Nov 201924:55

Summary

TLDRThis video script offers a comprehensive guide on Search Engine Optimization (SEO) tailored for web developers. It emphasizes the importance of SEO for website traffic and outlines key on-page SEO techniques, such as optimizing title tags, meta descriptions, URL structure, and image compression. The script also highlights the significance of mobile-friendliness and minifying website files for faster loading times, ultimately enhancing the website's ranking on search engines.

Takeaways

  • πŸ“ˆ Understanding basic SEO techniques can significantly improve your website's marketing success and search engine rankings.
  • πŸ” SEO has two main sub-categories: on-page and off-page. This guide focuses on on-page SEO relevant to web developers.
  • πŸ† Title tags are crucial for search engines to understand a page's content and are a top on-page SEO ranking factor.
  • πŸ“ Meta descriptions should be unique, under 150 characters, and contain primary keywords for relevance and click-through rates.
  • πŸ”— URLs should be readable, understandable, and reflective of the page's content for better search engine crawling.
  • 🏷️ Other meta tags, such as meta keywords, viewport, charset, and author, contribute to a website's SEO, though not as significantly as title and description.
  • 🎨 Favicons improve user experience and brand identity by making websites easier to find and visually recognizable in bookmarks.
  • πŸš€ Page loading speed is vital for SEO; compressing images and avoiding bloat with frameworks can significantly improve it.
  • πŸ“Έ Using alt tags for images aids search engines in indexing and improves accessibility for users with disabilities.
  • πŸ”— Anchor tags with title attributes enhance user experience by displaying tooltips and can aid search engines in understanding link destinations.
  • πŸ“± Mobile-friendliness is essential for modern websites, influencing Google's indexing and rankings, and often achieved with media queries in CSS.

Q & A

  • What is the main focus of the video?

    -The main focus of the video is to discuss the most important SEO techniques that web developers can use to improve the ranking of the websites they are building.

  • What are the two main sub-categories of SEO mentioned in the video?

    -The two main sub-categories of SEO mentioned in the video are on-page SEO and off-page SEO.

  • Why are title tags important for SEO?

    -Title tags are important for SEO because they help search engines understand what a page is about and are considered one of the most significant on-page ranking factors.

  • What should be the ideal length for title tags?

    -The ideal length for title tags should be around 50 to 60 characters.

  • How does the description tag help with SEO?

    -The description tag should be unique, contain the primary keyword, and be under 150 characters. It helps provide a concise summary of the page content, which can improve click-through rates from search engine results.

  • What is the significance of a URL for SEO?

    -A URL should be easy to understand and clearly communicate what the page is about. Readable and keyword-rich URLs can help search engines and humans better understand the content of the page.

  • What is the purpose of meta tags in SEO?

    -Meta tags provide additional information about the page to search engines. They can include keywords, descriptions, viewport settings, and other metadata that helps improve the page's SEO.

  • Why is having a favicon.ico beneficial for a website?

    -Having a favicon.ico improves user experience by making the website easier to find and recognize in bookmarks and tabs. It also enhances the website's visual identity and brand recognition.

  • How can images affect a website's loading speed and what can be done to optimize them?

    -Images can significantly slow down a website if they are large in file size. Optimizing images by compressing them without losing much quality can greatly reduce loading times and improve website performance.

  • What is the importance of mobile-friendliness in modern SEO?

    -Mobile-friendliness is crucial in modern SEO because Google prioritizes websites that are mobile-friendly in its indexing. Websites that are not optimized for mobile are likely to be ranked lower in search results.

  • How can keyword usage in headings and content contribute to SEO?

    -Using main keywords in headings, subheadings, and throughout the content helps search engines understand the focus of the page and can improve the website's ranking for those keyword terms.

Outlines

00:00

🌟 Introduction to SEO Techniques for Web Developers

This paragraph introduces the video's focus on essential SEO techniques relevant to web developers. It emphasizes the importance of SEO for website marketing and highlights the common confusion around SEO practices. The guide aims to clarify SEO basics specifically for developers, excluding topics better suited for SEO experts, marketers, and business owners, and begins with an explanation of what SEO is and its benefits for websites.

05:01

πŸ“ Optimizing Title and Description Tags

The second paragraph delves into the significance of title and description tags in SEO. It explains that these tags are crucial for search engines to understand the content of a page. The paragraph provides guidelines for optimizing titles and descriptions, including their recommended length and the inclusion of primary keywords. It also demonstrates how to implement these tags in HTML using Visual Studio Code.

10:02

πŸ”— Crafting SEO-Friendly URLs and Meta Tags

This section discusses the role of URLs and various meta tags in SEO. It emphasizes the need for URLs to be readable and descriptive to improve search engine crawling. The paragraph also covers the use of meta tags such as meta keywords, viewport, charset, and author tags, explaining their purpose and how they contribute to better SEO rankings and website optimization.

15:03

πŸ–ΌοΈ Enhancing User Experience with Favicon and Image Optimization

The fourth paragraph focuses on the user experience aspect of SEO, starting with the importance of having a favicon for brand recognition and ease of bookmark identification. It then moves on to image optimization, discussing the impact of large image files on website speed and providing a step-by-step guide on how to compress images using online tools, improving page load times and SEO rankings.

20:07

πŸ“± Importance of Mobile-Friendly Websites and Minification

The final paragraph underscores the necessity of mobile-friendly websites, as Google prioritizes such sites in its indexing. It briefly touches on the use of media queries in CSS for responsive design. The paragraph also talks about minifying and compressing HTML, CSS, and JavaScript files to reduce file sizes and improve website speed, which positively affects SEO. Lastly, it reiterates the importance of keyword usage across various website elements for better search engine rankings.

Mindmap

Keywords

πŸ’‘SEO (Search Engine Optimization)

SEO refers to the practice of increasing the quantity and quality of traffic to a website through organic search results. In the context of the video, it is emphasized as a crucial aspect of website development that can significantly impact a website's visibility and success. The video outlines basic SEO techniques such as optimizing title tags, meta descriptions, and URL structures to improve search engine rankings.

πŸ’‘On-Page SEO

On-Page SEO involves optimizing the content and HTML source code of a page to make it more search engine-friendly. The video focuses on on-page SEO techniques that developers can implement, such as proper use of title tags, meta descriptions, and header tags, which directly influence a website's ranking on search engines like Google.

πŸ’‘Title Tag

A title tag is an HTML element that defines the title of a web page, which is displayed in the browser's title bar or in the page's tab. It is a critical on-page SEO element as it helps search engines understand the page's content and is a significant factor in ranking. The video emphasizes the importance of optimizing title tags with relevant keywords and keeping them within the recommended character length to improve click-through rates.

πŸ’‘Meta Description

A meta description is an HTML tag that provides a brief summary or description of a web page's content. It appears in search engine results as a snippet under the page title, influencing click-through rates. While not a direct ranking factor, a well-crafted meta description with relevant keywords can enhance SEO by improving the page's visibility andεΈεΌ•εŠ›.

πŸ’‘URL Structure

The URL structure refers to the format and components of a web address. A well-structured URL that is readable and descriptive can improve SEO by making it easier for search engines to understand the page's content. The video suggests using URLs that are easy to understand and include relevant keywords to better communicate the page's subject matter to both search engines and users.

πŸ’‘Meta Tags

Meta tags are HTML elements that provide metadata about a web page to the browser and search engines. They can include keywords, descriptions, viewport settings, and other information that helps search engines index and rank pages effectively. The video discusses various meta tags, such as meta keywords, meta viewport, and meta charset, which are essential for optimizing a website's SEO.

πŸ’‘Favicon

A favicon, or 'favorites icon,' is a small icon associated with a website that appears in the browser tab, next to the website's title. It enhances user experience by making the website easily recognizable and memorable among bookmarks. The video suggests including a favicon to improve brand identity and visual appeal.

πŸ’‘Page Loading Speed

Page loading speed refers to how quickly a web page loads on a user's device. A faster loading speed improves user experience and is a ranking factor for search engines. The video emphasizes the importance of optimizing images and avoiding unnecessary scripts or libraries to reduce page bloat and improve loading times.

πŸ’‘Mobile-Friendly Website

A mobile-friendly website is designed to provide an optimal viewing and interaction experience across a wide range of devices and screen sizes. With the increasing use of mobile devices for internet access, having a mobile-friendly website is crucial for reaching a broader audience and improving SEO, as search engines like Google prioritize mobile-friendly sites in their rankings.

πŸ’‘Minification and Compression

Minification and compression are processes used to reduce the size of website files such as HTML, CSS, and JavaScript. By removing unnecessary characters and spaces, these techniques improve page loading speed, which is beneficial for both user experience and SEO. Smaller file sizes mean faster load times, which can lead to higher search engine rankings.

πŸ’‘Keyword Usage

Keyword usage refers to the strategic placement of relevant words and phrases throughout a website's content to improve its visibility in search engine results. The video highlights the importance of including main keywords in titles, meta descriptions, headings, and content to increase the website's ranking for those terms.

Highlights

The video discusses crucial SEO techniques for web developers to improve website traffic and rankings.

SEO practices often have contradictory and outdated information, but understanding basics can significantly aid website success.

The guide focuses on SEO topics relevant to web developers, excluding those better suited for experts, marketers, and business owners.

SEO or Search Engine Optimization is the process of increasing website traffic quality and quantity.

There are two main sub-categories of SEO: on-page and off-page, with the video focusing on on-page SEO.

Title tags are essential for helping search engines understand a page's content and are the most important on-page SEO ranking factor.

Title tags should contain main keywords and be optimized for character length and click rate.

Meta description tags should be unique, under 150 characters, and relevant to the website's topic.

URLs should be readable, understandable, and informative about the page's content for both search engines and humans.

Other important meta tags include keywords, viewport, charset, and author, each contributing to better search engine understanding and rankings.

Favicons improve user experience and brand identity, making websites easier to find and visually identifiable.

Page load speed is vital for SEO, with faster pages ranking better; compressing images and avoiding bloated code can improve speed.

Alt tags for images help search engines index images and improve accessibility for users.

Anchor tags with title attributes provide clarity on link destinations and assist search engines.

Mobile-friendly websites are critical for modern online presence, with Google prioritizing mobile-friendly sites in search rankings.

Minifying and compressing HTML, CSS, and JavaScript files can significantly reduce file sizes and improve load times.

Proper keyword usage in titles, meta descriptions, headings, and content can enhance a website's ranking for those terms.

Transcripts

play00:00

[Music]

play00:07

hello everyone and welcome to another

play00:09

javascript mastery video today we are

play00:11

going to go over the most important

play00:13

techniques that you can use to improve

play00:15

the ceo of the website you're building

play00:18

there are a lot of factors regarding seo

play00:21

from a marketing standpoint luckily

play00:23

understanding a few basics about ceo

play00:26

will go a long way to your website's

play00:28

overall success searching for best ceo

play00:31

practices often returns contradictory

play00:34

and outdated information or topics

play00:36

related to keyword research content

play00:38

optimization and link building it can be

play00:41

really easy to get lost in all the

play00:44

constant updates and dismiss ceo as

play00:46

something only ceo experts should do

play00:50

this ceo guide jumps right into the main

play00:52

part it focuses only on ceo topics

play00:56

relevant to the web developers it skips

play00:58

ceo topics which are better suited for

play01:00

ceo experts marketers and business

play01:03

owners for example keyword building and

play01:06

content optimization so let's dive right

play01:09

in

play01:10

firstly we need to explain what ceo is

play01:13

and what are the main benefits of the

play01:15

websites that follow good ceo techniques

play01:18

and secondly we are going to go over

play01:20

factors that developers can directly

play01:22

implement to get higher rankings on

play01:24

google

play01:25

so ceo or search engine optimization is

play01:28

the process of increasing the quality

play01:31

and quantity of website traffic simply

play01:34

put better ceo equals more visitors to

play01:37

your or your clients site

play01:40

there are two main sub-categories of ceo

play01:44

on-page and off-page ceo

play01:47

off-page ceo refers mostly to factors

play01:49

that we cannot affect for example the

play01:52

niche of the website of your client the

play01:54

outside links pointing to it high

play01:56

quality content etc on-page ceo on the

play02:00

other hand is a developer's job it

play02:02

greatly affects the rankings of the

play02:04

website on google and other search

play02:06

engines in this video we are going to

play02:09

focus solely on the aspects of on-page

play02:12

ceo that can be implemented directly by

play02:14

you the developer quickly and without

play02:17

any issues inside of here we have basic

play02:20

index.html structure

play02:22

if you're in visual studio code you can

play02:24

just type html5

play02:26

or html and then choose this syntax and

play02:30

it is automatically going to generate it

play02:32

for you if you're using

play02:34

some other text editor this may not be

play02:37

the case but then you can simply type

play02:39

this out and then we are ready to go

play02:42

so now that is out of the way we can go

play02:44

back to our presentation and start with

play02:47

our first ceo guideline

play02:49

and it is the title

play02:51

title tags are a huge signal in helping

play02:54

search engines understand what your page

play02:56

is about

play02:58

they are arguably the most important

play03:00

on-page ceo ranking factor and should

play03:02

contain the main keywords that your page

play03:05

is targeting

play03:06

so what is the title tag inside of here

play03:10

we can see that we googled saturday

play03:12

night live for example and right here on

play03:15

google search this saturday night live

play03:19

dash nbc.com this is the title of the

play03:22

website so you are actually choosing

play03:24

what is going to be displayed and this

play03:27

greatly affects the click rate if the

play03:29

title is for example boring or too long

play03:32

not many people are going to click on it

play03:34

so it is really important that we

play03:36

optimize our titles

play03:38

uh and as it says here title tags should

play03:41

be around 50 to 60 characters in length

play03:44

so let's get back to our visual studio

play03:46

code and let's actually see where we can

play03:49

put that title

play03:51

uh visual studio code actually brought

play03:53

our title right here so it is just a

play03:57

title tag basic tag opening and closing

play04:00

one and inside of here we can put the

play04:03

title of our website

play04:05

so let's type something like

play04:07

learn

play04:08

javascript

play04:10

and then we can put dash javascript

play04:15

mastery

play04:16

this is one example of the title

play04:19

and

play04:20

you can see right here that it includes

play04:23

many keywords for example it includes

play04:25

javascript

play04:26

or learn javascript as a separate

play04:28

keyword and then we have the name or the

play04:31

title of our website right now we can go

play04:33

into the browser

play04:35

right now we can open this file inside

play04:37

of the browser by going into reveal in

play04:39

finder or

play04:41

something else if you're on windows

play04:44

and once we have it opened we should see

play04:46

the title on top of our page

play04:48

so let's see so the page is now

play04:51

completely blank nothing on there but

play04:53

right here you can see that there is

play04:55

learn javascript javascript mastery so

play04:58

first step solved now we can get back to

play05:01

our presentation and see what else

play05:04

should we do

play05:05

so the second thing that we need to do

play05:07

is the description as with the title

play05:09

description should be unique and should

play05:12

contain the primary keyword as with the

play05:14

title descriptions should be unique and

play05:16

should contain the primary keyword they

play05:19

should also be under 150 characters and

play05:22

they should be relevant to the topic of

play05:24

your website so let's see how we can

play05:27

implement the description we can add our

play05:29

description by creating a meta tag so it

play05:32

is a self-closing tag and inside of here

play05:35

we can write name equal to description

play05:39

and content equal to the description

play05:42

that we want to put in for example if we

play05:44

are talking about javascript mastery we

play05:46

can put something like this

play05:48

so

play05:50

the purpose of javascript mastery is to

play05:51

help aspiring and establish developers

play05:53

to take their development skills to the

play05:55

next level and build awesome apps you

play05:57

can also throw in a few more keyboards

play06:00

but in here we have development web

play06:02

development javascript and stuff like

play06:05

that so basically this needs to be

play06:07

suited to your own website we can also

play06:10

create uh comments right here just so we

play06:12

know what we are doing currently so this

play06:15

is a meta description we already created

play06:18

a title

play06:20

we're going to go over these tags in

play06:22

just a moment but for now let's get back

play06:25

to our presentation third thing on our

play06:27

list is url url needs to explain what

play06:30

the website is about it needs to be easy

play06:32

to understand and tell search engines

play06:35

and humans what the page is about

play06:37

so regarding the urls we cannot

play06:39

implement that right here but we can

play06:41

give some examples for example we have

play06:44

someone's blog

play06:47

uh let's say that the domain name of his

play06:50

blog is

play06:51

https

play06:53

and then domain name or let's say his

play06:56

name so john doe for example uh john

play07:00

doesblog.com and now right here we'll

play07:04

have something like slash blog

play07:06

uh it would be nice if every blog so

play07:09

every specific article has characters

play07:12

something like this

play07:14

or even

play07:16

some

play07:17

id code which is like this this isn't

play07:20

readable neither to the browser nor the

play07:23

search engine nor to the human so it

play07:25

would be better if it were something

play07:28

like slash blog and then slash

play07:31

uh the

play07:34

title so the title of the the each

play07:37

specific blog let's say this one is

play07:39

about dogs and then we can name it docs

play07:41

or something like that so urls need to

play07:43

be readable and then search engines will

play07:46

crawl better

play07:48

okay now that this is out of the way we

play07:50

can go to the fourth one

play07:53

fourth one is actually other meta tags

play07:56

so uh with the title tag and the

play07:59

description tag there are a lot of other

play08:01

meta tags that are important not as

play08:03

important as the description in the

play08:05

title of course but they still hold some

play08:07

value so in here we can see that we have

play08:10

meta keywords attribute a meta keywords

play08:13

is a series of keywords you deemed

play08:15

relevant to the page in question so for

play08:17

example if we go right here we can

play08:19

create that meta tag for ourselves we

play08:22

already learned that meta tags are self

play08:24

closing tags and that we define them by

play08:27

name so meta name equal keywords

play08:30

and then inside of here we can put

play08:32

content

play08:33

and then

play08:34

we can write our keywords

play08:36

uh with comma separated values so inside

play08:39

of here we can write something like html

play08:42

css javascript

play08:44

we can also do js

play08:47

web

play08:48

development

play08:50

we can even divide it

play08:53

and stuff like that they do not need to

play08:55

be upper case they just are in this

play08:57

example and this is basically it for the

play09:00

keywords it simply helps google and

play09:03

other search engines understand better

play09:05

what the website is about

play09:08

with the keywords we also have a meta

play09:11

viewport it gives the browser

play09:13

instructions on how to control the pages

play09:15

dimensions and scaling

play09:17

so in here we can see that visual studio

play09:20

code already created a viewport for us

play09:23

so we are simply going to put a comment

play09:26

meta viewport this is one of the most

play09:29

used viewports it simply scales

play09:32

everything uh if your website is mobile

play09:34

friendly we are going to get to that

play09:35

later it simply scales it nicely on

play09:38

mobile devices we can also create our

play09:43

comment for our keywords so we're going

play09:44

to type meta keywords

play09:48

and this is just some other meta type

play09:51

that we are not going to talk in

play09:52

specific in this video but as you can

play09:55

probably read from this it is about

play09:57

compatibility with uh internet explorer

play10:01

edge

play10:01

so we're going to type

play10:03

meta

play10:04

edge for example doesn't matter

play10:07

we have a few more meta tags for example

play10:10

we have meta chart set which defines a

play10:12

character set so we are using utf

play10:16

basically all characters and it is in

play10:19

english so it simply helps google and

play10:21

search engines rank rank the website

play10:24

better and we have author which is used

play10:27

a lot with blogs so if your website is

play10:30

something like a cms content management

play10:32

system where a lot of new websites are

play10:35

going to be generated inside of it then

play10:37

we can add an author meta tag to each uh

play10:40

one of the new websites so inside of

play10:43

here we can just put a comment for our

play10:45

charts chart set we use utf right here

play10:48

which is basically universal so we can

play10:50

type meta chart set

play10:54

and inside of here at the bottom we can

play10:56

create meta

play10:59

author and just below we can create a

play11:01

new meta tag which has a name of author

play11:06

and it also has a content

play11:09

of the author's name for example john

play11:12

doe

play11:14

and we can close it and that's it there

play11:17

are a lot of subtle changes right here

play11:19

but each one of this helps google to

play11:21

rank your websites better you can think

play11:23

of that this way

play11:25

most developers aren't concerned with

play11:27

ceo and therefore your website which has

play11:31

this is going to rank most likely better

play11:34

than the competitors

play11:36

okay we can get back to our fifth slide

play11:39

which is favicon

play11:40

so the main reason your website should

play11:43

have a favicon icon is improving user

play11:46

experience it is much much easier to

play11:49

find the needed bookmark by image

play11:51

associated with a certain website rather

play11:54

than looking through different urls

play11:56

so it goes side by side next to your url

play12:00

uh it improves your visual identity

play12:02

brand identity and simply makes your

play12:05

website easier to find and look better

play12:08

so as you can see right here on the

play12:10

picture it shows on the chrome tab right

play12:13

next to the title so we can go on the

play12:15

internet and find some random favicon so

play12:17

i can show you how to put it there so if

play12:20

we go inside of the google and type

play12:22

something like favicon we can see right

play12:24

here we can click on any of this i guess

play12:27

and we should see some favicons uh in

play12:31

here we can generate favicons from

play12:33

images which most people will find

play12:36

really useful but we can also browse the

play12:39

falicon gallery for example let's type

play12:42

website

play12:44

just something generic and if we right

play12:47

click and save it we can save it to our

play12:49

directory and then we'll be able to put

play12:51

it inside of the website okay we are

play12:53

back inside of the visual studio code

play12:56

favicon is here make sure that you

play12:59

rename it to favicon if it isn't already

play13:01

we specify the favicon icon with a link

play13:04

tag which is a self-closing tag

play13:07

and inside of here we need to put rel

play13:10

and it can be equal to

play13:12

shortcut

play13:14

icon

play13:15

which is basically used for

play13:16

accessibility we can also choose the

play13:18

type of our image so we can type type

play13:21

and it is going to be equal to image and

play13:23

then forward slash ico

play13:27

and the most important part we need to

play13:29

target it so we're going to type href

play13:32

and then we are going to type dot slash

play13:36

favicon.ico

play13:37

after we save that and we open our

play13:40

website inside of the browser we are

play13:42

going to see the changes so right here

play13:45

on top if you can see next to our title

play13:47

we have our favicon it is really small

play13:50

but i hope you can see it it is also

play13:52

going to show up when you save the

play13:54

website so if you save it right here you

play13:56

can see that the title and the favicon

play13:59

are right here

play14:01

great now we can get back to our

play14:03

presentation and we can go to the next

play14:05

very very important ceo tip

play14:09

so

play14:10

regarding ceo the faster the page loads

play14:13

the better so we need to make sure that

play14:16

we do not bloat the website with

play14:17

different frameworks libraries jquery

play14:20

for example and this goes for pictures

play14:23

or images

play14:24

so if you're posting an image in your

play14:26

content you must compress it images are

play14:29

one of the big causes of a slow website

play14:32

there are a ton of different online

play14:34

compressors

play14:36

this is just one example so it is

play14:38

compress

play14:39

jpeg.com

play14:41

if you go right here you can upload an

play14:43

image and it is going to compress it so

play14:46

let's see how this compression actually

play14:48

works we can go on google and search for

play14:50

copyright free images if you create

play14:52

websites you are not allowed to use all

play14:55

images you find on the web so unsplash

play14:57

is a great website that has all the

play15:00

photos that you can really use so inside

play15:02

of here why not search for dogs dogs are

play15:05

always cute

play15:06

so inside of here

play15:08

we can choose one image and we can

play15:12

download it now we can put this image

play15:14

inside of our visual studio code and we

play15:17

can actually

play15:19

display it in our html so we're going to

play15:21

create an image tag which is a self

play15:23

closing tag it is going to have a source

play15:26

attribute with dogs.jpg

play15:29

so inside of here uh if we save that and

play15:33

put it as it is we can also just correct

play15:35

the width to let's say 25 percent now we

play15:40

can go back inside of the browser and

play15:42

see how it looks and if you go right

play15:44

here you can see an image now we can

play15:47

choose the same image and then upload it

play15:49

to our compressor

play15:51

okay right here you can see that it has

play15:54

1.6 megabytes

play15:56

that is really a lot when it comes to

play15:59

websites for example the whole size of

play16:01

your html css or javascript can be in

play16:04

kilobytes but this image alone has 1.6

play16:07

megabytes which is a lot so now the

play16:10

image was downloaded and we can put it

play16:12

back inside of the visual studio code we

play16:14

can rename it to something like dogs.min

play16:18

that jpeg

play16:20

and we can put it next to this image

play16:23

just by typing dogs that mean that jpeg

play16:26

with the same width

play16:28

so now if we go back and go inside of

play16:30

the website and refresh you should be

play16:33

able to see the difference right

play16:36

um

play16:37

well i personally cannot see any

play16:40

so this compressor does its job really

play16:43

good it compresses the image but

play16:45

basically the quality stays the same or

play16:47

almost the same

play16:48

it it is definitely unnoticeable to the

play16:51

human eye but what happened to the size

play16:54

of the file so if we inspect this images

play16:57

let's see how the file size changed so

play17:00

let's collapse this right here and then

play17:03

let's open this right here so we can see

play17:05

that the unminified version has 1.6

play17:09

megabytes and that the minified version

play17:12

has only

play17:13

576 kilobytes so that is about three

play17:16

times less than the original image and

play17:19

the quality stayed almost the same

play17:21

that's it for the images now let's see

play17:24

what else can we do while we are at

play17:26

images we also have some attributes so

play17:30

attributes to this images can be alt

play17:33

tags basically it stands for alternative

play17:35

content

play17:37

they help search engines associate

play17:39

images with a web page's content so they

play17:42

can properly index it within their

play17:44

search results we can add our alt tag

play17:47

right here so alt is equal to and then

play17:50

the content

play17:52

when you're doing alts you do not need

play17:53

to say something like docs and then say

play17:56

again images it already knows that this

play17:59

is an image so this is redundant you can

play18:01

just type dogs or

play18:04

uh for example two dogs

play18:07

playing and then your image is actually

play18:09

going to show in google's search results

play18:12

while we're at this we can copy this and

play18:15

put it inside of this compressed image

play18:17

and then we can delete this and simply

play18:20

add a comment

play18:21

uh

play18:22

optimized uh image with an alt tag

play18:26

simple as that

play18:28

okay now this doesn't change anything

play18:31

in how we see the picture this just

play18:34

changes how search engines index it and

play18:38

also it is used for accessibility so for

play18:40

example for blind people it is going to

play18:43

read this text to them so they can

play18:45

actually know what the image is about we

play18:47

also have anchor tags so anchor tags are

play18:50

basically links and we can specify the

play18:52

title of an attribute it is displayed as

play18:55

a tooltip in most browser basically it

play18:58

appears in a small bubble

play19:00

we are going to see how it looks just

play19:02

now so we can create a normal anchor tag

play19:05

that looks like this

play19:07

and we can put href which points to

play19:10

https and then

play19:12

google.com

play19:14

and inside of here we're going to write

play19:16

google

play19:17

okay so if we go back to our website if

play19:19

we click it it goes to google as we

play19:22

anticipated

play19:23

okay now that is ready we can actually

play19:26

go back and put an title tag

play19:29

to our anchor tag so inside of here we

play19:32

are going to say something like google

play19:34

this is just a basic example but with

play19:36

some links it isn't clear where the link

play19:39

is going so uh there can be something

play19:41

else in the title for this example we're

play19:43

going to use just google and then if we

play19:46

save and refresh when you hover over the

play19:49

link you can see that this google title

play19:51

showed up and this also helps search

play19:54

engines

play19:55

okay let's go back to our presentation

play19:57

and this eighth tip right here is one of

play20:00

the really really important aspects of

play20:02

ceo nowadays everyone is using a phone

play20:06

sometimes or for some websites or most

play20:09

of the websites actually we access them

play20:12

by a phone so

play20:14

why would you limit yourself to not

play20:16

having a mobile friendly website it is a

play20:19

critical part of your online presence

play20:22

for the last few years google's indexing

play20:24

has been really focused on promoting the

play20:27

websites that are mobile friendly and

play20:30

the ones that aren't are going to be

play20:33

ranked lower on the google search so it

play20:36

is really important to implement that

play20:38

mobile friendliness

play20:39

uh we are not going to do that right now

play20:41

because we do not have a website right

play20:43

here uh we can create that in another

play20:45

video if you'd be interested creating a

play20:48

whole website from scratch with html and

play20:50

css for example with deployment but for

play20:54

now let's just say how we can make the

play20:56

website mobile friendly so in here we

play20:59

already mentioned that we have this meta

play21:01

viewport right here the most of the

play21:04

mobile friendly optimization is going to

play21:06

be happening inside of the css file

play21:08

where you're going to use media queries

play21:11

so i'm just going to put it right here

play21:13

media queries you need to use media

play21:16

queries to

play21:17

showcase your website differently across

play21:20

all devices

play21:22

and now to our ninth tip which is minify

play21:24

and compress we already mentioned that

play21:27

the smaller the file size the faster the

play21:29

website will load and the google is

play21:31

going to rank it better so when you

play21:34

minify your website css html and

play21:36

javascript files you can uh well save

play21:39

not shave some valuable time off of your

play21:42

site's slow speed okay so

play21:45

how are we going to

play21:47

uh shave of that some valuable time

play21:50

um basically we need to minify and

play21:54

compress our js html and css

play21:57

the same thing with the two images we

play21:59

compressed it we can also compress our

play22:01

html js and css there are a lot of

play22:06

websites that do this online i'm going

play22:08

to put one of them in description

play22:11

this one basically covers all three of

play22:13

them so what minification actually is

play22:17

is that if you go inside of here you can

play22:19

see that there are a lot of spaces right

play22:21

here so we have a space space space

play22:26

basically humans use spaces to improve

play22:28

readability but the browser doesn't need

play22:31

spaces so we can remove something like

play22:33

let's say this space right here this

play22:36

space and all of the spaces that we have

play22:39

uh this of course looks stupid in

play22:41

website that has 26 six lines but

play22:44

websites that have a lot of lines and a

play22:48

lot of different uh

play22:49

logic for example in javascript they can

play22:52

be compressed and simplified a lot

play22:55

so that's it for this tip and the last

play22:57

step is keyword usage so if you're

play23:00

creating a website for a client and he

play23:02

doesn't yet know what you want to put on

play23:04

the website make sure that keywords

play23:06

appear in a title meta description and

play23:09

headings so if the website is about

play23:12

let's say javascript as we said right

play23:14

here we need to use the main keywords

play23:16

across all the websites so they need to

play23:19

be used inside of the content of the

play23:20

keywords description title even the url

play23:24

or the domain name we need to place the

play23:26

main keywords in headings subheadings

play23:29

and basically anywhere where we can

play23:31

squeeze it so for example if our page is

play23:34

about javascript and the branded

play23:36

javascript mastery we can for example

play23:38

create an h1 every website needs an h1

play23:42

and then we can simply put learn

play23:45

javascript

play23:47

with

play23:48

javascript

play23:50

mastery

play23:52

simple as that we used a lot of keywords

play23:55

and although sometimes it may seem

play23:56

repetitive the more keywords that you

play23:59

put the website will rank better for

play24:01

that keyword term i really hope that you

play24:04

learned something new

play24:05

if you like this video feel free to stay

play24:08

tuned and subscribe to javascript

play24:10

mastery a lot of new people have been

play24:12

joining lately and the growth has been

play24:14

amazing we are just about to hit 10k

play24:17

subscribers so feel free to be one of

play24:20

them this was more of a beginner

play24:22

oriented video but here in javascript

play24:24

mastery we cover everything from

play24:27

beginner html and css all the way to

play24:30

javascript and then react deployment and

play24:33

building different projects and websites

play24:36

so if you like the content that i'm

play24:38

creating feel free to subscribe and stay

play24:40

tuned for more

play24:42

[Laughter]

play24:43

[Music]

play24:49

[Music]

play24:54

you

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
SEO TechniquesWeb DevelopmentKeyword OptimizationPage SpeedMobile FriendlyUser ExperienceContent QualityMeta TagsImage CompressionJavaScript Mastery