Skip to content

The Linter is for beginners who are not familiar with the SEO HTML tag rules. There are so many rules for SEO HTML tag but this linter focus on the basic requirement to have a good SEO HTML tag. It provides feedback if they do not observe the SEO HTML tag rule.

Notifications You must be signed in to change notification settings

Eshy10/SEO_Linter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SEO_Linter

SEO_Linter is a linter that provides feedbacks about errors if the rules of SEO HTML tag is not observed.

How it works

The Linter is for beginners who are not familiar with the SEO HTML tag rules. There are so many rules for SEO HTML tag but this linter focus on the basic requirement to have a good SEO HTML tag.

  • The Linter checks if the title tag is empty, which must be present in the HTML file
  • It checks if the headings tag is present, which is part of the basic requirement.
  • It checks if characters in the title is not more than 70 characters.
  • It checks if the image tag has an attribute of alt.
  • It checks if the links provided has an anchor text.
  • It checks if the meta tag is present in the HTML tag.

Examples

Below is an the code of a bad SEO HTML tag

  • index.html

Annotation 2020-03-30 141307

  • Linter ouput

Annotation 2020-03-30 141357

An Example of a good SEO HTML tag

  • index.html

Annotation 2020-03-30 140937

  • Linter output

Annotation 2020-03-30 140809

Built With

  • Ruby

Getting Started

How to run Linter

  • Clone the repo on your local machine
  • Cd into the folder

How to run the linter in your terminal

  • Run this command line: bin/main.rb

Video description of the project

click here to watch the video

Requirements

  • Ruby
  • Colorize
  • Nokogiri

Author

👤 Adewale Adeshola

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

About

The Linter is for beginners who are not familiar with the SEO HTML tag rules. There are so many rules for SEO HTML tag but this linter focus on the basic requirement to have a good SEO HTML tag. It provides feedback if they do not observe the SEO HTML tag rule.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published