HTML
Hypertext Markup Language (HTML) is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets (CSS) and scripting languages such as JavaScript.
What does HTML look like?
Below is an example of a basic web page written in HTML with a description of each section and its function.
<!DOCTYPE HTML PUBLIC “-//AR//DTD HTML 4.01 Transitional//EN” “https://artechnologygroup.in/TR/html4/loose.dtd”>
<html>
<head>
<title>Example page</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=windows-1252″>
</head>
<body>
<h1>This is a heading</h1>
<p>This is an <b>example</b> of a basic HTML page.</p>
</body>
</html>
The box above contains the key ingredients to a basic web page. Each of the lines are explained below in further detail.
- The DOCTYPE line describes what version of HTML the page was written in so that an Internet browser can interpret the text that follows.
- The <html> opening tag lets the browser know that it is reading HTML code.
- The <head> section contains information about the page, such as its title, meta tags, and where to locate the CSS file.
- The <body> section contains everything that’s viewable on the browser. For example, all the text seen here is contained in the body tags.
- The <h1> tag is the visible heading of the page.
- The <p> tag is a paragraph of text. Most web pages (like this one) have several paragraph tags.
- Contained in the paragraph is the <b> tag that bolds the word example in the paragraph.
- Finally, the closing tags wrap each of the above tags.
Hypertext Markup Language (HTML) is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets (CSS) and scripting languages such as JavaScript.
What does HTML look like?
Below is an example of a basic web page written in HTML with a description of each section and its function.
<!DOCTYPE HTML PUBLIC “-//ARG//DTD HTML 4.01 Transitional//EN” “https://www.artechnologygroup/TR/html4/loose.dtd”>
<html>
<head>
<title>Example page</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=windows-1252″>
</head>
<body>
<h1>This is a heading</h1>
<p>This is an <b>example</b> of a basic HTML page.</p>
</body>
</html>
The box above contains the key ingredients to a basic web page. Each of the lines are explained below in further detail.
- The DOCTYPE line describes what version of HTML the page was written in so that an Internet browser can interpret the text that follows.
- The <html> opening tag lets the browser know that it is reading HTML code.
- The <head> section contains information about the page, such as its title, meta tags, and where to locate the CSS file.
- The <body> section contains everything that’s viewable on the browser. For example, all the text seen here is contained in the body tags.
- The <h1> tag is the visible heading of the page.
- The <p> tag is a paragraph of text. Most web pages (like this one) have several paragraph tags.
- Contained in the paragraph is the <b> tag that bolds the word example in the paragraph.
- Finally, the closing tags wrap each of the above tags.
1 Comment