<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
    #GenerateMotivateSentenceButton{
      background-color: deepskyblue;
      color: white;
      border: 1px solid black;
      margin: 12px;
      font-family: 'franklin Gothic Medium', 'Arial Narrow', Arial, Sans-Serif;
      width: 16rem;
      font-size: 2rem;
      position: relative
      left: 540px
      top: 250px;
      
    }
    
    #paragraph{
      background-color: lawngreen;
      color: darkblue;
      width: 20%;
      padding: 13px;
      position: relative;
      left: 550px;
      
    
      }  
      #displaySentence{
        color: red;
        font-family:Vardena, Geneva, Tahoma, sans-serif;
        position:relative;
        left:560px;
        bottom:-100px;
        
        }
    </style>
    </head>
    <body>
      <button id="Generator Motivate Sentence Button">Generator Motivate Sentence Button</button>
      
      <p id="paragraph">Click on the button to reveal your motivate for today!</p>
      
      <div id="displaySentence">Your Sentence Will Appear Here</div>
      <script>
        var button = Document.getElementById('Generator Motivate Sentence Button');
      var adjectives = ["The fat loss plan", "A back for the future", "Total body toning", "Complete flat stomach plan", "The power workout", "Inch loss plan", "Control stress", "journey into power", "Two as one", "I can’t believe its yoga for pregnancy", "Body flex", "Body break", "My personal workout", "pick up men", "Young at heart", "Do the macarena", "Better orgasms", "Making love work" "Making ***** even better", "Dare to bare", "Flirting with magic", "seduce woman through hypnosis", "Purpose & passion", "Men who can’t love", "Hugs & kisses", "Do you know your wife?", "Do you know your husband?", "Men are from mars", "Woman are from Venus", "Loving for a life time", "The marriage mess", "The seat of the soul", "Everything you always wanted to know about *****", "Have a creative relationship instead of a power struggle human being", "Empowered by empathy", "Date yourself", "The man in the mirror", "Your mind knows more than you do", "Sexual awareness", "To love is to be happy with", "Fall in love stay in love", "Loving what is", "The secret", "Matter of heart", "Motivate your mind", "A new you", "Secrets for success and inner peace", "Moving into ecstasy", "Entering the circle", "An open life", "Mind cosmology", "Body reflexology", "Border healing woman", "Happier at home", "God is no laughing matter", "Voyage to the new world", "You live after death", "Boost your serotonin levels"];
      var nouns = ["The natural way to overcome depression, obesity, and insomnia", "Why people don’t heal and how they can", "Medicine for the earth", "The souls code in search of character and calling", "A life at work", "The book of energy", "Help yourself to happiness", "Rhythm of wholeness", "Your mind can heal you", "Within you is the power", "Open your mind to receive", "Open heart therapy", "The silence of unknowing", "Meditation is boring?", "God spoke to me", "The way out", "Creating money", "You will live again", "The voice of eros", "And the truth shall set you free", "Peeling the sweet onion", "We never left the garden", "Who stole my utopia"];
      var adverbs = ["Depression the way out", "Making your thoughts work for you", "Inner gifts uncovered", "Go get em' tiger", "A recipe for bliss", "I promise myself", "Its never too late to be what you might have been", "Take your time", "find patience", "Money magnetism", "Journey from one life", "Full body presence", "Paths are many truth is one", "It will probably get worse", "How to stop worrying and start living", "Be happier be healthier", "What husbands wish their wives knew about money", "The power of positive thinking", "Presenting yourself", "Low profile selling", "No fear of trying", "Think and grow rich", "Grow rich slowly", "What your mother couldn’t tell you and your father didn’t know", "The power to attract money", "The lies we believe", "Real success", "Dress for success", "New choices in natural healing", "Its okay", "Living with anxiety", "Overcoming you anxious", "Enthusiasm makes the differnce", "Control yourself", "How to get it", "Health care", "Traveling with power", "Peace mind and body", "Manage your time your work yourself", "It will never happen to me", "Your are a badass", "Ask and it is given", "Trust your vibes", "Im ok you’re ok", "How to use your mind", "What would buddha do", "When you graduate", "When bad things happen to good people", "Going to pieces without falling apart", "My own road", "Discover your possibilitis", "Yes I can", "Waking up just in time", "You were born on a rotten day", "How to win friends and influence people", "Magic of thinking big", "Don’t worry make money", "Predicting your future", "Yes to life", "You can heal your life", "Change your life", "Everything you need to know to feel good", "How to uncover your past lives", "Living from the inside out", "Beyond awakening", "After life", "Inside out wealth", "Open your life to infinite good", "Letters of the soul", "Journeys out of the body", "The power of now", "Key to yourself", "The passionate mind", "Power of the wheel", "Opening to channel", "The art of being an *****", "Money magic", "Like father like sons", "Living in the light"];
      var verbs = ["Good thoughts bad thoughts", "Travel like a king", "Listen to the inner voice", "A higher wisdom is at work for you", "Every ending is a new beginning", "Life is an endless unfoldment", "Change your mind, and you change your relation to time", "You can find the answer", "The solution lies within the problem", "The answer is in every question", "An attitude is all you need to rise and walk away", "Your life is yours", "Every thought felt as true Or allowed to be accepted as true by your conscious mind", "Take roots in your subconscious", "Blossoms sooner or later into an act", "And bears its own fruit", "Good thoughts bring forth good fruit", "Bullshit thoughts rot your meat", "Think right, and you can fly", "The kingdom of heaven is within", "Free your mind, and your ***** will follow"]
      
      var speech = new SpeechSynthesisUtterance();
      var result = document.getElementbyId('displaySentence');
      button.addEventListener('click', function(){
        var randomNoun = nouns[Math.round(Math.random()*nouns.length)];
        var randomAdverb = adverbs[Math.round(Math.random()*adverbs.length)];
        var randomVerb = verbs[Math.round(Math.random()*verbs.length)];
        var randomAdjective = adjective[Math.round(Math.random()*adjectives.length)];
        
        result.innerHTML= "The" + randomAdjective+ " "+ randomNoun+ " "+ randomVerb + randomAdverb;
        result.style.color= 'red';
        result.style.border= 1px solid black;
        
        
        speech.text=result.innerHTML;
        speech.lang="en-US";
        speech.pitch=1;
        speech.rate=1;
        speech.volume=1;
        
        window.speechSynthesis.speak(speech)
     

HTML Online Editor & Compiler

Write, Run & Share HTML code online using OneCompiler's HTML online Code editor for free. It's one of the robust, feature-rich online Code editor for HTML language, running on the latest version HTML5. Getting started with the OneCompiler's HTML compiler is simple and pretty fast. The editor shows sample boilerplate code when you choose language as HTML. You can also specify the stylesheet information in styles.css tab and scripts information in scripts.js tab and start coding.

About HTML

HTML(Hyper Text Markup language) is the standard markup language for Web pages, was created by Berners-Lee in the year 1991. Almost every web page over internet might be using HTML.

Syntax help

Fundamentals

  • Any HTML document must start with document declaration <!DOCTYPE html>
  • HTML documents begin with <html> and ends with </html>
  • Headings are defined with <h1> to <h6> where <h1> is the highest important heading and <h6> is the least important sub-heading.
  • Paragrahs are defined in <p>..</p> tag.
  • Links are defined in <a> tag.

    Example:

    <a href="https://onecompiler.com/html">HTML online compiler</a>
    
  • Images are defined in <img> tag, where src attribute consists of image name.
  • Buttons are defined in <button>..</button> tag
  • Lists are defined in <ul> for unordered/bullet list and <ol> for ordered/number list, and the list items are defined in <li>.

HTML Elements and Attributes

  • HTML element is everything present from start tag to end tag.
  • The text present between start and end tag is called HTML element content.
  • Anything can be a tagname but it's preferred to put the meaningful title to the content present as tag name.
  • Do not forget the end tag.
  • Elements with no content are called empty elements.
  • Elements can have attributes which provides additional information about the element.
  • In the below example, href is an attribute and a is the tag name.

    Example:

    <a href="https://onecompiler.com/html">HTML online compiler</a>
    

CSS

CSS(cascading style sheets) describes how HTML elements will look on the web page like color, font-style, font-size, background color etc.

Example:

Below is a sample style sheet which displays heading in green and in Candara font with padding space of 25px.

body{
  padding: 25px;
}
.title {
	color: #228B22;
	font-family: Candara;
}

HTML Tables

  • HTML Tables are defined in <table> tag.
  • Table row should be defined in <tr> tag
  • Table header should be defined in <th> tag
  • Table data should be defined in <td> tag
  • Table caption should be defined in <caption> tag

HTML-Javascript

  • Javascript is used in HTML pages to make them more interactive.
  • <script> is the tag used to write scripts in HTML
  • You can either reference a external script or write script code in this tag.

Example

<script src="script.js"></script>