The style attribute can be used to style elements, in this example by making the font bold. Links also have attributes like where is the link pointing to or does it open in a new tab. Images are perhaps the easiest to understand, for example the width and height of an image are “attributes”. Each element also has properties unique to them called, “attributes”.
Each image you see is an “image element”. Each heading of text you see if a “heading element”. Each paragraph you see is a “paragraph element”. HTML is a system of elements enclosed in tags marked by the, and symbols. Javascript handles logic so the if then’s of web design and development. All this means is that when you want something to move, change, or react on a website javascript is normally the thing doing it. Javascript is a programming language for the web. Want to make some text BOLD, change the color of some text, or give something a background? CSS is the main way that is achieved today. What is CSS?ĬSS stands for cascading style sheets and this is how content in HTML is styled and designed. Virtually, every page you view in a browser today has it’s content structured in HTML.
HTML stands for Hyper-Text Markup Language and is how content is structured in code for a browser to display. There is overlap and interactivity in each but are their core those are their responsibilities. In a nutshell, html is the structure and content of your site, css is the styling and design, and javascript controls the interactivity on the page. What is the difference between HTML and JavaScript and CSS?
Interested in more technology concepts?.Why are they called cascading style sheets?.What is the difference between HTML and JavaScript and CSS?.