HTML Codes
HTML is the standard markup language for
Web pages.
HTML is the standard markup language for Web pages.
• The <!DOCTYPE html> declaration defines that this
document is an HTML5 document
• The <html> element is the root element of an HTML page
• The <head> element contains meta information about the
HTML page
• The <title> element specifies a title for the HTML page
(which is shown in the browser's title bar or in the page's
tab)
• The <body> element defines the document's body, and is a
container for all the visible
Fonts
In HTML we can change the fonts appearance by
using the <font> tags.
<font style = “arial”>
<font size = “5”> “1” to “7”
<font color = “red”> “ “tomato” “#ff0000”
Background
There are two ways to change the background of the
HTML file. First is using a picture file in <style> second is
background color in <body>.
<style>
body {
background-image: url("[Link]");
}
</style>
<body bgcolor = "#000000">
Hyperlink
The HTML <a> tag defines a hyperlink. It has the following
syntax:
<a href = “[Link]"> Homepage </a>
The most important attribute of the <a> element is
the href attribute, which indicates the link's destination.
The link text is the part that will be visible to the reader.
Clicking on the link text, will send the reader to the specified
URL address.
Tables
A table in HTML consists of table cells inside rows and columns.
Each table cell is defined by a <td> and a </td> tag.
Everything between <td> and </td> are the content of the table cell.
Each table row starts with a <tr> and ends with a </tr> tag.
Sometimes you want your cells to be table header cells. In those cases use the <th> tag instead of
the <td> tag:
<table>
<tr>
<th>Company</th>
<th>Contact</th>
<th>Country</th>
</tr>
<tr>
<td>Alfreds Futterkiste</td>
<td>Maria Anders</td>
<td>Germany</td>
</tr>
</table>