Malioglasnik.com.hr

[ New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
Forum » Web Design » Html » HTML - Tags
HTML - Tags
BassoDate: Thursday, 2010-12-09, 12:43 PM | Message # 1
Group: Moderator
Messages: 1637
Awards: 2
Reputation: 695
Status: Offline

Beginning HTML Tags!

A web browser reads an HTML document top to bottom, left to right. Each time the browser finds a tag, it is displayed accordingly (paragraphs look like paragraphs, tables look like tables, etc). Tags have 3 major parts: opening tag(s), content(s), and closing tag(s). Recall that a completed tag is termed an element. By adding tags to an HTML document, you signal to the browser "Hey look, I'm a paragraph tag, now treat me as such."

As you will learn, there are probably hundreds of HTML Tags. Tables, images, lists, forms, and everything else being displayed on an web page requires the use of a tag or two.

HTML Code:

Code
<openingtag>Content</closingtag>

A Paragraph Tag</p>

Tags should be lower-case letters if you plan on publishing your work. This is the standard for XHTML and Dynamic HTML. Here's quick look at some HTML tags.

HTML Tags:

Code
<body>Body Tag (acts as a content shell)
Paragraph Tag</p>
<h2>Heading Tag</h2>
<b>Bold Tag</b>
<i>Italic Tag</i>
</body>
 
If you have a problem about Intellectual property rights violation,

Please Contact Us we remove all content within 24 hours.



BassoDate: Thursday, 2010-12-09, 12:46 PM | Message # 2
Group: Moderator
Messages: 1637
Awards: 2
Reputation: 695
Status: Offline

Tags Without Closing Tags

There are a few tags that do not follow the mold above. In a way, they still have the 3 parts (opening/closing and content). These tags however do not require a formal but rather a modified version. The reason being that these tags do not really require any content. Rather some of them just need a source URL and this is enough information for the web browser to display the tag properly (image tags). Let's take a look at a line break tag.

HTML Code:

Code

To tell the browser we want to place a line break (carriage return) onto the site, it is not necessary to type
linebreak
. If every line break tag needed all three components as other do, life would become redundant real quick. Instead the better solution was to combine the opening and closing tags into a single format. Other tags have also been modified such as the image tag and input tag.

HTML Code:

Code
<img src="../mypic.jpg" /> -- Image Tag
-- Line Break Tag
<input type="text" size="12" /> -- Input Field





As you can see from the above image tag, your browser is completely capable of interpreting this tag so long as we tell the browser where the image is located using the src attribute. More on attributes in the next lesson.

 
If you have a problem about Intellectual property rights violation,

Please Contact Us we remove all content within 24 hours.



BassoDate: Thursday, 2010-12-09, 12:49 PM | Message # 3
Group: Moderator
Messages: 1637
Awards: 2
Reputation: 695
Status: Offline

Tips


* A tag consists of an opening tag and a closing tag .
* Few HTML tags do not require a closing tag.
* Modify tags with attributes to customize your webpages!
* Tags depreciate as new web technologies evolve.


Now is a good time to start thinking about what type of website you may want to make. It is always easier to make content for a topic or to achieve a goal.

 
If you have a problem about Intellectual property rights violation,

Please Contact Us we remove all content within 24 hours.



Forum » Web Design » Html » HTML - Tags
  • Page 1 of 1
  • 1
Search:
Forum Advice
Security advice: Protect your identity when downloading!
Your real identity and ip address is visible while downloading. These days, everyone's looking to throttle your connection, spy on what you're downloading, or even send you an ominous letter. If you use BitTorrent, you absolutely need to take precautions to hide your identity. An easy and raliable solution is a VPN by hide.me. Hide.me doesn't store any logs and offers blazing fast connections.Hide.me VPN is trustedby more than 500.000 internet users worldwide and recommended by Brna.my1.ru.