Skip to main content

HTML Horizontal lines and Line Breaks

 

HTML Horizontal Line:

Horizontal lines used to separate different areas of a web page. The <hr> tag defines a break in an HTML page, by a horizontal line. rule.

The <hr> element is used to separate content in an HTML page

Example:

·        

·       Write the following code the notepad

 

        <html>

<body>

        <h1> this is 1 heading </h1> <hr>

        <h1> this is 1 heading </h1> <hr>

 

</html>

</body>

 

·       Save the file as “Horizontal.html”

·       Double click on the file. The following page will appear on the web page.









 HTML Line Breaks:

Line breaks are used to decide where the text will break(stop) on a line.

     The HTML <br> element defines a line break.

Use <br> if you want a line break (a new line) without starting a new paragraph

Example:

·       Write the following in notepad

<html>

<body>

       <p> this is <br> My book <br> its color <br> is red <br> </p>

 

</html>

</body>

 

·       Save as “breaks.html”

·       Double click the file. The web page will appear as below





 

 

 

 

 

Comments

Popular posts from this blog

Features of Operating System

 Features of Operating System All application like games, MS office, Firefox requires a reasonable climate to execute and play out their assignment. The working framework assists the client with associating with the framework without knowing to chip away at the coding languages. It isn't plausible for anybody to utilize any cell phones or PCs without conveying the working framework. It is compulsory to have at any rate one working framework to execute the projects and play out the assignment. So in the straightforward, working framework is characterized as the product that goes about as a line between PC equipment and end-client for simple collaboration to finish the assignment viably.  Highlights of Operating System  There is a wide scope of outstanding highlights in the working framework which is creating step by step. The development of OS is splendid in light of the fact that it is created in 1950 to deal with the capacity tapes and now it was functioning as an interf...

HTML Paragraphs

  HTML Paragraphs: Paragraphs are used to add text in a document. Paragraphs are defined with <p> tag. The use of ending tag </p> is optional. You can't be certain how HTML will be shown.   Huge or little screens and resized windows will make various outcomes.   With HTML, you can't change the presentation by adding additional areas or additional lines in your HTML code.   The program will consequently, eliminate any additional areas and lines when the page is shown Example: ·        Open notepad and type the following code:                 <HTML>                 <BODY>                         <P> This is a Paragraph ...

An Introduction to Computer Graphics and its Applications

An Introduction to Computer Graphics and its Applications Introduction to Computer Graphics: Illustrations are characterized as any sketch or a drawing or an extraordinary organization that pictorially addresses some significant data. PC Graphics is utilized where a bunch of pictures should be controlled or the production of the picture as pixels and is drawn on the PC. PC Graphics can be utilized in advanced photography, film, entertainment, electronic contraptions, and any remaining center innovations which are required. It is an immense subject and territory in the field of software engineering. PC Graphics can be utilized in UI configuration, delivering, mathematical item, movement, and numerous more. In most territory, PC design is a contraction of CG. There are a few apparatuses utilized for the execution of Computer Graphics. The essential is the <graphics.h> header document in Turbo-C, Unity for cutting edge and even OpenGL can be utilized for its implementation. It was d...