HTML and CSS Tips for Beginners

3 HTML and CSS Tips

The br tag

The <br> tag inserts a single line break and is useful for writing addresses or poems.

The <br> tag is an empty tag which means that it has no end tag . It looks like this:

				
					
<br>
				
			

A really long title that goes on forever

A really long title
that goes on forever

				
					<!-- Example of br tag -->
A really long title<br>than goes on forever
				
			

Using the Heading widget, place the <br> tag between the words you want to break to the next line.

The span tag

The <span> tag can be used to color words or letters of text. 

				
					<!-- The span tag has a closing tag to end formatting -->
<span> </span>
				
			

A little more CSS code needs to be added inside of the opening <span> tag

				
					<!-- Replace the word green for your favorite #hex code-->
<span style="color:green;"> </span>
				
			

A really long green title
that goes forever

				
					<!-- Example of span inline style of green -->
A really long <span style="color:green;">green</span> title <br> that goes forever.