Images and font styles are building blocks to making something both readable, accessible and enjoyable.
alt
attribute being used in a website?
Accessibility features (screen readers can describe the images to low/no sighted people)
You can improve the accessibility of images in an HTML document by using alt text, a descriptive title, and appropriate image formats. You should also avoid using text in images, and use semantic HTML elements to group images with their captions.
figure
element would be useful in an HTML document.
The
figure
element can be used to group an image with its caption or other related content. This can be useful for improving the accessibility of images, as well as for organizing the content of my HTML document.
gif
image and an svg
image, pretend you are explaining to an elder in your community.
A
gif
image is a type of image that is pixelated and can be animated. Ansvg
image is a type of vector image that can be scaled to any size without losing quality (it’s based on math). GIF images are typically used for simple animations, while SVG images are typically used for more complex graphics.
I would use a PNG image to display a screenshot on my website. PNG images are lossless, which means that they retain all of the original image data. This ensures that the screenshot will look as good as possible, even when it is resized or zoomed in.
The foreground color is the color of the text in an HTML element, while the background color is the color of the area behind the element.
I would use different colors for the text, background, and links on my friend’s blog to give it some character. I would also use color to highlight important content, such as titles and headings.
When choosing fonts for an HTML document, I would consider the following factors: the purpose of the document, the target audience, and the overall design of the document.
font-size
, font-weight
, and font-style
do to HTML text elements?
The
font-size
property controls the size of the text in an HTML element, thefont-weight
property controls the thickness of the text, and thefont-style
property controls the style of the text (e.g., italic, bold).
h1
element.
Two ways to add spacing around the characters displayed in an h1 element are to use the letter-spacing property or the word-spacing property.