New Posts  All Forums:Forum Nav:

#1: Hot HTML tips

post #1 of 10
Thread Starter 
HTML tutorials


Improve your site with "open graph."


With social media on the up and up, it's something that we should all consider when designing/ developing websites for our clients and even ourselves. A simple way to do this is by adding "open graph" tags to your website. It's rather easy to do and no one should have a problem implementing them.

Basically, they function the same way in which META tags do.

Let me give you an example.
Code:
<meta name="og:title" content="Overclock.net">

As we can all see that is basically a META tag with "og:" in it. It's this "og:" that tells the browser it's an "open graph" function. As with all other meta tag, they go in the header of your website. E.g.:
Code:
<!DOCTYPE HTML>
<html>
<head>
<meta name="og:title" content="Overclock.net">
</head>

There are many different types of og functions, with the above, "og:title" telling social media sites to reference the title as "overclock.net" when "shared", linked etc.

They are very self explanatory and three more needed open graph functions are here:
Code:
<meta property="og:type" content="website" />
<meta property="og:url" content="http://www.overclock.net" />
<meta property="og:image" content="LINKTOIMAGE" />

Here is a short table describing what each does:

Function Description
og:title The title of the object, e.g. overclock.net
og:type The type of object e.g. "website", "video", "image" etc. etc.
og:url The URL of the object e.g. www.overclock.net
og:image An image used to represent the object.


All of the above are mandatory, as in you should now be including them in web pages. However there are still some optional functions which can be seen here.

Once you have added them to your site, or a clients site for that matter, you can check out what Facebook "knows" about your site, by clicking here: https://developers.facebook.com/tools/debug and inputting your URL. If you've added them successfully to your page, you should be taken to a blank page with the open graph properties of your website.

And that's that for another tutorial.

Thanks for reading

Now go hack the graph!

Josh
Main Rig.
(14 items)
 
Battlefield 2 review.
Battlefield 2 PC Game EA
 
CPUMotherboardGraphicsRAM
Bulldozer FX4100 Gigabyte GA-M68MT-S2 MSI 7770 Kingston Hyper X | 2 x 2 GB 
Hard DriveOptical DriveCoolingOS
WD 2 TB  LiteON DVD/CD R-W Drive AMD Standard cooler Windows 7 Ultimate 
MonitorKeyboardPowerCase
32' Luxor Full HD TV Microsoft comfort curce Antec 450 Watt OcUK Value case 
MouseAudio
Microsoft wireless mouse Logitech speakers & Bass 
  hide details  
Reply
Main Rig.
(14 items)
 
Battlefield 2 review.
Battlefield 2 PC Game EA
 
CPUMotherboardGraphicsRAM
Bulldozer FX4100 Gigabyte GA-M68MT-S2 MSI 7770 Kingston Hyper X | 2 x 2 GB 
Hard DriveOptical DriveCoolingOS
WD 2 TB  LiteON DVD/CD R-W Drive AMD Standard cooler Windows 7 Ultimate 
MonitorKeyboardPowerCase
32' Luxor Full HD TV Microsoft comfort curce Antec 450 Watt OcUK Value case 
MouseAudio
Microsoft wireless mouse Logitech speakers & Bass 
  hide details  
Reply
post #2 of 10
mm!wouldnt it be simpler to show html5!from what i read from ms they suggest people should use html5 instead of html simpler in lot of area!
post #3 of 10
Thread Starter 
Quote:
Originally Posted by drbaltazar View Post

mm!wouldnt it be simpler to show html5!from what i read from ms they suggest people should use html5 instead of html simpler in lot of area!


What? Open Graph can be implemented to HTML5 or HTML. Have you ever used HTML at all?
Main Rig.
(14 items)
 
Battlefield 2 review.
Battlefield 2 PC Game EA
 
CPUMotherboardGraphicsRAM
Bulldozer FX4100 Gigabyte GA-M68MT-S2 MSI 7770 Kingston Hyper X | 2 x 2 GB 
Hard DriveOptical DriveCoolingOS
WD 2 TB  LiteON DVD/CD R-W Drive AMD Standard cooler Windows 7 Ultimate 
MonitorKeyboardPowerCase
32' Luxor Full HD TV Microsoft comfort curce Antec 450 Watt OcUK Value case 
MouseAudio
Microsoft wireless mouse Logitech speakers & Bass 
  hide details  
Reply
Main Rig.
(14 items)
 
Battlefield 2 review.
Battlefield 2 PC Game EA
 
CPUMotherboardGraphicsRAM
Bulldozer FX4100 Gigabyte GA-M68MT-S2 MSI 7770 Kingston Hyper X | 2 x 2 GB 
Hard DriveOptical DriveCoolingOS
WD 2 TB  LiteON DVD/CD R-W Drive AMD Standard cooler Windows 7 Ultimate 
MonitorKeyboardPowerCase
32' Luxor Full HD TV Microsoft comfort curce Antec 450 Watt OcUK Value case 
MouseAudio
Microsoft wireless mouse Logitech speakers & Bass 
  hide details  
Reply
post #4 of 10
Funny enough only today i was wondering what the og meta tags were for when browsing some source code.

+reps
Quote:
Originally Posted by drbaltazar View Post

mm!wouldnt it be simpler to show html5!from what i read from ms they suggest people should use html5 instead of html simpler in lot of area!

It's generally considered good etiquette not to correct other peoples tutorials when you haven't a clue about the subject matter yourself thumb.gif
post #5 of 10
Thread Starter 
Quote:
Originally Posted by Plan9 View Post

Funny enough only today i was wondering what the og meta tags were for when browsing some source code.
+reps
It's generally considered good etiquette not to correct other peoples tutorials when you haven't a clue about the subject matter yourself thumb.gif

Yeah, funny how he didn't reply thumb.gif

Check your site out with FB's tool and try and improve it plan9 biggrin.gif
Main Rig.
(14 items)
 
Battlefield 2 review.
Battlefield 2 PC Game EA
 
CPUMotherboardGraphicsRAM
Bulldozer FX4100 Gigabyte GA-M68MT-S2 MSI 7770 Kingston Hyper X | 2 x 2 GB 
Hard DriveOptical DriveCoolingOS
WD 2 TB  LiteON DVD/CD R-W Drive AMD Standard cooler Windows 7 Ultimate 
MonitorKeyboardPowerCase
32' Luxor Full HD TV Microsoft comfort curce Antec 450 Watt OcUK Value case 
MouseAudio
Microsoft wireless mouse Logitech speakers & Bass 
  hide details  
Reply
Main Rig.
(14 items)
 
Battlefield 2 review.
Battlefield 2 PC Game EA
 
CPUMotherboardGraphicsRAM
Bulldozer FX4100 Gigabyte GA-M68MT-S2 MSI 7770 Kingston Hyper X | 2 x 2 GB 
Hard DriveOptical DriveCoolingOS
WD 2 TB  LiteON DVD/CD R-W Drive AMD Standard cooler Windows 7 Ultimate 
MonitorKeyboardPowerCase
32' Luxor Full HD TV Microsoft comfort curce Antec 450 Watt OcUK Value case 
MouseAudio
Microsoft wireless mouse Logitech speakers & Bass 
  hide details  
Reply
post #6 of 10
You're missing og:description
post #7 of 10
Quote:
Originally Posted by drbaltazar View Post

mm!wouldnt it be simpler to show html5!from what i read from ms they suggest people should use html5 instead of html simpler in lot of area!

no!who are these people!they must not speak such nonsense in a lot of area!
Quote:
Originally Posted by Plan9 View Post

You're missing og:description

Oh no. tongue.gif

@josh: Nice stuff thumb.gif
My System
(30 items)
 
"Zeus"
(13 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i5 2500K (4.5ghz @ 1.320v) Gigabyte Z68X-UD3R-B3 MSI R7970 Lightning Corsair 16GB (4x4GB) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Crucial M4 128GB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 7 Ultimate 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2212HM Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Microsoft IntelliMouse Optical  XTRAC Ripper XXL 
AudioAudioAudioAudio
Westone W3 IEMs RE-272 IEMs Shure SE-215 IEMs Schiit Bifrost DAC 
AudioAudio
Schiit Asgard 2 amp HiVi Swan M50W 2.1 
CPUMotherboardGraphicsRAM
Intel Core i7 950 GA-X58-UD3R Radeon HD 5450  24GB Corsair @ 1333mhz 
Hard DriveOSPowerCase
4x WD Cavair Red 1TB in RAID 0 Windows Server 2008 R2 x64 Corsair HX-520 LianLi LanCool 
  hide details  
Reply
My System
(30 items)
 
"Zeus"
(13 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i5 2500K (4.5ghz @ 1.320v) Gigabyte Z68X-UD3R-B3 MSI R7970 Lightning Corsair 16GB (4x4GB) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Crucial M4 128GB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 7 Ultimate 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2212HM Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Microsoft IntelliMouse Optical  XTRAC Ripper XXL 
AudioAudioAudioAudio
Westone W3 IEMs RE-272 IEMs Shure SE-215 IEMs Schiit Bifrost DAC 
AudioAudio
Schiit Asgard 2 amp HiVi Swan M50W 2.1 
CPUMotherboardGraphicsRAM
Intel Core i7 950 GA-X58-UD3R Radeon HD 5450  24GB Corsair @ 1333mhz 
Hard DriveOSPowerCase
4x WD Cavair Red 1TB in RAID 0 Windows Server 2008 R2 x64 Corsair HX-520 LianLi LanCool 
  hide details  
Reply
post #8 of 10
I think he was referring to microsoft states that developers should just use HTML5 for now on in development.... obvious is obvious though rolleyes.gif

MS has nothing to do with it either, but O.K
     
CPUMotherboardGraphicsGraphics
Core i7 2600K Asus Maximus IV Extreme AMD Radeon 7970 AMD Radeon 7970 
RAMHard DriveOptical DriveCooling
16gb Gskill 1866mhz Vertex 3 240gb. 1TB Seagate 7200. 160gb WD 7200. LG 24x DVD XSPC Raystorm, MCP655, Frozen-Q Tvirus, RS360mm... 
OSMonitorKeyboardPower
Windows 7 24'' 1080p by Asus Razer Blackwidow Ultimate Corsair 1000watt HX Modular 
CaseMouseMouse PadAudio
Corsair 800D Razer Mamba Razer Ironclad Razer Megalodon's  
  hide details  
Reply
     
CPUMotherboardGraphicsGraphics
Core i7 2600K Asus Maximus IV Extreme AMD Radeon 7970 AMD Radeon 7970 
RAMHard DriveOptical DriveCooling
16gb Gskill 1866mhz Vertex 3 240gb. 1TB Seagate 7200. 160gb WD 7200. LG 24x DVD XSPC Raystorm, MCP655, Frozen-Q Tvirus, RS360mm... 
OSMonitorKeyboardPower
Windows 7 24'' 1080p by Asus Razer Blackwidow Ultimate Corsair 1000watt HX Modular 
CaseMouseMouse PadAudio
Corsair 800D Razer Mamba Razer Ironclad Razer Megalodon's  
  hide details  
Reply
post #9 of 10
actually all the companies are coming together, finally opensystem.org or something like that. docs with all new web standards.
post #10 of 10
Quote:
Originally Posted by totalmajor View Post

actually all the companies are coming together, finally opensystem.org or something like that. docs with all new web standards.
http://www.webplatform.org/
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Web Coding