Share this
An Introduction to HTML Code
by Sean Curiel on Mar 28, 2016 1:16:00 PM
HTML, short for HyperText Markup Language, is a form of code that programmers use to create the Web pages that the Internet now relies on for mass communication. While some content exists in alternative forms such as Shockwave Flash or Java, the majority of Web pages and websites primarily rely on HTML code to display information due to its relative ease of use. Most online content is made up of plain-text files called HTML documents. HTML documents mainly consist of a combination of human readable content arranged into a specified layout with the use of tags. Tags are the actual code or commands that determine the layout of a page, like the code used by traditional desktop publishing software. Unlike desktop publishing software, which uses underlying code that is not readable by humans to arrange content, HTML tags are a form of plain-text code, or underlying code that is readable by Web page designers. Newer desktop publishing programs also help designers automate the creation of Web
pages and even entire websites. However, at some point, most Web designers will find themselves needing to understand HTML code in order to make the best use of HTML’s powerful layout features.
Basic Structure of a Web Page
The typical Web page is highly structured. It starts with a header tag, the tag, which instructs Web browsers to treat the incoming text file as an HTML document. At the end of the HTML document, the tag marks the end of the layout information and counts as the end of the file when it’s being read by a Web browser. Web documents also traditionally contain other header-class tags such as the tag, which provides information about the Web page. This information includes things like the page title, which is defined by the tag. A properly designed page will then include the <body> tag, after which all human-readable content is arranged into its proper layout by the use of additional HTML tags.
The structure of HTML code dictates that almost all HTML tags are paired up, which means that they begin with an opening tag such as <div> or <span> and they must be closed by using a closing tag, like </div> or </span>. In the case of nested tags, such as the header and title tags, the first tag should close last, as in <head><title>This is the title. All HTML tags are enclosed by greater-than and lesser-than characters, < >. This indicates to the Web browser that it is receiving layout commands rather than actual human-readable text.
Common HTML Tags
Content within the Web page is typically arranged by the use of very common formatting and paragraph tags. These include the paragraph command, or <p> tag. After this tag, traditionally, a Web designer will place some human-readable text, then end the paragraph with a </p> closing tag. Text-formatting tags like <strong> bold and <em> for italics are useful for modifying text. It is also possible to give text different font faces by enclosing text within <font> tags. Web page content also traditionally uses human-readable headline text, which is larger than regular text and provides titles for sections of content within a page. These header tags are not the same as the <head> tag, however, as they are actually visible and appear within the readable content itself. The largest header text is defined by <h1>, while <h2> and <h3> (and so on) produce smaller text headers.
Modifications to the <background> tag can add a background image or change the background color of a page. For a background color, use the format #RRGGBB, where RRGGBB is a color code in RGB format. For instance, the color code “#FF0000” would produce a pure red background.
Another highly useful, common and often necessary feature in Web pages is the ability to link to other pages. This is achieved by the use of link code, which looks like this: <a href=”http://site.com/page.html”>Visit this Page</a>. Additional common HTML commands include tags that don’t need to be paired with a closing tag. These include tags like line breaks, <br />, and the horizontal rule command, <hr />.
The image tag, which places pictures within Web pages, is <img src=”http://imageurl.com/image.jpg” /> and does not need a closing tag. The IMG command can also define the height and width of an image. For instance, <img src=”http://imageurl.com/image.jpg” style=”height:100px; width:200px” /> will place an image and resize it to 100 vertical pixels by 200 horizontal pixels.
Additional Resources
- Commonly Used HTML Tags
- A Summary of HTML Codes
- HTML Tutorials for Beginners
- A Glossary of HTML Tags
- What Exactly is HTML?
- What is HTML? HTML Tutorial
- HTML: Basic Tips for Coding Your Web Pages
- A Very Simple Web Page
- Some Basic HTML Codes (PDF)
- Basic HTML Codes
- HTML Tutorial (PDF)
- HTML Basics (PDF)
- Texas A&M University: Basic HTML Code
- Basic HTML Cheat Sheet (PDF)
- HTML Guide
- Generating Colors in HTML
- HTML Structure
- Basic HTML Structure (PDF)
- Introduction to Web Design: HTML Links
- Website Page Structure
- HTML Tags
- How to Make Relative Links
- Style Tags and Basic HTML
Share this
- Pre-Sales Questions (112)
- Tips and Tricks (95)
- Industry News (59)
- Reseller / MSP (37)
- Best Practices (30)
- Security Threats / Ransomware (30)
- Applications (26)
- Cloud Backup (25)
- Disaster Recovery (25)
- Compliance / HIPAA (24)
- Backup Videos (23)
- Storage Technology (23)
- Virtual Environments (17)
- Technology Updates / Releases (9)
- Infographics (8)
- Backup preparation (4)
- Products (US) (2)
- Company (US) (1)
- Events (1)
- Events (US) (1)
- September 2024 (2)
- August 2024 (1)
- July 2024 (2)
- June 2024 (2)
- May 2024 (1)
- April 2024 (1)
- March 2024 (2)
- February 2024 (2)
- January 2024 (1)
- December 2023 (1)
- November 2023 (1)
- October 2023 (1)
- September 2023 (1)
- August 2023 (1)
- July 2023 (1)
- May 2023 (1)
- March 2023 (3)
- February 2023 (2)
- January 2023 (3)
- December 2022 (1)
- November 2022 (2)
- October 2022 (2)
- September 2022 (2)
- August 2022 (2)
- July 2022 (1)
- June 2022 (1)
- April 2022 (1)
- March 2022 (2)
- February 2022 (1)
- January 2022 (1)
- December 2021 (1)
- November 2021 (1)
- September 2021 (1)
- August 2021 (1)
- July 2021 (1)
- June 2021 (1)
- May 2021 (2)
- April 2021 (1)
- March 2021 (2)
- February 2021 (1)
- January 2021 (1)
- December 2020 (1)
- November 2020 (1)
- October 2020 (2)
- September 2020 (4)
- August 2020 (2)
- July 2020 (1)
- June 2020 (1)
- May 2020 (1)
- April 2020 (1)
- March 2020 (3)
- February 2020 (2)
- January 2020 (2)
- December 2019 (1)
- November 2019 (1)
- October 2019 (1)
- August 2019 (1)
- July 2019 (1)
- June 2019 (1)
- April 2019 (1)
- February 2019 (1)
- January 2019 (1)
- December 2018 (1)
- November 2018 (2)
- August 2018 (3)
- July 2018 (4)
- June 2018 (2)
- April 2018 (2)
- March 2018 (2)
- February 2018 (2)
- January 2018 (3)
- December 2017 (1)
- September 2017 (1)
- May 2017 (2)
- April 2017 (5)
- March 2017 (4)
- February 2017 (1)
- January 2017 (1)
- December 2016 (1)
- November 2016 (1)
- October 2016 (2)
- September 2016 (1)
- August 2016 (3)
- July 2016 (2)
- June 2016 (3)
- May 2016 (7)
- April 2016 (8)
- March 2016 (1)
- February 2016 (3)
- January 2016 (12)
- December 2015 (7)
- November 2015 (5)
- October 2015 (6)
- September 2015 (2)
- August 2015 (4)
- July 2015 (2)
- June 2015 (2)
- May 2015 (1)
- April 2015 (5)
- March 2015 (3)
- February 2015 (4)
- January 2015 (2)
- October 2014 (5)
- September 2014 (8)
- August 2014 (5)
- July 2014 (8)
- June 2014 (4)
- May 2014 (3)
- April 2014 (9)
- March 2014 (7)
- February 2014 (7)
- January 2014 (5)
- December 2013 (4)
- October 2013 (7)
- September 2013 (2)