Reading notes about code for my future reference.
A real life case of an attribute being used in a website is if someone has a slow connection and they can’t load!
You can improve accesbility by using a screen reader function, to read aloud the content that is being display for the visually impaired. If the browser doesn’t support the image you can utilize which displays an image’s alt as texts!
The figure element can be useful if you want the ability to move content without affect the flow of other content.
So a GIF if you stretch it out will look all choppy and super low resolution like if you where not wearing your glasses, it noticable and present if you try to make it bigger!
An svg is resolution dependent or stays clear no matter how big it gets. If you stretch it out it will always be like an HDTV!
The best types of file formats for Screenshots are as follows. PNGs, JPEGS, and WebP. This is due to the fact that text can become fuzzy as compression will alter the image.
Foreground would be content that user would be interacting with or reading such as text or things that the mouse would be hovering over. Stuff you want people to use.
Background colors would be like the fill of the boxes, or fill of the entire page. It wont pop out because it’s purpose isn’t to grab your attention.
You would use the color to define a theme or convey a message through expression of colors. By highlighting certain aspects more like headers or by dividing sections by theme. You can make the background compliment the borders and the text and make it visually appealing. But most importantly legible and accessible for all.
What should you consider when choosing fonts for an HTML document? You should consider web accesbility and default fonts. You should also take into consideration how a font impacts your message. Is it readabil? Will users take your website seriously?
What do font-size, font-weight, and font-style do to HTML text elements? Font-Size: Changes the size of your font. Font-Style: Font-Style changes the font, to different styles such as italics, oblique, normal etc… Font-weight: This determines how thick or thin your characters turn out to be!
Describe two ways you could add spacing around the characters displayed in an h1 element. By adding spaces within the element itself in HTML, Or utilizing the text alignment feature in CSS! + Back to Home