HTML and CSS Web Development Flashcards
6 cards from real Online Coding Lessons practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 6 HTML and CSS Web Development flashcards as text
How do you add an inline style to an HTML element?
Answer: Using the 'style' attribute directly on the element
Inline styles are added using the 'style' attribute directly on the HTML element, e.g., .
Which HTML element creates a line break?
Answer:
The tag inserts a line break in the HTML content without starting a new paragraph.
What CSS property controls the size of text?
Answer: font-size
The 'font-size' CSS property sets the size of text, which can be specified in pixels, ems, rems, or percentages.
Which HTML tag is used to insert an image on a web page?
Answer:
The tag is used to embed images in HTML, with the 'src' attribute specifying the image file path.
What does the CSS 'margin' property control?
Answer: Space outside an element
The 'margin' property controls the space outside an element's border, pushing it away from other elements.
Which HTML5 element is used to define a navigation menu?
Answer:
The element is a semantic HTML5 element specifically designed to wrap navigation link sections.