You can edit almost every page by Creating an account and confirming your email.

Html tags

From EverybodyWiki Bios & Wiki


  • Comment: We already have Help:HTML in wikitext. Also, see WP:NOTGUIDE. Moreover, HTML markup intended for display, as opposed to markup intended to actually do something, needs to be highlighted with markup such as <code>...</code>, and inactivated with markup such as <nowiki>...</nowiki> (combined as <code><nowiki>...</nowiki></code>). Another method is to use <pre>...</pre>. Finally, <font> and <center> are obsolete in HTML5. —Anomalocaris (talk) 03:48, 7 April 2022 (UTC)

HTML stands for Hyper Text Markup Language. HTML is the standard markup language for Web pages. With the help of HTML you can create your own Website. HTML is easy to learn.

HTML TAGS

HTML tag: It is the root of the HTML document which is used to specify that the document is HTML. Syntax: <html> statements… </html>

Code: <html> <head> <title>Title of your web page</title> </head> <body>

             HTML web page contents 
            </body>
          </html>

Head Tag: Head tag is used to contain all the head elements in the HTML file. It contains title, style…etc. Syntax: <head> Statements… </head>

Code: <head> Contains elements describing the document</head>

Body Tag: It is used to define the body of an HTML document. Syntax:<body> Statements… </body> Code: <body> The content of your HTML page</body>

Title Tag: It is used to define the title of an HTML document. Syntax:<title> Statements… </title> Code: <title>tab name</title>

Heading Tag:

Syntax:

Statements…

Statements…

Statements…

Code:

Heading 1

Heading 2

Heading 3

Paragraph Tag: It is used to define paragraph content in an HTML document.

Syntax:

Statements…

Code:

VJT: Hello everyone

Bold Tag: It is used to specify bold content in an HTML document. Syntax: Statements… Code: To make BOLD word

Italic Tag: It is used to write the content in italic format. Syntax: Statements… Code: VJT

Small Tag: It is used to set a small font size of the content. Syntax: Statements… Code: Example

Underline Tag: It is used to set the content underlined. Syntax: Statements… Code: VJT

Anchor Tag: It is used to link one page to another page. Syntax:<a href =”…”> Statements… </a> Code: <a href=”paste your link here”>Example</a>

List Tag: It is used to list the content.

Syntax:

  • Statements…
  • Code:

  • list item 1
  • list item 2
  • Ordered Tag: It is used to list the content in a particular order. Syntax:

      Statements…

    Code:

    1. List item 1
    2. List item 2
    3. List item 3
    4. List item 4
    5. List item 5

    Unordered Tag: It is used to list the content without order.

    Syntax:

      Statements…

    Code:

    • List item 1
    • List item 2
    • List item 3
    • List item 4
    • List item 5

    Comment Tag: It is used to set a comment in an HTML document. It is not visible on the browser. Syntax: Code:

    Scrolling Tag: It is used to scroll the text or image content. Syntax:<marquee> Statements… </marquee> Code: <marquee bgcolor= ”#cccccc” loop=”-1” scrollamount=”2” width=”100%”> Example Marquee </marquee>

    Center Tag: It is used to set the content into the center.

    Syntax:

    Statements…

    Code:

    VJT

    Font Tag: was used to specify the font size, font color and font-family in an HTML document. Obsolete in HTML5, do not use it.

    Empty (Non-Container) Tag [Line Break Tag]: It is used to break the line. Syntax:
    Code: Hello
    Everyone

    Image Tag: It is used to add an image element in an HTML document. Syntax:<img> Code: <img src=”gfg.jpg” width=”40” height=”40” border=”0”>

    Link Tag: It is used to link the content from an external source. Syntax:<link> Code: <head> <link rel=”stylesheet” type=”text/css” href=”style.css”> </head>

    Horizontal Tag: It is used to display a horizontal line in an HTML document.

    Syntax:


    Code:


    Meta Tag: It is used to specify the page description. Syntax:<meta> Statements… </meta> Code: <meta name= ”Description” content=”Description of your site”> <meta name= “Keywords” content=”keywords describing your site”>

    Table Tag: Table tag is used to create a table in an HTML document. Syntax:<table> Statements… </table> Code:

    Column 1 Column 2

    Tr Tag: It is used to define a row of an HTML table Syntax:<tr> Statements… </tr> Code:

    Month Saving
    January $50

    Th Tag: It defines the header cell in a table. By default it sets the content with bold and center properties. Syntax:<th> Statements… </th> Code:

    Month Saving
    January $50

    Td Tag: It defines the standard cell in an HTML document. Syntax:<td> Statements… </td> Code:

    Cell 1 Cell 2

    Input Tag: It is used to create an HTML form for user input. Syntax:<form> Statements… </form> Code: <form action=”[email protected]”> Name: <input name=”Name” value=”” size=”80”>
    Email: <input name=”Email” value=”” size=”80”>

    <input type=”submit”>

    </form>

    Submit Input Tag: It is used to take the input from the user. Syntax:<input>

    Dropdown Option Tag: It is used to select an option from a drop-down list. Syntax:<option> Statements… </option>

    Radio Button Tag: It is used to select only one option from the given options. Syntax:<input> Code: <form method=post action=”/cgibin/example.cgi> Select an option:
    <input type=”radio” name=”option”> Option 1 <input type=”radio” name=”option” checked> Option 2 <input type=”radio” name=”option”> Option 3

    References


    This article "Html tags" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:Html tags. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.