Закрыть
×
=0) { let js = text.slice(pos1, pos2); + '<\/' + "script" + '>'; arrText.push(js); // next pos1 = pos2; continue; } } } break; } return arrText; } function OpenDialog(parentDiv, urlContent) { parentDiv = document.getElementById('modal-background'); // new !!!!!!! parentDiv.appendChild(document.getElementById('modal-template')); document.getElementById('modal-background').style.display = "flex"; // !!!!! block document.getElementById('modal-template').style.display = "flex"; // !!!!! document.getElementById('modal-body').innerHTML = ""; post_url(urlContent, "", function(text_from_server) { var element = document.getElementById('modal-body'); element.innerHTML = text_from_server; // add scripts var arrJSText = get_scripts(text_from_server); for (var i=0; i
dir.by
Праздники ...
Праздники ...
День Октябрьской революции (7 Ноября)
Концерты, выставки ...
Концерты, выставки ...
Спектакль "Особо опасные пенсионеры"|||г. Минск 6 сентября, 21 октября, 17 ноября 2026
Афишу
Спорт занятия ...
Спорт занятия ...
Настольный теннис
Спорт занятие
Компьютер, программы...
Компьютер, программы...
Объявления ...
Объявления ...
Штанишки рост 74
Объявление
Новости ...
Новости ...
Форум ...
Форум ...
обсуждение...
Поиск
Концерты
Спорт
Форум
Компьютер
Компьютер, программы
→
Html & CSS
Correct layout HTML Pages
посмотрели
7446
раз
обновлено: 15 November 2018
Tabular layout
Tabular layout - the page contains <table>
Block layout
Block layout - the page contains <div>
Note!
Bad to use (tabular message) <table>
Need to use (block message) <div>
Block layout is better indexed by search engines
The essence of block layout
In the graphic editor, a layout of the site is created: it is marked where which area of the page (header, bottom, sidebar, main content) will be located and how much space to occupy, pictures and backgrounds are prepared.
Each part of the page is placed in its own block <div>
the first block contains the top of the site
the second block contains a menu
the third block contains content
and so on.
Each block is filled with contents HTML, as well as positioned and formatted using markup CSS.
HTML a page is a set of blocks <div> with content inside. The design is often in a separate file CSS.
Principles of block layout
The content needs to be separated from the design.
HTML — separate file
CSS — separate file
This approach makes the structure clearer. The programmer does not need to open the file CSS.
The designer does not need to open the file HTML.
Everyone writes their own code and does not interfere with each other.
← Previous topic
How to make your website fit in size on your phone, tablet? (HTML meta with attribute name="viewport")
Next topic →
What is Adaptive design? What is responsive design?
Your feedback ... Comments ...
Your Name
Your comment
(www links can only be added by a logged-in user)
+ Picture
Объявления
Объявления
HTML elements
•
HTML tag <a> link to go to another page
•
HTML tag <abbr> shows an abbreviated name, if you let the mouse down there will be a pop-up inscription
•
HTML tags fieldset and legend. This is a frame with a title
•
HTML tag <!-- --> comment
•
style="border" in the HTML
<BR>
HTML search for an element, elements
•
document.querySelector(...) is a JavaScript method for finding an element from document (i.e. in all HTML)
•
yourElement.querySelectorAll(...) is a JavaScript method for finding elements inside another HTML element
<BR>
HTML svg (vector graphics for drawing lines, rectangles, ellipses, ...)
•
<svg> vector graphics, drawing a line<line>, rectangle <rect>, circle<circle>, text<text>
<BR>
HTML canvas (drawing pictures, text, shapes)
•
HTML <canvas> drawing a rectangle
•
HTML drawing <canvas> lines by clicking on the Canvas
•
HTML <canvas> we draw pictures
•
HTML <canvas> we draw a picture with a rotation
•
HTML <canvas> draw a picture with horizontal reflection
•
HTML <canvas> we draw a picture and text
•
HTML <canvas> draw a picture many times in a rectangle (template)
•
HTML <canvas> how to get mouse coordinates ? Determine the position of the mouse.
•
HTML <canvas> drawing a snake with lines moveTo, lineTo
CSS
•
CSS description
•
After modifying the file css , the browser displays old styles over and over again. Why?
•
Books to study CSS
CSS flex (the element can stretch or shrink and thus fill the free space)
•
What is CSS flex
Freeze
•
The header in the table is always visible when scrolling | freeze header in table | HTML
•
Div is always visible when scrolling (position:fixed, position:sticky) | freeze div | HTML
Do Popup using HTML and Javascript
•
How to make a Popup window in a HTML page | Javascript, HTML, CSS
Motion and animation of pictures
•
Animation of the little man on the spot. For <div>animation, we use CSS styles: "animation", "background-image", "background-position", "keyframes"
•
Animation of a man in motion (sprite). For <div><img>animation we use CSS styles: "animation", "background-image", "background-position", "keyframes"
•
Draw a picture with movement. Use the HTML element<canvas>. Use JavaScript for movement: var img = new Image(), img.src = url, drawImage, timer, window.setInterval
•
Drawing a picture with movement and animation (sprite). Use the HTML element <canvas>. Use JavaScript for movement: var img = new Image(), img.src = url, drawImage, timer, window.setInterval
Web page on the phone
•
I open a web page on my phone in Google Chrome. Why does double-clicking increase the page size?
Layout, page design
•
What the Front-end development?
•
How to Identify a Device (Tablet, Computer, Phone) Currently Used in JavaScript, HTML
•
How to make your site work on a phone, tablet, computer using css media and max-device-width and min-device-width | HTML | CSS
•
How to make your website fit in size on your phone, tablet? (HTML meta with attribute name="viewport")
•
Correct layout HTML. Bad to use table. You need to use div
•
What is Adaptive design? What is responsive design?
•
Change the color of the scrollbar for the HTML page. Using CSS
WWW sites for learning
•
Sites to explore HTML
Ваши вопросы присылайте по почте:
info@dir.by