Background Attribute Example – HTML Syntax – Background HTML Example


Putting
the Pieces of .NET Together - 8 Part Video Series | ||||
| Introduction | ||||
| Videos 1-4 | 1. Servers (3 minutes) | 2. .NET Framework (10 minutes) | 3. Security (8 minutes) | 4. Monitoring Tools (10 minutes) |
| Videos 5-8 | 5. Web Servers (6 minutes) | 6. SQL Server (6 minutes) | 7. Software Develop Tools (10 minutes) | 8. Languages (2 minutes) |
| Download PDF | Putting the Pieces of .NET Together - 48-page PDF | |||
Background Attribute Example – HTML Syntax – Background HTML Example
Summary: – Illustrates the HTML Syntax for the background attribute.
Prerequistes:
- Install Visual Web Developer 2008 – We are using Visual Web Developer for a development environment so that we can build a website of syntax examples. It also helps by providing intellisense and debugging assistance.
If you do not want to build a library of syntax examples, you can download an excellent free html editor at nvu
Restrictions: None
Notes:
- You can build your own library of syntax examples by using same web site over and over and just add new files to it.
Instructions:
- Use Visual Web Developer 2008
- Create new web site;
- Click File/New Web Site
- Select ASP.NET Website Template
- Select C-Sharp for Language
- name of Web Site could be HTML_Syntax.
- Add New folder named "BackgroundAttributes"
- Right-click project name in solution explorer;
- add new folder;
- name of folder should be: BackgroundAttributes
- Add HTML Page Named Abbr to BackgroundAttributes folder
- Right-click BackgroundAttributes folder;
- add new item;
- Select HTML Page
- HTML Page name could be bgcolor
- Click on copy code in code below to copy code into HTML Page bgcolor.htm
- Right-click on HTML page bgcolor and select view in browser
Purpose: bgcolor="color" or bgcolor="#rrggbb" Specifies the background color for an element.
| HTML | | copy code | | ? |
<html> |
<head> |
<title>Example For bgcolor</title> |
</head> |
<body> |
<!--bgcolor="color" or bgcolor="#rrggbb"--> |
<table bgcolor="red"> |
<!-- row 1--> |
<tbody> |
<tr height="50px"> |
<td bgcolor="blue">table |
cell</td> |
<td>table cell2</td> |
</tr> |
<!-- row 2--> |
<tr colspan="2" bgcolor="green" height="50px"> |
<td></td> |
<td></td> |
</tr> |
<!-- row 3--> |
<tr colspan="2" bgcolor="#ffff00" height="50px"> |
<td></td> |
<td></td> |
</tr> |
</tbody> |
</table> |
</body> |
</html> |
Related posts:
- Alt Attribute Example – HTML Syntax – Alt HTML Example Alt Attribute Example - HTML Syntax - Alt HTML Example...
- Border Attribute Example – HTML Syntax – Border HTML Example Border Attribute Example - HTML Syntax - Border HTML Example...
- Face Attribute Example – HTML Syntax – Face Attribute Example Face Attribute - HTML Syntax - Example...
- Scroll Attribute Example – HTML Syntax – Scroll Attribute Example Scroll Attribute Example - HTML Syntax - Scroll Attribute Example...
- TabIndex Attribute Example – HTML Syntax – TabIndex Example TabIndex Attribute Example - HTML Syntax - TabIndex Example...
Related posts brought to you by Yet Another Related Posts Plugin.
