HTML Elements

An HTML element is everything from the start tag to the end tag:
Start tag * Element content End tag *
<p>     This is a paragraph            </p>
<a href="default.htm" >      This is a link            </a>
<br />

* The start tag is often called the opening tag. The end tag is often called the closing tag.

Related Tags
 Website Tips and tricks Website Marketing Website HTML coding Search Engine Optimization Free SEO ToolsWebmaster

HTML Element Syntax

  • An HTML element starts with a start tag / opening tag 
  • An HTML element ends with an end tag / closing tag
  • The element content is everything between the start and the end tag
  • Some HTML elements have empty content
  • Empty elements are closed in the start tag
  • Most HTML elements can have attributes
Tip: You will learn about attributes in the next chapter of this tutorial.

Nested HTML Elements

Most HTML elements can be nested (can contain other HTML elements).
HTML documents consist of nested HTML elements.

HTML Document Example

<html>


<body>
<p>This is my first paragraph.</p>
</body>


</html>
The example above contains 3 HTML elements.

HTML Example Explained

The <p> element:
<p>This is my first paragraph.</p>
The <p> element defines a paragraph in the HTML document.
The element has a start tag <p> and an end tag </p>.
The element content is: This is my first paragraph.
The <body> element:
<body>
<p>This is my first paragraph.</p>
</body>
The <body> element defines the body of the HTML document.
The element has a start tag <body> and an end tag </body>.
The element content is another HTML element (a p element).
The <html> element:
<html>


<body>
<p>This is my first paragraph.</p>
</body>


</html>
The <html> element defines the whole HTML document.
The element has a start tag <html> and an end tag </html>.
The element content is another HTML element (the body element).

Don't Forget the End Tag

Some HTML elements might display correctly even if you forget the end tag:
<p>This is a paragraph
<p>This is a paragraph
The example above works in most browsers, because the closing tag is considered optional.
Never rely on this. Many HTML elements will produce unexpected results and/or errors if you forget the end tag .

Empty HTML Elements

HTML elements with no content are called empty elements.
<br> is an empty element without a closing tag (the <br> tag defines a line break).
Tip: In XHTML, all elements must be closed. Adding a slash inside the start tag, like <br />, is the proper way of closing empty elements in XHTML (and XML).

HTML Tip: Use Lowercase Tags

HTML tags are not case sensitive: <P> means the same as <p>. Many web sites use uppercase HTML tags.
Web School use lowercase tags because the World Wide Web Consortium (W3C) recommends lowercase in HTML 4, and demands lowercase tags in XHTML.



Partner site : online news

How to Fix 3 Top Android Annoyances?


T
here are many reasons why people choose to use Android powered smartphones. People love the flexibility and options these devices offer – and that is even before you start to tweak your phone and add applications.

That being said, while Android phones are awesome, they are not perfect by any means. Like almost any technological device or gadget on the market, these have some flaws. There are certain Android errors, design flaws, bugs and other annoyances that almost all Android users can ultimately relate to. The following are just three of the top annoyances you battle with your Android, as well as some fixes.

Problems sending and receiving text messages

This can happen with any phone. Sometimes it’s the phones fault, and other times it is the service provider’s fault. Whoever’s fault it is, not receiving texts promptly can be a seriously big problem, and if you have every experienced this, you know that it can be pull out your hair annoying!
The most annoying part is that it is often caused by applications you downloaded to fix other annoying problems. A common culprit for catching up text messages are “task killer” applications, especially if you use another text messaging application sending out SMS messages.
Task killers can help to shut down bloatware that is wearing down your battery life, but it can mess with too many other elements on your phone, possibly shutting down things that you want or need, like your SMS messages. That being said, if bloatware is that big of a problem, just delete it… or carry a charger around with you everywhere.

Inability to remove certain apps

It is your phone, so you should be able to uninstall any apps that you no longer want or need, right? WRONG!
You are an Android user, so you probably had the annoyance of trying to eliminate an unnecessary app only to find out that the darn thing just won’t go away. These unwanted apps take up space and drain battery life, but it just seems that no matter what you do, you can’t wipe them from your phone.
If you are running a newer version of Android, you may not be able to delete these unwanted apps, but you can move them. From your Settings Menu, select applications and sort them by size. Select the unwanted application that takes up the most space and move it to your SD card. You won’t be able to use the app, but much of the space it has been hogging is suddenly freed up.
Finally, you could always root your phone which will give you even more control over your device. If you have done this, you can select a firmware that will allow you to delete any applications, and then you can get rid of those annoying unwanted apps.

The battery keeps dying

With a mobile device, such as an Android powered smartphone, you bought it with the intention of using it on the go. It is a take anywhere device, which means that you need the battery to stay good and powered up in order to actually be able to use your phone.
If your batter can’t make it throughout the day though, it gets pretty darn annoying pretty fast! You don’t have to live with this pesky problem, however; there are plenty of fixes.
Tweaking your settings is good place to start. As with your laptop, you can optimize your settings to conserve battery life. This means that you may want to turn off features like GPS and Bluetooth when they are not necessary. Tweaking when and how long the display turns on is just one of the many other things you should look at when optimizing your phone for max battery life.
If tweaking all your settings seems like a lot of work, you could take the easy way out. There are applications you can get like Locale or Tasker that will automate many phone functions so that your Android’s battery is better for longer.


Partner site : online news