HTML Sample Program with Text Formatting Tags


About HTML

HTML(Hyper Text Markup Language): It is a Standard Markup Language used to create Web Pages.It is Very Simple to learn and can create a structured document by using the tags.

A simple HTML document
<html>
    <head>
        <title>Page Title </title>
    </head>
    <body>
        <p>This is  simple paragraph</p>
    </body>
</html>

The HTML document begins with <html> and ends with </html> tags.
In the above example <p> </p> tag is used its a Paragraph Tag used to write the paragraphs(contents).





Empty Elements

The elements which we do not have an end tag is known as empty element.we can take a example of <br> it is a break tag,can take an example of <hr> tag also.

<html>
    <head>
        <title>Page Title</title>
    </head>
    <body>
        <p>This is a simple paragraph</p>
        <br>
        <p>This is a New Line</p>
    </body>
</html>





TEXT FORMATTING      
                                                                                       
Underlining, bolding and italicizing words usually appear in a paragraph. Various HTML text formatting tags are used to format the texts. 

A text can be underlined by using the <u> tag.
A text can be bolded by using the <b> tag.
A text can be italicized by using the <i> tag.

You can also try the following code for HTML text Formatting,

<html>
    <head>
        <title>Page Title</title>
    </head>
    <body>
        <p>This is simple paragraph
        <br>
          <u>icrazybrownie.blogspot.com</u> is a platform that provides you a bunch of                               information of <i>Software Development</i>.Gives you an ideas                     about<b>Programming Language,Technology and many more.</b>Happy Coding</p>
    </body>
</html>











                                                                                                                    - Happy Coding




Comments

Popular posts from this blog

Simple HTML Form Elements For Registration Page Example

Writing data to a file using Python

Validation Code For Phone Number Using preg_match() in Php