Posts

Internal and External CSS

Image
 Example of using Internal CSS in HTML <!DOCTYPE html> <html> <style>      body {background-color: powderblue;}      h1   {color: blue;}      p     {color: red;} </style> </head> <body> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body> </html> Output: Example of using External CSS in HTML <!DOCTYPE html> <html> <head>      <link rel="stylesheet" href="styles.css"> </head> <body> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body> </html> Output: No colour because no External CSS file detected

LAB 7

Image
Lab # HTML Radio & check   INFORMATION   HTML Forms   HTML Forms are required, when you want to collect some data from the site visitor. For example, during user registration you would like to collect information such as name, email address, credit card, etc. There are various form elements available like text fields, textarea fields, drop-down menus, radio buttons, checkboxes, etc. The HTML <form> tag is used to create an HTML form and it has following syntax –     INSTRUCTION   1.       By using Notepad, type the following text: <!DOCTYPE html> <html> <body>   <h2> LAB-07 21-4-2020 </h2>   <h3> Example1 : Radio Button Input </h3>   <input type="radio" name="gender" value="male" checked> Male<br> <input type="radio" name="gender" value="femal...

HTML Forms

Image
  <!DOCTYPE html> <html> <body>   <h2>LAB-06 HTML Forms</h2>   <form action="/action_page.php"> <label for="fname">First name:</label><br> <input type="text" id="fname" name="fname" value=""><br> <label for="lname">Last name:</label><br> <input type="text" id="lname" name="lname" value=" "><br><br> <input type="submit" value="Submit"> </form>   <p>If you click the "submit" button, the form-data will be sent to a page called "/action_page.php".</p>   </body> </html> Output: Question 1 <!DOCTYPE html> It is used to tell the browser what kind of document to display, in this case html. It is used for all HTML documents. <html> The main langua...

TCP//IP

Image
1.How to check your computer IP address? Give me several ways on how to do it. Method 1: Finding IP address using control panel (Windows) Step 1: Search  “View network connections” in the Windows search bar. Step 2:  Double click your active connections. Step 3:  Click “Details” and the IP address is beside the “IPv4 Address”. Method 2: Run cmd.exe and type ipconfig. 2. How are we going to setup static IP configuration? Step 1: Search  “View network connections” in the Windows search bar. Step 2: Right  click your active connections and go to "Properties". Step 3: Click "Internet Protocol Version 4 (TCP/IPv4)" and go to "Properties" Step 4: Click "Use the following IP address" and enter the IP address in the "Subnet mask". 3. When do we need to setup static IP configuration? - Setting up a home file server - Adding a second router to a network - Sharing a printer over a network 4. Do you know the type of UTHM IP configura...

My Page 3

Image
  Question 1 < body bgcolor="#EDDD9E" > - Changes the website's background colour using the HEX colour value. <ul> - D efines an unordered (bulleted) list. <ol> - Defines an ordered (numbered) list <li> - Each ordered list or unordered list starts with the <li> tag Question 2 <html> <head> <title>My   First   Webpage</title> </head> <body   bgcolor="#EDDD9E"> <h1   align="center">My   First   Webpage</h1> <p>Welcome   to   my   <strong>first</strong>   webpage.   I   am   writing   this   page   using   a text   editor and   plain old   html.</p> <p>By   learning   html,   I'll   be   able   to   create   web   pages   like   a   pro... <br> which I am of course.</p>   Here's   what   I...

My Page 2

Image
 Here's my 2nd try making a website Question 1  <html> - Defines the HTML document <head> -  Contains metadata/information for the document <title>My   First   Webpage</title> -  Defines a title  for the document </head> <body> - Defines the document's body <h1   align="center">My   First   Webpage</h1> - HTML headings <p>Welcome to my first webpage.<br>I am using text editor and plain old html <p>By   learning   html,   I'll   be   able   to   create   web   pages   like   a   pro... <br> -  line break which   I   am   of   course.</p> - Defines paragraph </body> </html> Question 2 - Singular Tags - Works alone and are usually  placed before the text you want formatted - Paired Tags - Require an opening tag that turns a formatting feature on and a closing...

Trying to make a website using html.

Image
 My first try of making a website:  Answers for BIW_Lab2:  1. Every web page on the Internet contains at least some HTML tags in its source code, and most website contain many HTML. Hypertext Markup Language or HTML for short is the main markup language used to build content on the Web. The <head> element is a container for metadata (data about data), located between the <html> tag and the <body> tag. Metadata is data about HTML documents. The HTML title element (<title>) defines the document title displayed in the browser title bar or on the  page tab. The <body> tag defines the body of the document. The <body> element contains all the contents of the HTML document, such as headings, paragraphs, images, hyperlinks, tables, lists, etc. HTML contains several elements used to define text with special meaning. For code <b> Define bold text. 2. HTML full form is HyperText Markup Language. HTML is used for developing web...