<html> tells the Web browser that this is the beginning of an HTML document and the </html> tag tells the browser that the HTML file is finished. The tags with slash "/" respresent a closing tag.
Within <HTML>, the document has two sections to it: <HEAD> AND <BODY>
Tags in the Head Section
<head>...</head>
The <head> and </head> tags defines that part of the document containing information about the page.
The following tags can be added to the head section: <base>, <link>, <meta>, <script>, <style>, and <title>
<base>
The <base> tag specifies a default address or a default target for all links on a page.
<title>...</title>
The title of a webpage appears in your browser´s title bar when you view the page.
Example: <title> My first web page </title>
Structure in the head section of your HTML file:
<html>
<head>
<title>...<\title>
<\head>
Body Section
<\html>
Tags in the Body Section
<body>...</body>
The tag usually comes immediately after the tag that ended your HEAD section. The tag comes before the tag at the end of the document.
<hx>...<\hx>
These tags are used to create headings. There are six different sizes with <h1>
being the largest and <h6>being the smallest.
<h1>heading</h1> : creates heading level #1 (24 point type—largest)
<h2>heading</h2> : creates heading level #2 (18 point type)
<h3>heading</h3> : creates heading level #3 (14 point type)<h4>heading</h4> : creates heading level #4 (12 point type)
<h5>heading</h5> : creates heading level #5 (10 point type)
<h6>heading</h6> : creates heading level #6 (8 point type—smallest)
A line space automatically is inserted before and after a heading (that is, an entire line is skipped between a heading and any text before and after it).
<p>
<br>
This tag represents a line break. It also does not have a closing tag.
<hr>
This the horizontal rule tag. It instructs the browser to insert a paragraph break into the content with a line separating the paragraphs. The browser will automatically adjust the line to fill the width of the display window.
<i> ...</i>The text between these tags will be in italics. The <em>...</em> tag will also make the text look italic.
<b> ...</b>
The text between these tags will be bold. The <strong>...</strong> tag usually does the same thing.
No comments:
Post a Comment