Friday, January 20, 2017

HTML Tags

HTML Tags
What are HTML tags?  ƒ HTML tags are used to mark-up HTML elements ƒ HTML tags are surrounded by the two characters < and > ƒ The surrounding characters are called angle brackets ƒ 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 ƒ The text between the start and end tags is the element content ƒ HTML tags are not case sensitive, <b> means the same as <B> 
Logical vs. Physical Tags  In HTML there are both logical tags and physical tags. Logical tags are designed to describe (to the browser) the enclosed text's meaning. An example of a logical tag is the <strong> </strong> tag. By placing text in between these tags you are telling the browser that the text has some greater importance. By default all browsers make the text appear bold when in between the <strong> and </strong> tags. 

Physical tags on the other hand provide specific instructions on how to display the text they enclose. Examples of physical tags include:  
ƒ <b>: Makes the text bold.  ƒ <big>: Makes the text usually one size bigger than what's around it.  ƒ <i>: Makes text italic.
Physical tags were invented to add style to HTML pages because style sheets were not around, though the original intention of HTML was to not have physical tags. Rather than use physical tags to style your HTML pages, you should use style sheets. 
HTML Elements Remember the HTML example from the previous page: 
<html>  <head>  <title>My First Webpage</title>  </head>  <body>  This is my first homepage. <b>This text is bold</b>  </body>  </html> 
Share:

0 comments:

Post a Comment

Contact Form

Name

Email *

Message *

Facebook Page