- Headings
- Paragraph
- Bold & italic & underline
In order to make code easier to read, web page authors often add extra spaces or start some elements on new lines. When the browser comes across two or more spaces next to each other, it only displays one space. Similarly if it comes across a line break, it treats that as a single space too. This is known as white space collapsing.
<br />As you have already seen, the browser will automatically show each new paragraph or heading on a new line. But if you wanted to add a line break inside the middle of a paragraph you can use the line break tag .<hr />To create a break between themes — such as a change of topic in a book or a new scene in a play — you can add a horizontal rule between sections using the hr tag.
The key to understanding how CSS works is to imagine that there is an invisible box around every HTML element.
A CSS rule contains two parts:
- a selector .
- a declaration .
CSS declarations sit inside curly brackets and each is made up of two parts:
- a property .
- a value .
why use ExternaL StyLe Sheets?
When building a website there are several advantages to placing your CSS rules in a separate style sheet.Sometimes you might consider placing CSS rules in the same page as your HTML code.
A script is a series of instructions that a computer can follow one-by-one. Each individual instruction or step is known as a statement.Statements should end with a semicolon
A script will have to temporarily store the bits of information it needs to do its job. It can store this data in variables
















