Posts

Showing posts with the label # HTML Tag

Learn Html with Kbdk: How does HTML describe the structure of pages?

Image
To describe the structure of a web page, we add code to the words we want to appear on the page. You can see the HTML code for this page below. Don't worry about what the code means yet. We start to look at it in more detail on the next page.  Note that the HTML code is in blue, and the text you see on the screen is in yellow. <html> <body> <h1> This is the Main Heading </h1> <p> This text might be an introduction to the rest of the page. And if the page is a long one it might be split up into several sub-headings. </p> <h2> This is a Sub-Heading </h2> <p> Many long articles have sub-headings so to help you follow the structure of what is being written. There may even be sub-sub-headings (or lower-level headings). </p> <h2> Another Sub-Heading </h2> <p> Here you can see another sub-heading. </p> </body> </html> The HTML code (in blue) is made ...

Learn with Kbdk: Examples of Html code for practice(Html)

Image
Example 1 <html> <body> <p> This paragraph contains a lot of lines in the source code, but the browser ignores it. </p> </body> </html> Example 2 <html> <body> <p>This is<br /> a para<br/> graph with line breaks</p> </body> </html> Example 3 <html> <body> <p> My Bonnie lies over the ocean. My Bonnie lies over the sea. My Bonnie lies over the ocean. </p> </body> </html> Example 4 <html> <body> <h1>This is heading 1</h1> <h2>This is heading 2</h2> <h3>This is heading 3</h3> <h4>This is heading 4</h4> <h5>This is heading 5</h5> <h6>This is heading 6</h6> </body> </html> Example 5 <html> <body> <h1 style="text- align:center">This is heading 1</...