AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP, SQL
HTML Tutorial

HTML Tags Attributes


<< Previous Page
HTML Elements
Next Page >>
HTML Text and Paragrafs

HTML Tutorial » HTML Tags Attributes

A browser reads everything you write in the HTML document.
Each time he finds a tag, he will treat it as such and render it, such as a paragraph, a title, a table, or whatever.
The tags have three parts as I said before the opening, the content and the closing.

As you can learn, there are hundreds of HTML tags. Absolutely all the elements that will be played by a browser need a tag or two.
<opening tag>Continut</closing tag>

HTML Attributes

Tags in HTML - examples


Tags are written in lowercase letters. This is the standard for writing in XHTML and Dynamic HTML.
In the following example we show you some of the tags.
- headings <h1>, <h2>, <h3> ...
- paragraph <p>
- bold <strong>
- italic <em>
- create hyperlinks <a>
- create lists <ul> & <ol>
- defines a section within an HTML page <div>

Example:

<!DOCTYPE html>
<html>
<head>
<title> Information on the content of the pages. My first web page!</title>
</head>

<body>
<h1> Information on the content of the pages. My first web page!</h1>
<p> Here we have a Paragraph</p> <br />
<strong> Here we have a strong Paragraph </strong> <br />
<em> Here we have an italic Paragraph </em> <br />
<a href="https://www.agernic.com/html-tutorial.html">Visit our HTML tutorial</a> <br />
<ul>
<!-- <ul> tag -->
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
<ol>
<!-- <ol> tag -->
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
</body>
</html>

Note: Exceptions - Tags that do not need closing:
<img src="/assets_tutorials/img/image.jpg" /> -- Image Tag --
<br /> -- Line Break Tag --
<input type="text" size="12" /> -- Input Field --
<hr>


Attributes in HTML - examples


In the following example we show you some of Attributes.
The href Attribute
The src Attribute
The width and height Attributes
The alt Attribute
The style Attribute

Example2:

<!DOCTYPE html>
<html>
<head>
<title> Information on the content of the pages. My first web page!</title>
</head>

<body>
<a href="https://www.agernic.com">This is a link</a> <br />
<img src="img_html.jpg"> <br />
<img src="img_html.jpg" width="400" height="300"><br />
<img src="img_html.jpg" alt="agernic html"><br />
<a href="https://www.agernic.com/html-tutorial.html">Visit our HTML tutorial</a> <br />
</body>
</html>



<< Previous Page
HTML Elements
Next Page >>
HTML Text and Paragrafs




HTML Tutorial - Tags and attributes - html tutorial

Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


HTML Img Background
HTML Image Link
HTML Image Size
HTML Text Style
HTML Text Align
HTML Text Size
HTML Text Color Style
HTML Text Color
HTML Table Color
HTML Table Row Colspan
HTML Table Width
HTML Table Style
HTML Table Border
HTML Table
HTML Font Face
HTML Font Size
HTML Font Color
HTML Headings
HTML div border color
HTML div class
HTML class container
HTML form action
HTML comment
HTML link new tab
HTML link underline
HTML link tag
HTML button action
HTML button onclick
HTML button link
HTML table style
HTML image
HTML colors
HTML div style
Text, paragraf in HTML
HTML Tags Attributes
HTML - Elements
HTML Introduction
Home HTML Tutorial
Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.