inPace
All coursesكل الدورات

HTML & CSS: enough to read and build inPace's pages

  • about 8 h of lessonsحوالي 8 ساعة من الدروس
  • 7 modulesوحدات · 20 lessonsدروس
  • Englishالإنجليزية

A one-week course on modern HTML and CSS, using inPace's own pages as the example: semantic markup, forms, the cascade, Flexbox and Grid, responsive and right-to-left layout, themes with custom properties, accessibility and performance. Interview questions every day. Plan: 7 days, about 1.5 hours a day.

byمن إعداد inPace checkedموثّق

htmlcsswebfrontendinterview

On these roadmaps:ضمن هذه المسارات: Front-end web developer, مطوّر واجهات ويب, Build inPace yourself

What's insideمحتوى الدورة

Each module ends with tasks. The next module opens when they're done.تنتهي كل وحدة بمهام، وتُفتح الوحدة التالية عند إنجازها.

  1. Day 1: How a page gets to the screen 3 lessonsدروس · 55 min د
    • Start here10 min د
    • From bytes to pixels25 min د
    • The skeleton of a document20 min د
    Practical taskمهمة عمليةExplain in your wordsاشرح بكلماتكQuizاختبار · 4 questionsأسئلة
  2. Day 2: Semantic HTML and forms 3 lessonsدروس · 70 min د
    • Meaningful elements25 min د
    • Forms that work without JavaScript30 min د
    • Images, media and icons15 min د
    Practical taskمهمة عمليةExplain in your wordsاشرح بكلماتكQuizاختبار · 4 questionsأسئلة
  3. Day 3: The cascade, specificity and the box model 3 lessonsدروس · 70 min د
    • Which rule wins25 min د
    • The box model and units25 min د
    • Positioning and stacking20 min د
    Practical taskمهمة عمليةExplain in your wordsاشرح بكلماتكQuizاختبار · 4 questionsأسئلة
  4. Day 4: Flexbox and Grid 3 lessonsدروس · 60 min د
    • Flexbox: one direction25 min د
    • Grid: two directions25 min د
    • Centering, finally10 min د
    Practical taskمهمة عمليةExplain in your wordsاشرح بكلماتكQuizاختبار · 4 questionsأسئلة
  5. Day 5: Responsive design, logical properties and RTL 3 lessonsدروس · 60 min د
    • Mobile first20 min د
    • Logical properties20 min د
    • Right to left done properly20 min د
    Practical taskمهمة عمليةExplain in your wordsاشرح بكلماتكQuizاختبار · 4 questionsأسئلة
  6. Day 6: Themes with custom properties, and accessibility 2 lessonsدروس · 55 min د
    • Custom properties and themes25 min د
    • Accessibility basics that interviewers ask about30 min د
    Practical taskمهمة عمليةExplain in your wordsاشرح بكلماتكQuizاختبار · 4 questionsأسئلة
  7. Day 7: Performance and interview drill 3 lessonsدروس · 80 min د
    • Fast pages25 min د
    • Interview drill: 15 questions35 min د
    • A take-home task, the way companies set it20 min د
    Practical taskمهمة عمليةExplain in your wordsاشرح بكلماتكQuizاختبار · 4 questionsأسئلة

Read a lesson firstاقرأ درسًا أولًا

From bytes to pixels

When the browser gets HTML, it runs the critical rendering path:

flowchart LR
    A[HTML bytes] --> B[DOM tree]
    C[CSS bytes] --> D[CSSOM]
    B --> E[Render tree]
    D --> E
    E --> F[Layout: sizes and positions]
    F --> G[Paint: pixels in layers]
    G --> H[Composite: layers on screen]
  • DOM: the tree of elements built from HTML.
  • CSSOM: the tree of style rules.
  • Render tree: only what is visible (display: none is not in it).
  • Layout (also called reflow): works out boxes. Expensive when big parts of the page change.
  • Paint and composite: fills pixels; transform and opacity changes can often skip layout and paint, which is why smooth animations use them.

What blocks rendering

  • CSS in <head> is render-blocking: the browser waits for it, so the page doesn't flash unstyled.
  • A plain <script> is parser-blocking: HTML parsing stops until it downloads and runs.
  • <script defer> downloads in parallel and runs after parsing, in order. async runs as soon as it arrives, in any order.

inPace loads style.css in the head (with ?v=27 so a new version isn't served from cache) and puts app.js at the end of <body>, which has the same effect as defer: the page is parsed before the script runs.

Interview drill

"What happens when you type a URL and press Enter?"

DNS lookup, TCP and TLS handshake, HTTP request, response, then the rendering path above. Mention caching (Cache-Control), and that each extra CSS or JS file can delay the first paint.

Licenseالرخصة: CC-BY-4.0 · Updatedآخر تحديث 2026-11-13

Add to inPaceأضف إلى inPace