Demonstrate HTML code to create a simple Web page.
Creating an HTML Page
View the code below to see an example of HTML 5 source code.
Amodernized version of your HTML file updated to comply with HTML5 standards, including semantic tags, metadata improvements, and structural enhancements.
Character Encoding: Added `` for proper character encoding.
Responsive Design: Included `` for responsive behavior on mobile devices.
Semantic Structure: Replaced `
` tags with ``, ``, ``, and `
Improved Metadata: Refined the description and keywords for modern SEO practices.
Accessibility: Used <h2> for subsections to maintain proper heading hierarchy under <h1>.
This version is fully compliant with HTML5 standards and follows best practices for modern web development.
HTML code displayed by a Browser
The screenshot below shows how a browser would display the same code.
Legacy Frames in HTML
Frames are a legacy component of HTML 4 and should no longer be used.
Jakob Nielsen, the author of several usability books, wrote an article in 1996 that criticized frames. Some key points mentioned in the article are:
Frames prevent users from properly bookmarking pages. When a bookmarked frameset page is loaded, the previous mouse clicks of the user inside the frames do not matter. Only the outer URL is saved and users have to navigate to where they were manually.
Frames present challenges for printing web pages. Printing all the frames at once is not suited to the different dimensions of paper (and users can get only the first pageful that way). Users generally have to right-click the frame
they want and choose the appropriate context menu option.
Users coming from search engines may not have access to navigational elements if they are located in another frame and they are directed to only that frame the search engine found the text in.
Chances are good that if you see a column of text, graphics, or links that do not scroll when other portions of a page do, that site is using frames.
The home page for the popular YahooYahoo Web site does not use frames. Frames are no longer used because of challenges that they create with useability.
The most common markup language used for mobile web sites is HTML5 as of April 2019. There are 2 basic platforms used for mobile devices. They are
iOS for Apple
Android platform
HTML5 is currently being implemented for the mobile web as well HTML5 applications. This standard ensures specific markup for your web site that works best on mobile devices. For instance, it does not allow HTML frames or nested tables, which perform poorly on mobile devices. Along with the DOCTYPE, be sure to declare the appropriate character encoding for the document (such as UTF-8).
To see other examples of HTML code, look at other Web pages. To see the code that created the page, follow the instructions for your particular browser shown in the table below.
You can select view source from the browser to examine the HTML, CSS, and Javascript.
Browsers currently available:
There are many more web browsers available. These are the major options on the major platforms, and were chosen specifically from browsers that are actively developed or maintained and support modern web standards (HTML, CSS, JavaScript).
Major Browsers: Windows, Mac & Linux
Import: Bookmarks from Firefox, Safari, or generic HTML file; Mail from Outlook Express, Thunderbird, Apple Mail, Eudora, or generic mbox file.
Apple Mail still exists as an email client. It comes pre-installed on Apple devices such as Macs, iPhones, and iPads, and allows users to send, receive, and manage their email. Apple continues to update and improve the Mail app with new features and security enhancements. BitTorrent
BitTorrent is not specifically offered as a service for Firefox browser. Instead, BitTorrent Web is a web-based torrent client that can be accessed from any browser, including Firefox. This allows users to download and stream torrents directly from their browser. Additionally, BitTorrent offers a desktop application, BitTorrent Classic, which provides more advanced features for torrent management. However, this application is not exclusive to Firefox and can be used with any browser.
It's worth noting that BitTorrent Web has both free and paid versions, with the paid versions offering additional features such as ad-free experience, built-in antivirus scanning, and premium customer support .
Google Chrome:
In 2008, Google stripped down the web browser to its essentials and rethought basic assumptions about what a browser should do.
Focused on enhanced performance for web applications, Chrome stays out of your way and lets you focus on the web itself. Chrome uses the WebKit engine (like Safari) and is similar to the default web browser on the Android mobile phone platform.
Features: Web · Private Browsing · Malware/Phishing Filter
Import: Bookmarks, History and Passwords from MS Edge or Firefox.
Firefox:
Mozilla Firefox has been the most successful alternative web browser since the “browser wars” ended. The flagship product of the Mozilla Foundation traces its lineage back to the original Netscape. Firefox was designed for simplicity, security, and extensibility, with hundreds of extensions available.
The Mozilla Thunderbird mail & news client is a perfect companion. Both applications are open-source. A Firefox Products is available for Android.
Features: Web · RSS headlines · Extensions for chat, customization, etc. · Malware/Phishing Filter
Import: All settings from MS Edge, Opera, Mozilla, bookmarks from generic HTML file.
Safari:
Apple stunned the world in 2003 when they announced this browser for Mac OS X.
It became so popular with Mac users that Microsoft stopped developing IE for the Mac! Safari is designed for elegance and speed, and is now both the default browser on the Mac and the most popular Macintosh browser. Safari is also the primary web browser on the iPhone, iPod Touch and iPad.
Get Safari