Skip to main content

HTML BASIC PART2

HTML STRUCTURAL TAGS


There are several html structural tags. We will learn these tags one by one.
  • ANCHOR TAG <a>
  • ARTICLE TAG <article>
  • ASIDE TAG <aside>
  • LINE BREAK TAG <br>
  • DETAILS TAG <details>
  • DIVISION TAG <div>
  • HEADER TAG <header>
  • HGROUP TAG <hgroup>
  • HORIZONTAL RULE TAG <hr>
  • FOOTER TAG <footer>
  • NAV TAG <nav>
  • SECTION TAG <section>
  • SPAN TAG <span>
  • SUMMARY TAG <summary>


   ANCHOR TAG 

Anchor tag denoted by <a>. It is used to define a hyperlink. It means that it allows the user to move from one page to other. Anchor tag is a paired tag it means  that it has opening and closing tag both.
We can link a img,audio,video,pdf etc.
By default, links are appear as follows.
  • unvisited link , appear in underlined and blue color.
  • visited link  , appear in underlined and purple color.
  • active link , appear in underlined and red color.

LINK SYNTAX

<a href="url">link text</a>

* href attribute specifies the destination address.*


Example


<!DOCTYPE html>
<html>

   <head>
      <title>Link</title>
   </head>

   <body>
      <p>Click here <a href ="https://myfwebdeve.blogspot.com/2019/12/html-basic-part2.html">Visit our HTML tutorial</a></p>
   </body>
 
</html



OUTPUT

This is a link to Visit our HTML tutorial



------------------------------------------------------------------------------

Comments

Popular posts from this blog

ASIDE TAG

ASIDE TAG ASIDE tag is new tag in HTML5. It represents a part of a document whose content is only indirectly related to the document's main content..] Aside tag used  for pull quotes,comments,editorial sidebars etc. NOTE: Behaviour of div and aside are same but  meaning is different. Div is used for create a section or a division. Aside is also used for create a section or division but related to content of the main page.         SYNTAX <!DOCTYPE html> <html> <head> <title> HTML Aside Tag </title> </head> <body> <aside> <h2>HTML</h2> <p>HyperText markup Language</p> </aside> </body> </html> OUTPUT HTML Hypertext markup Language --------------------------------------------------------------------------------------------------------------------------------------------

ARTICLE TAG

ARTICLE TAG Article tag is new tag in HTML5. It is used to represent the article. It is used for blog post,forms,newspapers,magazines etc. Article tag  specifies self-contained composition in a site, document, page or application. It supports all global attributes.     SYNTAX <!DOCTYPE html> <html> <head> <title> HTML Article Tag </title> </head> <body> <article> <h2>HTML</h2> <p>HyperText markup Language</p> </article> </body> </html> OUTPUT HTML Hypertext markup Language --------------------------------------------------------------------------------------------------------------------------

WELCOME TO HTML

                                                        What is HTML? H tml   stands for  Hypertext Markup Language . Some student thinks that HTML is a programming language but it is not a programming language. It is a markup language. It is used to design web pages.  The father of HTML is  Tim-Berners Lee . He is also director of W3 Consortium.Html is created in 1991 but officially releasing year of HTML is 1995 with HTML 2.0 version. What is Web? The web is nothing, in simple term, it is a collection of web pages. What is Hypertext? H ypertext means that it is a way to web pages or HTML documents are linked together. If you want to access a page then you should have to click on the link. What is the Markup language? M arkup language means that it is used for the presentation of text on the web page and it specifies the formatting of code. And it also focuses on the layout of the page. SOME IMP POINTS. HTML is based on Tags , Elements and