Skip to main content
Menu
CodeBabes
  • Create new account
  • Request new password

or

  • Sign in with Twitter
  • Code
  • Babes
  • Sign Up
  • Log In

Pass the QUIZ to the HTML Text Tags video

HTML Virgin Quiz

Study More
HTML Virgin

Which of the following is the correct syntax for a closing HTML tag.


<div>
<\h3>
<//span>
</div>

The following is the correct doctype tag for HTML5

<!DOCTYPE html>

Things inside the <head> tag are visible in the browser.

Which part of the html page do search results typically display, and shows up in your browser tabs?

Which html tag encloses only the visual elements of an HTML page?

Share the Love

  • Tweet

HTML Text Tags

Now that we've got the basics, let's talk about some more HTML tags. HTML gives you a bunch of tags for enclosing text. Let’s start with paragraphs. Look at this text in the editor, it is separated into two lines, but if you look at it in the browser it’s just a big blob. What we need is a second paragraph tag to give us what we’re looking for. Remember how paragraphs work from English class? Or were you too busy checking out the girl next to you?

You can also stick other tags inside. Let’s say you wanted these words to be italicized. Just add the <em> or emphasis tag. Bold? Add the <strong> tag. If you want a simple line break, use the <br> tag.

So we have a paragraph, let's give it a heading so people know what it’s about! There are six levels of headings you can use, h1, h2, h3, h4, h5, and h6.

The general rule is to use the h1 tag only once per page, and it needs to be a good summary for the content, or Google is gonna be like WTF. Web crawlers consider the h1 to be the most important text on a page. After the h1 is set you can add as many of the others as you want, but don't go crazy, no need to have a header orgy. They should be used in a cascading fashion, the h1 should come first, then h2, and then an h3.

But what about lists! Because really, the internet is just a giant list making machine. Ryan Gosling memes, hottest babes, star wars references, the list goes on. There are two types of list tags available in HTML. Unordered lists and ordered lists. Unordered lists are for shit where the order is not important, usually using bullet points, while ordered lists use numbered. They can be as long, or as short as you want. You create unordered lists with the <ul> tag and ordered lists with the <ol> tag. Then the elements of the list are enclosed in <li> tags. In case you didn’t guess, <li> stands for list item.

Let's open the webpage we started and make an unordered list. Just add the <ul> opening tag and closing tags, and then stick the <li> tags in between. We’ll do a list of my turn-ons, Star Wars, hairy backs, and mustaches. Looks great, now lets change it to an ordered list, now there are numbers, hope you like star wars. What if we want lists within lists, within lists, like a inception list, a list-ception? We can do that by just adding more <ul> and <li> elements within the parent <ul> tag.

Lists are also used all over the place for things like navigation menus, by placing links with in the <li> tag. We’ll talk about links in the next lesson, and I feel like another clothing item is going to fall off.

Questions or Comments?

Lessons

  • HTML Text Tags
  • HTML Links and Images
  • HTML Layout with HTML 5
  • HTML Tables
HTML Virgin

Downloads

SignUp & Subscribe

What the What?

Lessons: 41

Much more to come!

50/50 Entertainment and Education. Learning doesn't have to be boring :)

Our Philosophy

Contact

  • support
  • Tweets!
  • Youtube
  • Google Plus
  • Facebook

Stuff

  • Blog
  • Sign Up
  • All Babes
  • All Courses
  • Become a CodeBabe!
  • MAKE A LESSON WITH CODEBABES!

Recent Courses

Internet Virgin
SEO Virgin
HTML Virgin
CSS Virgin
Programming Virgin with Javascript

Learn to Code with Babes

Copyright © 2025 CodeBabes.com • Made with

  • Privacy Policy
  • Terms of Use
Close Menu
  • Blog

  • All Courses
  • Android Virgin
    • Android Studio Tour
    • App Layout in Android Studio
    • Java Variables, Java Data Types & Android Views
    • Java Event Handling in Android
    • Android Intents, OOP This, Variable Scope
    • Passing the Data with Android Intents & Finish
    • Complete the Android App with Launcher Icons & APK
    • Android Happy Ending
  • Internet Intro
    • Backend Development
    • Front End Web Development
    • Programming Tools you Need
    • Hosting and Domain Names
  • HTML Virgin
    • HTML Text Tags
    • HTML Links and Images
    • HTML Layout with HTML 5
    • HTML Tables
  • CSS Virgin
    • Where to Stick your CSS
    • CSS Properties, Sizes and Colors
    • CSS Selectors
    • CSS Box Model
  • Programming Virgin
    • Variables in Programming
    • Programming Intro Conditional Statements
    • Programming Intro to Arrays
    • Programming with Loops
    • Programming with Functions
  • PHP Virgin
    • PHP Variables
    • PHP Conditionals
    • PHP Arrays
    • PHP Loops
    • PHP Functions
  • SEO Virgin
    • Make Google Love You
    • Understanding Keyword SEO
    • Optimizing for SEO
    • Technical SEO