CSS Styling Tables
πTo specify table borders in CSS, use the border property.
πThe example above specifies a black border for <table>, <th>, and <td> elements:
@html_css_tut
"w3schools .com"
πTo specify table borders in CSS, use the border property.
πThe example above specifies a black border for <table>, <th>, and <td> elements:
@html_css_tut
"w3schools .com"
Double Borders
πNotice that the table in the examples above have double borders. This is because both the table and the <th> and <td> elements have separate borders.
πTo remove double borders, take a look at the example above.
@html_css_tut
"w3schools .com"
πNotice that the table in the examples above have double borders. This is because both the table and the <th> and <td> elements have separate borders.
πTo remove double borders, take a look at the example above.
@html_css_tut
"w3schools .com"
πΉ JavaScript is the
Programming Language
for the Web.
πΉ JavaScript can update
and change both
HTML and CSS.
πΉ JavaScript can calculate,
manipulate and
validate data.
@javascript_tut
https://t.me/javascript_tut
Programming Language
for the Web.
πΉ JavaScript can update
and change both
HTML and CSS.
πΉ JavaScript can calculate,
manipulate and
validate data.
@javascript_tut
https://t.me/javascript_tut
Telegram
JavaScript Tutorial
πΉ JavaScript is the
Programming Language
for the Web.
πΉ JavaScript can update
and change both
HTML and CSS.
πΉ JavaScript can calculate,
manipulate and
validate data.
Group
@js_group_tut
@javascript_tut
Programming Language
for the Web.
πΉ JavaScript can update
and change both
HTML and CSS.
πΉ JavaScript can calculate,
manipulate and
validate data.
Group
@js_group_tut
@javascript_tut
Generic Font Families
π In CSS there are five generic font families:
#1 Serif fonts have a small stroke at the edges of each letter. They create a sense of formality and elegance.
#2 Sans-serif fonts have clean lines (no small strokes attached). They create a modern and minimalistic look.
#3 Monospace fonts - here all the letters have the same fixed width. They create a mechanical look.
#4 Cursive fonts imitate human handwriting.
#5 Fantasy fonts are decorative/playful fonts.
All the different font names belong to one of the generic font families.
@html_css_tut
"w3schools .com"
π In CSS there are five generic font families:
#1 Serif fonts have a small stroke at the edges of each letter. They create a sense of formality and elegance.
#2 Sans-serif fonts have clean lines (no small strokes attached). They create a modern and minimalistic look.
#3 Monospace fonts - here all the letters have the same fixed width. They create a mechanical look.
#4 Cursive fonts imitate human handwriting.
#5 Fantasy fonts are decorative/playful fonts.
All the different font names belong to one of the generic font families.
@html_css_tut
"w3schools .com"
The CSS font-family Property
π In CSS, we use the font-family property to specify the font of a text.
π The font-family property should hold several font names as a "fallback" system, to ensure maximum compatibility between browsers/operating systems. Start with the font you want, and end with a generic family (to let the browser pick a similar font in the generic family, if no other fonts are available). The font names should be separated with comma.
π Note: If the font name is more than one word, it must be in quotation marks, like: "Times New Roman".
@html_css_tut
"w3schools .com"
π In CSS, we use the font-family property to specify the font of a text.
π The font-family property should hold several font names as a "fallback" system, to ensure maximum compatibility between browsers/operating systems. Start with the font you want, and end with a generic family (to let the browser pick a similar font in the generic family, if no other fonts are available). The font names should be separated with comma.
π Note: If the font name is more than one word, it must be in quotation marks, like: "Times New Roman".
@html_css_tut
"w3schools .com"
What are Web Safe Fonts?
π Web safe fonts are fonts that are universally installed across all browsers and devices.
π Fallback Fonts
However, there are no 100% completely web safe fonts. There is always a chance that a font is not found or is not installed properly.
π Therefore, it is very important to always use fallback fonts.
π This means that you should add a list of similar "backup fonts" in the font-family property. If the first font does not work, the browser will try the next one, and the next one, and so on. Always end the list with a generic font family name.
@html_css_tut
"w3schools .com"
π Web safe fonts are fonts that are universally installed across all browsers and devices.
π Fallback Fonts
However, there are no 100% completely web safe fonts. There is always a chance that a font is not found or is not installed properly.
π Therefore, it is very important to always use fallback fonts.
π This means that you should add a list of similar "backup fonts" in the font-family property. If the first font does not work, the browser will try the next one, and the next one, and so on. Always end the list with a generic font family name.
@html_css_tut
"w3schools .com"
πTutorials based on web development and programming.
π» + Source Code
βοΈ Html, CSS, JavaScript, React , Bootstrap, jQuery, AJAX, PHP, java, Python, SQL, MYSQL, Node.js, JSON, and More...
π Subscribe for More Tutorials:
https://www.youtube.com/codingwithelias?sub_confirmation=1
π» + Source Code
βοΈ Html, CSS, JavaScript, React , Bootstrap, jQuery, AJAX, PHP, java, Python, SQL, MYSQL, Node.js, JSON, and More...
π Subscribe for More Tutorials:
https://www.youtube.com/codingwithelias?sub_confirmation=1
CSS Font Size
πThe font-size property sets the size of the text.
πBeing able to manage the text size is important in web design. However, you should not use font size adjustments to make paragraphs look like headings, or headings look like paragraphs.
πAlways use the proper HTML tags, like <h1> - <h6> for headings and <p> for paragraphs.
The font-size value can be an absolute, or relative size.
πAbsolute size:
βΎοΈSets the text to a specified size
βΎοΈDoes not allow a user to change the text size in all browsers (bad for accessibility reasons)
βΎοΈAbsolute size is useful when the physical size of the output is known
πRelative size:
βΎοΈSets the size relative to surrounding elements
βΎοΈAllows a user to change the text size in browsers
@html_css_tut
"w3schools .com"
πThe font-size property sets the size of the text.
πBeing able to manage the text size is important in web design. However, you should not use font size adjustments to make paragraphs look like headings, or headings look like paragraphs.
πAlways use the proper HTML tags, like <h1> - <h6> for headings and <p> for paragraphs.
The font-size value can be an absolute, or relative size.
πAbsolute size:
βΎοΈSets the text to a specified size
βΎοΈDoes not allow a user to change the text size in all browsers (bad for accessibility reasons)
βΎοΈAbsolute size is useful when the physical size of the output is known
πRelative size:
βΎοΈSets the size relative to surrounding elements
βΎοΈAllows a user to change the text size in browsers
@html_css_tut
"w3schools .com"