19
Prepared By Gusani Mayank

Html Fundamental/Basic tags

Embed Size (px)

DESCRIPTION

A detail of HTML basic Tags with cross platform compatibility. Basic Tags are used normally often for web Page creation.

Citation preview

Page 1: Html Fundamental/Basic tags

Prepared By Gusani Mayank

Page 2: Html Fundamental/Basic tags

HTML TagsHTML 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

Page 3: Html Fundamental/Basic tags

HTML 4.01 Basic Tag Reference

Page 4: Html Fundamental/Basic tags

HTML 4.01 Basic Tag Reference

Page 5: Html Fundamental/Basic tags

HTML <!DOCTYPE> DeclarationThe doctype declaration should be the very

first thing in an HTML document, before the <html> tag.

The doctype declaration is not an HTML tag; it is an instruction to the web browser about what version of the markup language the page is written in.

The doctype declaration refers to a Document Type Definition (DTD). The DTD specifies the rules for the markup language, so that the browsers render the content correctly.

Page 6: Html Fundamental/Basic tags

Example :

Page 7: Html Fundamental/Basic tags

HTML <html> TagThe <html> tag tells the browser that this is an HTML document. The html element is the outermost element in HTML.

Page 8: Html Fundamental/Basic tags

HTML <body> Tag

The body element defines the document's body.

The body element contains all the contents of an HTML document, such as text, hyperlinks, images, tables, lists, etc.

Page 9: Html Fundamental/Basic tags

Optional Attributes

Page 10: Html Fundamental/Basic tags

Standard Attributes

Page 11: Html Fundamental/Basic tags

HTML <h1> to <h6> TagsThe <h1> to <h6> tags are used to define

HTML headings.

<h1> defines the most important heading. <h6> defines the least important heading.

Page 12: Html Fundamental/Basic tags

Optional & Standard Attributes

Page 13: Html Fundamental/Basic tags

HTML <p> Tag

The <p> tag defines a paragraph.

The p element automatically creates some space before and after itself. The space is automatically applied by the browser, or you can specify it in a style sheet.

Page 14: Html Fundamental/Basic tags

Optional & Standard Attributes

Page 15: Html Fundamental/Basic tags

HTML <br> TagThe <br> tag inserts a single line break. The <br> tag is an empty tag which means

that it has no end tag.

Page 16: Html Fundamental/Basic tags

HTML <hr> Tag

The <hr> tag creates a horizontal line in an HTML page.

The hr element can be used to separate content in an HTML page.

Page 17: Html Fundamental/Basic tags

Optional & Standard Attributes

Page 18: Html Fundamental/Basic tags

HTML <!--...--> TagThe comment tag is used to insert a comment in the source code. A comment will be ignored by the browser. You can use comments to explain your code, which can help you when you edit the source code at a later date.You can also store program-specific information inside comments. In this case they will not be visible for the user, but they are still available to the program. A good practice is to comment the text inside scripts and style elements to prevent older browsers, that do not support scripting or styles, from showing it as plain text.The comment tag does not support any standard attributes.

Page 19: Html Fundamental/Basic tags

End Of HTML Tour