עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

שאלה לגביי תגים של DIV

Featured Replies

פורסם

בוקר טוב.

בחודשים האחרונים אני יושב על אתרי אינטרנט ולומד להקים אתרים מ-0 ברמת הקוד.

כרגע אני נמצא בשלב שאני לומד תגיות HTML, ועברתי בין הייתר על אתר : CodeAcademy

ושם הוסבר באחד השלבים שמשתמשים בתג - <div>

על מנת להפריד בין חלקים בדף האינטרנט שאנחנו בונים,

ואז הם נתנו תרגיל - העניין הוא שעדיין לא הבנתי למה צריך להפריד חלקים בדף ? 

תמיד ידעתי שיש HEADER - יש BODY ויש FOOTER 

אז למה צריך את ה-DIV ?

האם צריך אותו ל-CSS ? 

או לדברים אחרים ?

 

ראו למשל את הקוד דוגמא שהם הביאו לי פה

 

<body>
  <h1>The Brown Bear</h1>
  <div>
  <h2>About Brown Bears</h2>
  <h3>Species</h3>
  <h3>Features</h3>
  </div>
  <div>
  <h2>Habitat</h2>
  <h3>Countries with Large Brown Bear Populations</h3>
  <h3>Countries with Small Brown Bear Populations</h3>
  </div>
  <div>
  <h2>Media</h2>
  </div>
</body>

 

 

כמו שאתם רואים - יש חלוקה דרך DIV - אבל אני לא מבין למה לכתוב תגיות סתם ?

מישהו יכול בבקשה להסביר לי ?

 

תודה מראש חברים

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.