Home
Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Registered members
Current visitors
New profile posts
Search profile posts
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
HTML5 Basics
HTML5 Basics Day-2
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="AllJobsInfo" data-source="post: 110" data-attributes="member: 1"><p>[ATTACH=full]96[/ATTACH]</p><h3>Break Tag(<br />)</h3><p>It is used to shift the text or anything which is following to the next line from start position. This is an example self enclosing tag or void tag which does not have two tags as opening tag and closing tag. Also it doesn't contain any content.</p><p></p><p></p><p>The output is as follows:</p><p> </p><p></p><h3>Horizontal Line Tag(<hr>)</h3><p>To draw a horizontal line , we use <hr> tag which draws a horizontal line. Also it starts from the next line from start position to the end. Wherever we use it breaks to the next line and draws the horizontal line from the start position to the end position of the line.</p><p></p><p>output is as follows:</p><p></p><p></p><p> </p><p></p><p><strong>One More Example:</strong></p><p></p><p></p><p>Output is as follows:</p><p></p><p> </p><p></p><h3>Center <center> Tag</h3><p>To make the content center aligned we use this tag .</p><p></p><p>Example of <center> Tag:</p><p></p><p></p><p>The Output is as follows:</p><p> </p><p></p><h3>Preserve Formatting <pre> Tag</h3><p>When we want to display the content as it is in the browser even if it contains number of spaces in between the words, then we use <pre> tag. Any content in between <pre> and </pre> will be displayed as it is in the browser.</p><p></p><p>Note : However we can't show html tags as it is even it resides in <pre> and </pre>.</p><p></p><p></p><p>The Output is as follows:</p></blockquote><p></p>
[QUOTE="AllJobsInfo, post: 110, member: 1"] [ATTACH type="full"]96[/ATTACH] [HEADING=2]Break Tag(<br />)[/HEADING] It is used to shift the text or anything which is following to the next line from start position. This is an example self enclosing tag or void tag which does not have two tags as opening tag and closing tag. Also it doesn't contain any content. The output is as follows: [HEADING=2]Horizontal Line Tag(<hr>)[/HEADING] To draw a horizontal line , we use <hr> tag which draws a horizontal line. Also it starts from the next line from start position to the end. Wherever we use it breaks to the next line and draws the horizontal line from the start position to the end position of the line. output is as follows: [B]One More Example:[/B] Output is as follows: [HEADING=2]Center <center> Tag[/HEADING] To make the content center aligned we use this tag . Example of <center> Tag: The Output is as follows: [HEADING=2]Preserve Formatting <pre> Tag[/HEADING] When we want to display the content as it is in the browser even if it contains number of spaces in between the words, then we use <pre> tag. Any content in between <pre> and </pre> will be displayed as it is in the browser. Note : However we can't show html tags as it is even it resides in <pre> and </pre>. The Output is as follows: [/QUOTE]
Verification
Post reply
Home
Forums
HTML5 Basics
HTML5 Basics Day-2
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top