Text tags and semantics
Tables and lists
CSS Units of Measurement
Connections, resources, and tools
Advanced Concepts and CSS
100

What is the key visual difference between the <b> and <i> elements?

<b> sets the text to bold, and <i> — to italics.

100

Which HTML tag is responsible for creating a separate row in a table structure?

The <tr> tag (Table Row).

100

To which category of measurement units does the value px (pixel) belong?

To absolute (fixed) units of measurement.

100

Which syntax in VS Code allows you to instantly expand the basic structure of an HTML5 document?

Typing an exclamation mark (!) and pressing Tab or Enter (Emmet plugin).

100

Which CSS property can be used to change an element's background color?

background-color

200

Why are the `<strong>` and `<em>` tags needed if they visually duplicate the effect of `<b>` and `<i>`?

To convey semantic meaning (importance and emphasis) to screen readers and search engines.

200

How does the table header element `<th>` differ by default from a standard cell `<td>`?

By default, text within a `<th>` element is center-aligned and displayed in bold.

200

Based on which element is the size calculated when using the relative unit `rem`?

From the page's root element <html> (Root em).

200

Without which attribute is the <a> tag unable to navigate to a web address?

The href attribute.

200

How do I correctly link an external style.css file to an HTML document?

Via the <link rel="stylesheet" href="style.css"> tag inside the <head> section.

300

How many heading levels are defined in the HTML specification, and which one is the smallest in size?

6 levels (from <h1> to <h6>), the smallest being <h6>.

300

What do the tag abbreviations <ul> and <ol> stand for?

<ul> — Unordered List (bulleted), <ol> — Ordered List (numbered).

300

If we change the font size for the entire site via the `<html>` element, which unit of measurement changes automatically: px or rem?

rem (since it depends on the size of the root <html> element, unlike fixed px).

300

What is the role of the `alt` attribute on the `<img>` element?

Displaying a text alternative if the image fails to load, and enabling screen readers to read the information.

300

What is the fundamental difference between the external 'margin' and the internal 'padding' (Box Model)?

`margin` sets the spacing outside an element's border, while `padding` sets the spacing inside the border, extending to its content.

400

What is the fundamental structural difference between the block-level element `<div>` and the inline element `<span>`?

A <div> occupies the full available width and starts on a new line, whereas a <span> styles a fragment within a line.

400

Which tag is required to wrap each individual item inside <ul> or <ol> containers?

tag <li> (List Item).

400

How does the `em` unit differ from `rem` — which element does it use to calculate the size?

`em` calculates its size based on its immediate parent element, while `rem` does so based on the root `<html>` element.

400

Which attribute and value need to be added to an <a> tag to make it open in a new tab?

target="_blank"

400

What element behavior does the CSS rule `box-sizing: border-box` cause?

Includes padding and border dimensions in the element's total width and height, preventing it from expanding.

500

Why is nesting a block-level `<div>` element inside a `<p>` paragraph container considered an HTML validation error?

The <p> element can contain only inline elements and cannot wrap block-level elements.

500

Which `<td>` cell attribute allows you to merge several adjacent columns horizontally?

The colspan attribute.

500

What is the main advantage of relative units (rem, em) compared to fixed-size pixels (px)?

They ensure layout adaptability and correct scaling when browser font settings are changed.

500

Why does the <img> tag belong to the category of empty (self-closing) elements?

It does not have a closing tag, as it does not contain any nested text or tag content.

500

You set `color: red;` on the parent element. Why didn't the text inside the `<a>` link turn red, but instead remained blue?

The browser applies its own default styles (User Agent Stylesheet) to links, which have a higher priority than general inheritance from the parent.