Back to notes
How can CSS be integrated into HTML documents?
Press to flip
CSS can be added via inline styles, internal styles within <style> tags, or external stylesheets linked to the document.
In what scenarios would you choose CSS Grid over Flexbox?
CSS Grid is preferred for two-dimensional layouts, while Flexbox is optimal for one-dimensional layouts such as nav bars.
Explain how the Flexbox layout model benefits web design.
Flexbox provides a flexible and efficient way to layout, align, and distribute space among items within a container.
Discuss the purpose of using developer tools for visualizing the CSS Box Model.
Developer tools help visualize different components of the box model to understand spacing, alignment, and layout effectively.
What is the primary purpose of HTML?
HTML is used to create and manage web pages.
What is the significance of the <!DOCTYPE html> declaration in an HTML document?
It defines the document type and HTML version, helping ensure the document is parsed correctly.
Why is the 'alt' attribute important when using <img> tags?
The 'alt' attribute provides alternative text for accessibility, improving user experience for those with visual impairments.
What are the primary components of the CSS Syntax?
CSS Syntax consists of selectors and declarations made up of properties and values.
Why is learning HTML beneficial for professional careers?
It enhances resume and job prospects, and is useful for managing online presence for businesses.
How do transformations such as translate, rotate, scale, and skew affect web elements?
Transformations change the display of elements, affecting position, orientation, size, and shape for visual interest.
How does the CSS Box Model affect webpage layout?
It defines how elements are structured in terms of content, padding, border, and margin, influencing spacing and alignment.
What role does the <a> tag serve in HTML?
The <a> tag creates hyperlinks, allowing navigation between web pages.
Describe the function of the <p> tag in HTML.
The <p> tag is used to define paragraphs of text in a webpage.
How does the 'head' section differ from the 'body' section in an HTML document?
The 'head' contains metadata and title, while the 'body' contains content visible to users.
What is the purpose of CSS transitions?
Transitions allow for smooth state changes of elements on a webpage, enhancing visual effects.
Previous
Next