HTML Basics
HTML Basics
Putting your content into an HTML tag to make it look like a paragraph is structure
Value
</html>
<!DOCTYPE>
The <!DOCTYPE> declaration represents the document type, and helps browsers to
display web pages correctly.
It must only appear once, at the top of the page (before any HTML
The head contains the title of the page & meta information about the page. Meta
information is not visible to the user, but has many purposes, like providing
information to search engines.
The body contains the actual content of the page. Everything that is contained in
the body is visible to the user. (Some Exceptions!)
Let's create our first HTML page
open a new file in your text editor and copy this code in it:
<!DOCTYPE html>
<html>
<head>
<title>Title of the page </title>
</head>
<body>
The page content here.
</body>
</html>
Nesting is what happens when you put tags inside other containing tags.
For example, you would put the <p> inside of the <body> tags. The <p> is now
nested inside the <body>
<body>
<p>The paragraph goes here.</p>
</body>
<h1> defines the most important heading. <h6> defines the least important
heading
This is heading 1
This is heading 2
This is heading 3
This is heading 4
This is heading 5
This is heading 6
Paragraphs
HTML paragraphs are defined with the <p> tag:
<p>
Here is another paragraph with <i>Italic</i> text and <b>Bold</b> text.
</p>
The source file (src), alternative text (alt), width, and height are
provided as attributes.
<img src="fsu-logo.jpg" alt="FSU Logo" width="104" height="142">
Relative vs. Absolute paths for links & Images
Relative paths change depending upon the page the link is on
- Typically used when pointing to a link that is not within your own domain.
- http://one.fsu.edu/alumni/image/community/clubs/FSU-Seal-full-color.jpg
Unordered list (bullets) <ul>
● List Item
<li>List Item</li>
<li>Another List Item</li>
● Another List Item </ul>
1. List Item
2. Another List Item
Lists are used everywhere and
can be customized to look as
you want
Tables are a way to represent <table>
complex information in a grid format. <tr>
<th>Head</th>
<th>Head</th>