From the course: D3.js Essential Training for Data Scientists

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Recalling CSS

Recalling CSS - D3.js Tutorial

From the course: D3.js Essential Training for Data Scientists

Start my 1-month free trial

Recalling CSS

- [Narrator] CSS stands for 'Cascading Style Sheets'. Style sheets contain the formatting, or styles, for HTML elements. Things like height, width, fill, or border. In the style sheet we define a circle as red or blue, or define a div as full width or half width. It makes quite a difference, as you can see. Cascading tells us that if we've defined two conflicting styles for the same element, the more specific definition will take precedence. CSS can appear in one of two locations. Either within the HTML document or as a separate .css document. This is called internal and external CSS respectively. Here we have internal CSS, with style tags within the head. The formatting's all here, tells our browser that div elements should be treated as block elements, and that they should sit as far to the left as they can. Now we have external CSS. The head tags contain links which pull in style.css to our web page. You can see style.css is now shown behind our HTML page on the left. So now our…

Contents