|
✶ HTML TIPS ✶
Flip through with the arrows
Set the Background
Give any page a solid background colour:
Colours are hex codes: #000080 is navy.
Make Things Move
Scroll text across the screen:
Add behavior="alternate" to bounce it back & forth.
Make a Link
Send visitors to another page:
Add target="_blank" to open it in a new tab.
Show a Picture
Drop an image onto the page:
Always add alt="..." to describe the picture.
Colour Your Text
Wrap words to change their colour:
Tip: type < and > to SHOW tags instead of running them.
Make a List
Stack items with bullet points:
Swap <ul> for <ol> to get numbers instead.
Draw a Line
Split sections with a horizontal rule:
width can be a percent or a pixel number.
Bold & Italic
Emphasise your words:
<b> makes bold, <i> makes italic.
Add a Heading
Title your sections, biggest to smallest:
Headings run <h1> down to <h6>.
Line Breaks
Start a fresh line anywhere:
<br> stands alone — no closing tag needed. Tip 1 of 10 |