Skip to Content
Practical Web Design
book

Practical Web Design

by Philippe Hong
April 2018
Beginner content levelBeginner
368 pages
7h 37m
English
Packt Publishing
Content preview from Practical Web Design

Titles and paragraphs

To insert a title in HTML, there is a tag called <h1> that goes all the way to <h6>. The number is determined by the importance of the title.

Let's put an <h1> element into our <body>:

<html> <!--This is our HTML main tag--> <head> <!--This is our head tag where we put our title and script and all infos relative to our page.-->  <title>My Page Title</title> </head> <body> <!--This is where all our content will go-->  <h1>John Doe</h1> </body></html>

We now have our first title. Let's add a paragraph. To add a paragraph, we can use the HTML tag <p>:

<h1>John Doe</h1>  <p>I'm an amazing Designer</p>

You learned earlier that for each HTML tag, we have an opening <tagname> tag and a closing </tagname> tag. This is to basically ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Web Design Playground

Web Design Playground

Paul McFedries
Hello Web Design

Hello Web Design

Tracy Osborn
The Principles of Beautiful Web Design, 4th Edition

The Principles of Beautiful Web Design, 4th Edition

Jason Beaird, Alex Walker, James George

Publisher Resources

ISBN: 9781788395038Supplemental Content