HTML foundations Flashcards
Q.What are HTML and CSS used for?
A: HTML structures the content of a webpage, while CSS styles its visual appearance.
Q: How do you link a CSS file to an HTML document?
A: Using the <link></link> tag in the <head> section.
Example:
<link></link>
Q: What is an HTML element?
A: An HTML element consists of a start tag, content, and an end tag.
Q: Give an example of a self-closing HTML tag.
A: <img></img>, <br></br>, or <input></input>.
Q: What is an HTML boilerplate?
A: It’s the standard structure or template of an HTML document that includes the <!DOCTYPE html>, <html>, <head>, and <body> tags.
Q: What tag is used to define the main heading of an HTML document?
A: <h1>
Q: How do you make text bold and italic in HTML?
A: Use the <strong> or <b> tag for bold text and <em> or <i> for italic text.</i></em></b></strong>