Embed blog posts into a HTMl site

Anyone know some good tricks to embed the posts off of a WP blog page into a normal website using php/html please?

I am not worried about any fancy styling, I just want to use the posts as a dynamic news page on the site so just the last few posts will be fine.

From the WP docs I saw a way but I must have it wrong. this is what i had :

/* Short and sweet */
define('WP_USE_THEMES', false);


// Get the last 3 posts.

global $post;
$args = array( 'posts_per_page' => 3 );
$myposts = get_posts( $args );
foreach( $myposts as $post ) :	setup_postdata($post); ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a><br />
<?php endforeach; ?>

Anyone spot my fubar!!