answersLogoWhite

0

What a URL and webpage?

User Avatar

Anonymous

16y ago
Updated: 8/17/2019

A web page is a text file that contains a combination of text and "markup" code. When the document is viewed in a web browser, it displays (or "renders") as intended. When it is viewed in a text editor (such as Notepad), it displays the text and markup code. Therefore, a web page consists of 2 views: * The "rendered" view - This is what you see when you view the web page in your browser. * The "source code" view - This is the "Behind the Scenes" code that specifies the content and how the page should appear. You can view the source code of any web page on the web. To do this, use your browser's "View Source" feature. For example, if you use internet Explorer 7, go "Page > View Source". If you use Firefox 2, go "View > Page Source". (Depending on your browser, you might also be able to right click anywhere on the page to bring up the "View Source" option). The source code will open in a new window. You can close it when finished with it. The source code of a web page is made up of HTML tags. Some tags are mandatory (all web pages must use them), but most tags are optional. The actual tags that you use will depend on the content you want to appear. Take a look at the following code: Example 1: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title></title> </head> <body> </body> </html> The above code can be a template for any web page. If you view the source code of any web page, you should find these tags. You might need to search for them, but they should be there. You should be able to see the <html> tag near the top, and the </html> near the bottom. This is because all other HTML tags must go in between the <html> and </html> tags. (The only exception to this is the <!DOCTYPE...> tag, which specifies the version of HTML/XHTML the document is using. We won't go into this tag here, but if you're interested, here's more info). The <body> tags contain all content to be displayed on the page. For example, if you wanted to display the words "Welcome to my web page", you would need to place them in between the <body> and </body> tags. Here's another example. This time, let's add some content: Example 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Hello World!</title> </head> <body> <h1>My First Webpage</h1> <p>Welcome to my first webpage!</p> <p>Here's a new paragraph...</p> </body> </html> If you were to open the above HTML file in your browser, it should look something like this:(If you will able to see pic belove) As you can see, any text surrounded by <h1> and </h1> appears as a heading (heading level 1 to be exact). The text within <p></p> tags displays as normal paragraph text. You can add as many HTML tags as you like to a web page. There are many more HTML tags (close to 100). Some tags are used for formatting (like <h1> and </h1>), other tags are used for displaying objects (such as images, forms, tables, etc). Shaan Chaudhary Design world (Kaithal)

User Avatar

Wiki User

16y ago

What else can I help you with?