HTML Website Code
HTML is the code that is behide the stucture of your website. HTML stands for Hyper Text Markup Language.
You can write HTML code in Notepad or any text editor as HTML is a text document
You can get by as an internet marketer without learning HTML by using a blog, which doesn't require you to know HTML code, or by having someone else do the things that require HTML code for you, like building a website but I highly recommend you learn at least the basics of HTML as there will be times when it will be very helpful to know it.
HTML is like most things, it looks impossible at first and then when you spend some time learning it you will find out that it is really very easy to learn. So in my view HTML is a must to learn !
What is HTML?
HTML is a language for describing web pages.
- HTML stands for Hyper Text Markup Language
- HTML is not a programming language, it is a markup language
- A markup language is a set of markup tags
- HTML uses markup tags to describe web pages
HTML Tags
HTML markup tags are usually called HTML tags
- HTML tags are keywords surrounded by angle brackets like <html>
- HTML tags normally come in pairs like <b> and </b>
- The first tag in a pair is the start tag, the second tag is the end tag
- Start and end tags are also called opening tags and closing tags
HTML Documents = Web Pages
- HTML documents describe web pages
- HTML documents contain HTML tags and plain text
- HTML documents are also called web pages
The purpose of a web browser is to read HTML documents and display them as web pages. The browser does not display the HTML tags, but uses the tags to interpret the content of the page:
<html><body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Example Explained
- The text between <html> and </html> describes the web page
- The text between <body> and </body> is the visible page content
- The text between <h1> and </h1> is displayed as a heading
- The text between <p> and </p> is displayed as a paragraph
HTML ELEMENTS
An HTML element is everything from the start tag to the end tag.
HTML Element Syntax
- An HTML element starts with a start tag / opening tag
- An HTML element ends with an end tag / closing tag
- The element content is everything between the start and the end tag
- Some HTML elements have empty content
- Empty elements are closed in the start tag
- Most HTML elements can have attributes
HTML Attributes
Attributes provide additional information about HTML elements.
HTML elements can have attributes
- Attributes provide additional information about an element
- Attributes are always specified in the start tag
- Attributes come in name/value pairs like: name="value"
TEXT AND FONT TAGS
New Paragraph: <p> Starts a new paragraph and creates a blank line between your new paragraph and the one above it.
The closing tag is </p>,.
Line Break: <br> This will break your text to the next line. Two <br> tags is equivalent to one <p> tag.
Bold: <b>
Closing tag is </b>
Underline: <u>
The closing tag is </u>
Italics: <i>
The closing tag is </i>
Centering text: <center>
The closing tag is </center>
Left aligning text: <p align="left">
</p> is the closing tag
Right aligning text: <p align="right">
The closing tag is </p>
Change text color: <font color="red">
The ending for any font tag is </font>
Changing font face: <font face="Arial">
Change font size: <font size="3"> Font size values are between 1 and 7
