Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

HTML "a" hyperlink TAG

HTML <a> Tag:


Definition and Usage

The <a> tag defines a hyperlink, which is used to link from one page to another.
The most important attribute of the <a> element is the href attribute, which indicates the link's destination.
By default, links will appear as follows in all browsers:
  • An unvisited link is underlined and blue
  • A visited link is underlined and purple
  • An active link is underlined and red

Example

A link to visit seektutorials.blogspot.com:
<a href="http://seektutorials.blogspot.com">
 seektutorials.blogspot.com!
</a>

HTML ITALIC & EMPHASIZE TAGS


Html Italic & emphasize tags:

Italic (<i>)is a physical tag while emphasize(<em>) is structural tag.
<i> Defines as a italic tag and <em>Defines as a emphasize tag and both tags work similarly.


Example Italic Tag:

<p>Html italic<i> Tag.</p>

<p>My name is<i>Zeeshan Ahmad</i></p>

Example Emphasize Tag:

<p>Html Emphasize(<em>) tag.</p>

<p>My name is<em>Zeeshan Ahmad</em></p>

HTML BOLD AND STRONG FORMATTING

HTML Bold and Strong Formatting:


The HTML <b> element defines bold text, without any extra importance.
The HTML <strong> element defines strong text, and strong tag works similar to <b>.

Example Bold:

<p>Normal text.</p>

<p><b>Html bold tag</b>.</p>

Example Strong:

<p>Normal text.</p>

<p><b>Html strong tag</b>.</p>

HTML TEXT FORMATTING ELEMENT

HTML Text Formatting Elements:

Html text formatting elements are defined as:
Tag
Description
<b>Defines bold text
<em>Defines emphasized text 
<i>Defines italic text
<small>Defines smaller text
<strong>Defines important text
<sub>Defines subscripted text
<sup>Defines superscripted text
<ins>Defines inserted text
<del>Defines deleted text
<mark>Defines marked/highlighted text

HTML BREAK TAG

HTML <br> Tag:

<br> tag defined as a "line break" tag .
The <br> tag inserts a single line break. 
The <br> tag is an empty tag which means that it has no end tag.

The <br/> Tag in HTML 5:

The break tag (<br/>) is used to force a line break in HTML code. It is one of the inline tags used to group and separate content in HTML

Example

<p>The explanation of "line break tag":</p>
<p>
My Bonnie lies over the ocean.<br>
My Bonnie lies over the sea.<br>
My Bonnie lies over the ocean.<br>
Oh, bring back my Bonnie to me.
</p>



HTML PARAGRAPH TAG

HTML Paragraphs:

The HTML <p> element defines a paragraph.

HTML paragraph tags are used to define the HTML paragraph element. The paragraph element begins with the HTML <p> tag and ends with the HTML </p> tag. The HTML paragraph element should not contain tables and other block elements. A sample is shown below.

Example:


<p>My paragraph</p>
<p>This is a paragraph</p>

HTML Display:

You cannot be sure how HTML will be displayed.
Large or small screens, and resized windows will create different results.
With HTML, you cannot change the output by adding extra spaces or extra lines in your HTML code.
The browser will remove extra spaces and extra lines when the page is displayed.

Any number of spaces, and any number of new lines, count as only one space.

Example:

<p>This poem will display as one line:</p>
<p>
  My Bonnie lies over the ocean.

  My Bonnie lies over the sea.

  My Bonnie lies over the ocean.

  Oh, bring back my Bonnie to me.
</p>

HTML HEADINGS

HTML Headings

HTML headings are defined with the <h1> to <h6> tags:
1: <h1>Content</h1>
1: <h2>Content</h2>
1: <h3>Content</h3>
1: <h4>Content</h4>
1: <h5>Content</h5>
1: <h6>Content</h6>

Example

<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>


INTRODUCTION TO HTML

INTRODUCTION HTML(5)

HTML
With HTML you can create your own Web site.
This tutorial teaches you everything about HTML.
HTML is easy to learn - You will enjoy it.






What is HTML?

HTML is a markup language for describing web documents (web pages).
  • HTML stands for Hyper Text Markup Language
  • A markup language is a set of markup tags
  • HTML documents are described by HTML tags
  • Each HTML tag describes different document content

HTML Tags:

HTML tags are keywords (tag names) surrounded by angle brackets:
<tagname>content</tagname>
  • HTML tags normally come in pairs like <p> and </p>
  • The first tag in a pair is the start tag, the second tag is the end tag
  • The end tag is written like the start tag, but with a slash before the tag name

A small HTML document:

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>

<h1>First Heading</h1>
<p>My Name is Zeeshan.</p>

</body>
</html>