-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Basefont tag #816
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
Merged
Basefont tag #816
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
4208589
Made the entry for the basefont tag
not-a-ethan b3c6f83
Update basefont.md
not-a-ethan 7029685
Update content/html/concepts/tags/terms/basefont/basefont.md
not-a-ethan 994e578
Update content/html/concepts/tags/terms/basefont/basefont.md
not-a-ethan ca725a4
Merge branch 'Codecademy:main' into basefont-tag
not-a-ethan b307152
Update font.md
not-a-ethan 7e55e50
Update basefont.md
not-a-ethan 12276fb
Update content/html/concepts/tags/terms/basefont/basefont.md
not-a-ethan 890ae84
Update content/html/concepts/tags/terms/basefont/basefont.md
not-a-ethan 5bdf336
Update content/html/concepts/tags/terms/basefont/basefont.md
not-a-ethan 4ef1a3c
Update content/html/concepts/tags/terms/basefont/basefont.md
not-a-ethan a3957ad
formatting
Dusch4593 7edfbeb
Merge branch 'Codecademy:main' into basefont-tag
not-a-ethan 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,42 @@ | ||
| --- | ||
| Title: '<basefont>' | ||
| Description: 'Used to be used to set the font of text. This is now deprecated.' | ||
| Subjects: | ||
| - 'Web Development' | ||
| - 'Web Design' | ||
| Tags: | ||
| - 'Tags' | ||
| - 'Style' | ||
| - 'Typography' | ||
| CatalogContent: | ||
| - 'learn-html' | ||
| - 'paths/front-end-engineer-career-path' | ||
| --- | ||
|
|
||
| The **`<basefont>`** tag was used to set the default font characteristics for the text of an HTML document. Since it is now deprecated, [CSS](https://www.codecademy.com/resources/docs/css) properties like the [`font` property](https://www.codecademy.com/resources/docs/css/typography/font) should be used instead. To set the font of specific parts of the webpage the [`<font>` tag](https://www.codecademy.com/resources/docs/html/tags/font) would be used in combination with the `<basefont>` tag. | ||
|
|
||
| ## Syntax | ||
|
|
||
| The tag must be a child of the [head](https://www.codecademy.com/resources/docs/html/tags/head) tag. Any combination of the following three attributes could be used in the `<font>` tag, with at least one being required: | ||
|
|
||
| - `color`: Sets the [color](https://www.codecademy.com/resources/docs/css/colors) for the font/text using a named color, hexadecimal, or RGB. | ||
| - `face`: Sets the font for the text (e.g., `face="verdana"`). | ||
| - `size`: Sets the size of the font/text using absolute units ranging from 1-7 (e.g., `size="5"`). | ||
|
|
||
| ## Example | ||
|
|
||
| ```html | ||
| <html> | ||
| <head> | ||
| <basefont size="5" font="verdana" color="green" /> | ||
| </head> | ||
| <body> | ||
| <p> | ||
| This text should be size 5 the font should be verdana and the color should | ||
| be green. | ||
| </p> | ||
| </body> | ||
| </html> | ||
| ``` | ||
|
|
||
|  |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Dusch4593 Made 1 slight change here