-
Notifications
You must be signed in to change notification settings - Fork 4.1k
add favicon html content #1418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
SSwiniarski
merged 28 commits into
Codecademy:main
from
that-cisco-guy:anderson_html_contribution
Jan 30, 2023
Merged
add favicon html content #1418
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
93b43a7
add favicon html content
that-cisco-guy 6372fb3
add favicon to tag.md, update verbiage and remove header in favicon.md
that-cisco-guy a6ddb29
Merge branch 'Codecademy:main' into anderson_html_contribution
that-cisco-guy fc7b5d1
add favicon html content
that-cisco-guy 69b4a7b
add favicon to tag.md, update verbiage and remove header in favicon.md
that-cisco-guy 6b860ba
fix format issues
that-cisco-guy cd76da4
bold first mention of favicon as per documentation
that-cisco-guy 980a003
Merge branch 'Codecademy:main' into anderson_html_contribution
that-cisco-guy e310e9d
resolve merge conflicts
that-cisco-guy a8d4967
replaced quotes to resolve failed test issue
that-cisco-guy 2ffed08
Merge branch 'main' into anderson_html_contribution
that-cisco-guy 796dd07
remove small as per instruction
that-cisco-guy 87875c2
Merge branch 'Codecademy:main' into anderson_html_contribution
that-cisco-guy 2964f20
Merge branch 'Codecademy:main' into anderson_html_contribution
that-cisco-guy 73eeb58
suggested format and verbiage change
that-cisco-guy 9ff1c03
Merge branch 'Codecademy:main' into anderson_html_contribution
that-cisco-guy 3c21513
Merge branch 'main' into anderson_html_contribution
SSwiniarski 39969d7
Update content/html/concepts/favicon/favicon.md
SSwiniarski de305ea
Update content/html/concepts/favicon/favicon.md
SSwiniarski ae5f254
Update content/html/concepts/favicon/favicon.md
SSwiniarski afb801a
Update content/html/concepts/favicon/favicon.md
SSwiniarski 5738ae8
Update content/html/concepts/favicon/favicon.md
SSwiniarski 16d0b6b
Update content/html/concepts/favicon/favicon.md
SSwiniarski 6b8c961
Update content/html/concepts/favicon/favicon.md
SSwiniarski e863768
Update content/html/concepts/favicon/favicon.md
SSwiniarski a5101c6
Update favicon.md
SSwiniarski cafe7c1
Merge branch 'main' into anderson_html_contribution
SSwiniarski 96b5b3a
prettier formatting
SSwiniarski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
Title: 'Favicon' | ||
Description: 'A favicon is a small icon that is displayed in the browser's address bar and tab title for a website.' | ||
Subjects: | ||
- 'Web Development' | ||
- 'Web Design' | ||
Tags: | ||
- 'Favicon' | ||
- 'Documentation' | ||
SSwiniarski marked this conversation as resolved.
Show resolved
Hide resolved
|
||
CatalogContent: | ||
- 'learn-html' | ||
- 'paths/front-end-engineer-career-path' | ||
--- | ||
|
||
# Favicon | ||
that-cisco-guy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
A favicon (short for "favorite icon") is a small icon that is displayed in the browser's address bar and tab title for a website. It is used to help users quickly identify the website and distinguish it from other tabs or bookmarks. | ||
|
||
To add a favicon to your website, you need to create a small image that will be used as the favicon, and then include a link to it in the head of your HTML document using the ***'link'*** element. Here's an example of how you might do this: | ||
that-cisco-guy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
```html | ||
SSwiniarski marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<link rel="shortcut icon" type="image/x-icon" href="/path/to/favicon.ico"> | ||
``` | ||
|
||
SSwiniarski marked this conversation as resolved.
Show resolved
Hide resolved
|
||
The ***'link'*** element with the ***'rel'*** attribute set to "shortcut icon" tells the browser that the linked resource is a favicon. The ***'type'*** attribute specifies the type of the favicon (in this case, "image/x-icon"), and the ***'href'*** attribute specifies the location of the favicon file. | ||
that-cisco-guy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
You can use any image format that is supported by web browsers as a favicon, but the most common format is .ico. You can create an .ico file using an image editor or online converter tool. | ||
that-cisco-guy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Once you have the favicon file and the ***'link'*** element in your HTML, the favicon should be displayed in the browser's address bar and tab title for your website. | ||
that-cisco-guy marked this conversation as resolved.
Show resolved
Hide resolved
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.