Extra Practice & Common Concepts Flashcards
(16 cards)
What is nesting in HTML?
Placing one element inside another, e.g, <p><strong>text</strong></p>.
What is semantic HTML?
HTML that uses tags to convey meaning, like <article>, <header>, <footer>.
What is the difference between block & inline elements?
Block elements start on a new line; Inline elements do not.
Is HTML case-sensitive?
HTML tags are not case-sensitive, but lowecase is recommended for HTML5.
What does <meta></meta> do?
Specifies the character encoding as UTF-8, supporting most characters.
What tag links an external CSS file?
<link rel=”stylesheet” href=”style.css> in the <head> section.
How do you add script in HTML?
Use
or...
Where should scripts ideally be placed?
At the end of the <body> for better page loading performance.
What tag is used to group content in a block?
<div> is a generic block-level container.
</div>
What tag is used to group inline elements?
<span> is a generic inline container.</span>
Can HTMl be used without CSS & JavaScript?
Yes, but the page will lack styling & interactivity.
What is the purpose of the <base></base> tag in <head>?
Sets a base URL for relative links in the document.
How do you add a favicon to a webpage?
Use <link></link> in <head>.
What is white space in HTML?
Spaces, tabs, & line breaks that are ignored unless inside <pre>.
What is the lang attribute’s effect on accessibility?
It helps screen readers & search engines interpret the language properly.
What happens if you put HTMl elements in the wrong order?
It can cause rendering issues & unexpected layout problems.