IWD Unit 3 Assignment
IWD Unit 3 Assignment
HTTP
(HyperText Transfer Protocol) The communications protocol used to connect to
Web servers on the Internet or on a local network (intranet). The primary function
of HTTP is to establish a connection with the server and send HTML pages back to
the user’s browser. It is also used to download data from the server either to the
browser or to any requesting application that uses HTTP.
Addresses of websites begin with an http:// prefix; however, Web browsers
typically default to the HTTP protocol. For example, typing www.yahoo.com is the
same as typing http://www.yahoo.com. In fact, only yahoo.com has to be typed in.
The browser adds the rest.
1
Unit 3 Assignment
Physical tags- These tags provide a visual appeal to the document. For example,
bold, italic, underlined, etc.
Logical tags- These tags provide a logical meaning to the text. For example, the
<strong> tag.
2
Unit 3 Assignment
Output:
3
Unit 3 Assignment
<!DOCTYPE html>
<html>
<head>
<title>DataFlair</title>
</head>
<body>
<p><strong>Welcome to DataFlair!</strong></p>
</body>
</html>
Output:
<!DOCTYPE html>
<html>
<head>
<title>DataFlair</title>
</head>
<body>
<p>Welcome to DataFlair!</p>
<p><u>Welcome to DataFlair!</u></p>
</body>
</html>
Output:
4
Unit 3 Assignment
5. HTML Highlight
In HTML, the <mark> element is used to highlight the text. For example,
<!DOCTYPE html>
<html>
<head>
<title>DataFlair</title>
</head>
<body>
<p><mark>Welcome to DataFlair!</mark></p>
</body>
</html>
Output:
5
Unit 3 Assignment
<body> tag bgcolor attribute, so the CSS style is used to add background color.
The bgcolor attribute deprecated in HTML5.
Just keep in mind, the usage of style attribute overrides any style set globally. It
will override any style set in the HTML <style> tag or external style sheet.