Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions html.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,27 @@ List the entries like in a dictionary or encyclopedia.
Password: <input type = "password" name = "password" /> <br> <!-- Single line password input-->
</form>
```

## HTML Favicon
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want to cover basics only in Cheat Sheets, this is advanced information. You can always create these as posts in OneCompiler


A favicon is a small image displayed next to the page title in the browser tab. <br />
Add a `<link>` element to your "index.html" file, after the `<title>` element, like this:

### Example

```html
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
<link rel="icon" type="image/x-icon" href="/images/favicon.ico">
</head>
<body>

<h1>This is a Heading</h1>
<p>This is a paragraph.</p>

</body>
</html>
```